Skip to content
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

Adds ACL replication. #2237

Merged
merged 18 commits into from
Aug 9, 2016
Merged

Adds ACL replication. #2237

merged 18 commits into from
Aug 9, 2016

Conversation

slackpad
Copy link
Contributor

@slackpad slackpad commented Aug 3, 2016

This fixes #1419 by providing a full replication capability for ACLs. Non-ACL datacenters can replicate the complete ACL set locally to their state store and fall back to that if there's an outage, if so configured. Additionally, this provides a good way to make a backup ACL datacenter, or to migrate the ACL datacenter to a different one. This'll fix #1826 and should also mention #1186.

@slackpad
Copy link
Contributor Author

slackpad commented Aug 3, 2016

This isn't ready for review but I'm pushing this up as a checkpoint as the basic plumbing is working.

@slackpad slackpad force-pushed the f-acl-replication branch 4 times, most recently from 3caa4c8 to f0a04bc Compare August 4, 2016 04:23
Decided we don't need to log anything about the token here. If the
token is not valid then the client will get an error about that, so
anything that can happen here is related to talking to the server in
the ACL datacenter, so not specific to the token.
@slackpad
Copy link
Contributor Author

slackpad commented Aug 5, 2016

Ready for review!

We don't want ACL replication to have this behavior so it was a
little dangerous to have in the shared helper function.
@@ -37,24 +37,29 @@ const (
redactedToken = "<hidden>"

// Maximum number of cached ACL entries
aclCacheSize = 256
aclCacheSize = 10 * 1024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use this chance to switch from the LRU cache to 2Q? It's in the same package!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah good call - I'll roll that in.

@slackpad slackpad merged commit 95930e3 into master Aug 9, 2016
@slackpad slackpad deleted the f-acl-replication branch August 9, 2016 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs Request: Move ACL to another datacenter Support ACL cache pre-warming
2 participants