Skip to content

Tuning for HGetAll #753

Answered by rueian
ahapeter asked this question in Q&A
Feb 12, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

I was try to set DisableAutoPipelining=true, increase ring buffer factor, per connection cache size, read/write buffer
It's not change much.

When DisableAutoPipelining=true, the ring buffer size does not matter because it is only used by auto pipelining. But BlockingPoolSize matters since it now uses the connection pool to serve concurrent requests. If you keep constant 8 workers, then the default BlockingPoolSize is fine.

per connection cache size only matters if you use client.DoCache().

auto pipeline, flush interval 100us trades latencies for more throughput.

Both the default read/write buffer sizes are 0.5MiB which is enough to hold your large HSET.

write to hashset (to keys, field…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ahapeter
Comment options

@rueian
Comment options

Answer selected by ahapeter
@ahapeter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants