I previously designed a robust distributed locking algorithm based on Google Cloud. Now I’m releasing a Ruby implementation of this algorithm: distributed-lock-google-cloud-storage-ruby.
To use this, add to your Gemfile:
Its typical usage is as follows. Initialize a Lock instance. It must be backed by a Google Cloud Storage bucket and object. Then do your work within a #synchronize block.
Important: If your work is a long-running operation, then also be sure to call #check_health! periodically to check whether the lock is still healthy. This call throws an exception if it’s not healthy. Learn more in Long-running operations, lock refreshing and lock health checking.
lock = DistributedLock::GoogleCloudStorage::Lock(
bucket_name: 'your bucket name',
# IMPORTANT: _periodically_ call this!
To learn more about this gem, please check out its README and its full API docs.
Automating DNS with Kubernetes and Synology DSM
After following an internal CKA training, I needed teaching material and flying hours to familiarize myself with Kubernetes to pass the CKA exam (which I …
Setting up your own K3S home cluster
In 2021 I’ve received the components for my Kubernetes Cluster at home. In this blog, I want to share how I have set up my K3S home cluster because I’ve …
Why you should split CI from CD!
We have used pipelines for the regular implementation of CI/CD principles for years, but we have come to a point where splitting CI from CD makes a lot of …
We are a fast-growing cloud-native IT Services company that helps both start-ups and enterprises realize their Kubernetes ambitions.