#dynolocker - February 2019

February 2019
erik
erikover 7 years ago
@Erik Osterman (Cloud Posse) has joined the channel
erik
erikover 7 years ago
set the channel description: https://github.com/joshmyers/dynolocker
joshmyers
joshmyersover 7 years ago
@joshmyers has joined the channel
mumoshu
mumoshuover 7 years ago
@mumoshu has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
@joshmyers was just talking with @mumoshu about your tool
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
i've been referring a bunch of people over to dynolocker
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
there's no good solution like this that does distributed locking.
mumoshu
mumoshuover 7 years ago
@joshmyers hi!
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
@mumoshu has an interesting (common) use-case about renewing locks
erik
erikover 7 years ago
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)over 7 years ago
@Andriy Knysh (Cloud Posse) has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago(edited)
@joshmyers is based in GMT (London), so he'll be online tomorrow
Michal Matyjek
Michal Matyjekover 7 years ago
@Michal Matyjek has joined the channel
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
@Michal Matyjek are you guys doing any distributed locking?
dustinvb
dustinvbover 7 years ago
@dustinvb has joined the channel
Michal Matyjek
Michal Matyjekover 7 years ago
I don't remember
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
I was also sharing dynolocking with @dustinvb from codefresh
mumoshu
mumoshuover 7 years ago
ah i remembered that i had created a very similar command myself 3 years ago, but in ruby
https://github.com/crowdworks/joumae-ruby#cli
mumoshu
mumoshuover 7 years ago
i definitely like a command written in golang 🙂 am eager to submit a pr to dynolocker if that makes sense
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
yea, let's breath some life into it
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
also wire it up with a codefresh pipeline to build binary releases
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
then we can also distribute through cloudposse/packages
Michal Matyjek
Michal Matyjekover 7 years ago
so the use case is...?
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
see the snippet above
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
basically, you need to lock something which could be used across pipelines or even within the same pipeline
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
for example, if you're terraforming, you want to lock a project to a pull request
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
(e.g. like in atlantis)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
also, i've had the problem we're we merge 2 PRs too close to each other
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
and we end up doing concurrent helm deployments of the same app
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
we should really be locking a helm release before performing a helm deployment
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
that's (2) very strong use-cases for locking
erik
erikover 7 years ago
mumoshu
mumoshuover 7 years ago
probably it is unlikely to happen when you run the pipeline on a new commit to e.g. master
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
(happened to me yesterday... and we have wait: true, so second release was rolling out destroying pods from first release)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
first release then was blocked by second release completing
mumoshu
mumoshuover 7 years ago(edited)
but i do have encountered the same situation as erik’s in my terraform pipeline powered by github flow(the latest one, apply/deploy before merging for final testing)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
i think for terraform it's scarier
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
are you using codefresh with terraform now?
mumoshu
mumoshuover 7 years ago
not yet, but i’m seriously considering to move to codefresh for anything related to github flow
joshmyers
joshmyersover 7 years ago
Morning 👋
joshmyers
joshmyersover 7 years ago
Sure, PRs always welcome
joshmyers
joshmyersover 7 years ago
it was a hacky tool whipped up due to a race condition when bootstrapping Vault nodes (a few years back now)
joshmyers
joshmyersover 7 years ago
locksmithctl by coreOS may also be interesting
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
That one requires etcd, no?
joshmyers
joshmyersover 7 years ago
Yeah it was based off etcd
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
That might not work well if running outside of k8s
joshmyers
joshmyersover 7 years ago
dynolocker might not work well outside of AWS
joshmyers
joshmyersover 7 years ago
well, def won’t 🙂
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Haha well, kinda depends on what “outside” means ;-)
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
But yea, I get your point. For our purposes, AWS is an acceptable requirement.
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
(And already use it for terraform locking)
joshmyers
joshmyersover 7 years ago
Yeah, I was going to try and do more with it and actually have it do sane things with process and signals etc but never got around to it
joshmyers
joshmyersover 7 years ago
huh, I like this Variant 😄
richwine
richwineover 7 years ago
@richwine has joined the channel
erik
erikover 7 years ago
No earlier messagesBrowse by dateDecember 2019