mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: raise pipeline squashing limit (#2095)
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
This commit is contained in:
parent
8a65aec805
commit
b403416be0
2 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,7 @@ ABSL_FLAG(uint64_t, pipeline_queue_limit, 1ULL << 27, // 128MB
|
||||||
|
|
||||||
ABSL_FLAG(bool, no_tls_on_admin_port, false, "Allow non-tls connections on admin port");
|
ABSL_FLAG(bool, no_tls_on_admin_port, false, "Allow non-tls connections on admin port");
|
||||||
|
|
||||||
ABSL_FLAG(uint64_t, pipeline_squash, 5,
|
ABSL_FLAG(uint64_t, pipeline_squash, 10,
|
||||||
"Number of queued pipelined commands above which squashing is enabled, 0 means disabled");
|
"Number of queued pipelined commands above which squashing is enabled, 0 means disabled");
|
||||||
|
|
||||||
// When changing this constant, also update `test_large_cmd` test in connection_test.py.
|
// When changing this constant, also update `test_large_cmd` test in connection_test.py.
|
||||||
|
|
|
@ -49,12 +49,13 @@ MultiCommandSquasher::ShardExecInfo& MultiCommandSquasher::PrepareShardInfo(Shar
|
||||||
if (sharded_.empty())
|
if (sharded_.empty())
|
||||||
sharded_.resize(shard_set->size());
|
sharded_.resize(shard_set->size());
|
||||||
|
|
||||||
// See header top for atomic/non-atomic difference
|
|
||||||
auto& sinfo = sharded_[sid];
|
auto& sinfo = sharded_[sid];
|
||||||
if (!sinfo.local_tx) {
|
if (!sinfo.local_tx) {
|
||||||
if (IsAtomic()) {
|
if (IsAtomic()) {
|
||||||
sinfo.local_tx = new Transaction{cntx_->transaction, sid};
|
sinfo.local_tx = new Transaction{cntx_->transaction, sid};
|
||||||
} else {
|
} else {
|
||||||
|
// Non-atomic squashing does not use the transactional framework for fan out, so local
|
||||||
|
// transactions have to be fully standalone, check locks and release them immediately.
|
||||||
sinfo.local_tx = new Transaction{base_cid_};
|
sinfo.local_tx = new Transaction{base_cid_};
|
||||||
sinfo.local_tx->StartMultiNonAtomic();
|
sinfo.local_tx->StartMultiNonAtomic();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue