-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question configuration example for clustering Kubernetes/Redis locker? #344
Comments
I think there are no docs specifically about the k8s locker option. (or maybe wait till @karimra comes back online) |
There are no dedicated doc pages for those two lockers, that needs to be added. Meanwhile here is a short explanation of the config options with their defaults:
clustering:
#
locker:
type: k8s
# namespace where the leases will be created
namespace: default
# lease-duration, defines the duration of a lease
lease-duration: 10s
# defines how often leases are renewed.
# If the set values is eq or higher than the `lease-duration`, lease-duration/2 applies.
# Otherwise the set value applies.
renew-period:
# defines a simple backoff duration in case of errors
retry-timer: 2s
# enable extra logging
debug: false
clustering:
#
locker:
type: redis
# single address or a seed list of host:port addresses of cluster/sentinel nodes.
# if more than one address is set, the locker uses a redis cluster client.
servers:
-
# specifies a master name to create a sentinel backed redis FailoverClient
master-name:
# a password that should match `requirepass` in redis server config (Redis 5.0 or lower)
# or the user password (Redis 6.0 or higher)
password:
# sets the expiration time of a Redis mutex
lease-duration: 10s
# defines the frequency of Redis mutex expiration refresh.
# If the set values is eq or higher than the `lease-duration`, lease-duration/2 applies.
# Otherwise the set value applies.
renew-period:
# defines a simple backoff duration in case of errors.
retry-timer: 2s
# poll timer of registered Redis services.
poll-timer: 10s
# enable extra logging
debug: false When writing this I realized that the redis locker could use some updates to add some extra config options. |
Update 2 Update
Any ideas? Thanks! I reverse-engineered the interface through the go files last week :) and now I'm attempting to lock down the service account. I've narrowed down the what the account needs by feeding it privledges until it stops erroring. Am I missing anything else?
Thanks! |
In the documentation I can only find details about how to setup consul as a clustering locker. I was wondering if there are some working examples of how to setup Kubernetes as locker in the clustering configuration. I see there is code in the repository to support it, however there are no good examples in the tests or in the docs about how to configure it. The same can be said about redis. Does anyone have some pointers towards how to setup these lockers? Or is consul still the only locker that "really works"?
I would prefer to be able to use Kubernetes or redis as they are already part of the infrastructure that we are running. I could obviously try to reverse engineer, but maybe someone has a working example!
Thanks!
The text was updated successfully, but these errors were encountered: