Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
cc101b8
Moved index cache key struct outside of the file containing the in-me…
pracucci Dec 5, 2019
ba6af3d
Added cacheKey.string() to make it memcached friendly
pracucci Dec 5, 2019
0f57c95
Added MemcachedIndexCache support
pracucci Dec 12, 2019
aaa15f4
Export Prometheus metrics from MemcachedIndexCache
pracucci Dec 12, 2019
60b23d4
Fixed linter issues
pracucci Dec 12, 2019
b114623
Simplified workers wait group in memcachedClient
pracucci Dec 13, 2019
4afe30a
Fixed memcached client GetMulti() results batches channel buffer
pracucci Dec 13, 2019
bcc5ceb
Wait for addrs resolution gorouting to complete on memcachedClient.St…
pracucci Dec 16, 2019
ebd9af0
Return struct from NewMemcachedClient()
pracucci Dec 16, 2019
4581111
Update pkg/cacheutil/memcached_client.go
pracucci Dec 16, 2019
c9d37f9
Simplified memcachedClient tests
pracucci Dec 16, 2019
77413ca
Cleaned up code based on feedback
pracucci Dec 16, 2019
16d368a
Removed error from GetMulti() return and introduced metrics and traci…
pracucci Dec 16, 2019
9178cdd
Fixed compilation errors in store E2E tests
pracucci Dec 16, 2019
8951227
Added leaktest check to all tests
pracucci Dec 16, 2019
390e93c
Introduced --index.cache-config support
pracucci Dec 16, 2019
702dc82
Fixed compilation errors in store E2E tests
pracucci Dec 16, 2019
bf5dd7c
Updated store flags doc
pracucci Dec 16, 2019
fb6d122
Updated index cache doc
pracucci Dec 16, 2019
a7c20f2
Updated changelog
pracucci Dec 16, 2019
e2c72a0
Increased default memcached client timeout from 100ms to 500ms
pracucci Dec 17, 2019
f8b318e
Disabled memcached client max batch size by default
pracucci Dec 17, 2019
491c5bb
Fixed index cache key max length
pracucci Dec 17, 2019
db9356b
Removed TODO from memcached client since looks the general consensus …
pracucci Dec 17, 2019
bb3eb88
Allow to configure in-memory index cache using byte units
pracucci Dec 18, 2019
1ea97b2
Refactored index cache config file doc
pracucci Dec 18, 2019
08f1bd3
Fixed nits in comments
pracucci Dec 18, 2019
f83b2d2
Replaced hardcoded 16 with ULID calculated length based on review com…
pracucci Dec 18, 2019
b8b8517
Do not expose jumpHash func
pracucci Dec 18, 2019
f62a0b4
Updated changelog
pracucci Dec 18, 2019
b2d822e
Switched MemcachedClient GetMulti() concurrency limit to a gate
pracucci Dec 18, 2019
9113f0c
Fixed flaky tests
pracucci Dec 18, 2019
da13b4b
Fixed typos in comments
pracucci Dec 19, 2019
f1482f2
Renamed memcached config option addrs to addresses
pracucci Dec 19, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Increased default memcached client timeout from 100ms to 500ms
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Jan 3, 2020
commit e2c72a026812e44f2d79bf66ddf27ef165396010
2 changes: 1 addition & 1 deletion docs/components/store.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ config:
- memcached-2:11211

# Socket read/write timeout.
timeout: 100ms
timeout: 500ms

# Maximum number of idle connections that will be maintained per address.
# For better performances, this should be set to a number higher than your
Expand Down
2 changes: 1 addition & 1 deletion pkg/cacheutil/memcached_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var (
errMemcachedConfigNoAddrs = errors.New("no memcached addrs provided")

defaultMemcachedClientConfig = MemcachedClientConfig{
Timeout: 100 * time.Millisecond,
Timeout: 500 * time.Millisecond,
MaxIdleConnections: 100,
MaxAsyncConcurrency: 20,
MaxAsyncBufferSize: 10000,
Expand Down