-
Notifications
You must be signed in to change notification settings - Fork 816
Added memcached support to the blocks storage index cache #2290
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
Merged
pracucci
merged 12 commits into
cortexproject:master
from
pracucci:add-memcached-index-cache-support-for-blocks-storage
Mar 19, 2020
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0233519
Added memcached support to the blocks storage index cache
pracucci 330e449
Updated CHANGELOG
pracucci f077389
Documented blocks storage index cache backends
pracucci 50398ab
Fixed doc
pracucci a922d32
Fixed unit tests
pracucci 271fb8d
Updated doc
pracucci c1ed809
Added a timeout to the 'docker inspect' command to avoid the command …
pracucci 1babd96
Update integration/e2e/service.go
pracucci a5000a8
Update docs/operations/dns-service-discovery.md
pracucci d32afe8
Reworded util.StringsContain() comment and params
pracucci 9691dc6
Separated metrics helpers unit tests using go blocks
pracucci 8e9c601
Avoid a superfluous querier integration test
pracucci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
title: "DNS service discovery" | ||
linkTitle: "DNS service discovery" | ||
weight: 2 | ||
slug: dns-service-discovery | ||
--- | ||
|
||
Some clients in Cortex support service discovery via DNS to find addresses of backend servers to connect to (ie. caching servers). The clients supporting it are: | ||
|
||
- [Blocks storage's memcached index cache](blocks-storage.md#memcached-index-cache) | ||
|
||
## Supported discovery modes | ||
|
||
The DNS service discovery supports different discovery modes. A discovery mode is selected adding a specific prefix to the address. The supported prefixes are: | ||
|
||
- **`dns+`**<br /> | ||
The domain name after the prefix is looked up as an A/AAAA query. For example: `dns+memcached.local:11211` | ||
- **`dnssrv+`**<br /> | ||
The domain name after the prefix is looked up as a SRV query, and then each SRV record is resolved as an A/AAAA record. For example: `dnssrv+memcached.namespace.svc.cluster.local` | ||
- **`dnssrvnoa+`**<br /> | ||
The domain name after the prefix is looked up as a SRV query, with no A/AAAA lookup made after that. For example: `dnssrvnoa+memcached.namespace.svc.cluster.local` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "Query Auditor (tool)" | ||
linkTitle: "Query Auditor (tool)" | ||
weight: 2 | ||
weight: 3 | ||
slug: query-auditor | ||
--- | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: "Query Tee (service)" | ||
linkTitle: "Query Tee (service)" | ||
weight: 3 | ||
weight: 4 | ||
slug: query-tee | ||
--- | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package e2ecache | ||
|
||
import ( | ||
"github.com/cortexproject/cortex/integration/e2e" | ||
) | ||
|
||
const ( | ||
MemcachedPort = 11211 | ||
) | ||
|
||
func NewMemcached() *e2e.ConcreteService { | ||
return e2e.NewConcreteService( | ||
"memcached", | ||
// If you change the image tag, remember to update it in the preloading done | ||
// by CircleCI too (see .circleci/config.yml). | ||
"memcached:1.6.1", | ||
nil, | ||
e2e.NewTCPReadinessProbe(MemcachedPort), | ||
MemcachedPort, | ||
) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.