rocksdb_db_options won't apply #309
Labels
affects/none
PR/issue: this bug affects none version.
process/fixed
Process of bug
severity/none
Severity of bug
type/bug
Type: something is unexpected
Milestone
My own simulation (v1.6.3)
(1) I checked the
max_background_jobs
is the default value of 2 in rocksdb(2) Then I changed it to 3 in
kubectl edit
(3) Since this flag is dynamic, it will not trigger restart. The options of the existing rocksdb instance keep the same.
(4) Now I create a space, the newly created rocksdb instance should pick the new value (work as expected).
(5) After I add a new static flag, why is there no restart? (Update: because the default value is 4096)
When using curl to check the flags in storaged, it's updated. Apparently, this is not dynamic flag and should trigger restart....
(6) After I update the static flag, it will trigger restart.
But the rocksdb_options are not correctly set. Though the gflags are set. (BUG)
(7) Thereafter, I remove the static flag I just added. It can restart. But
rocksdb_db_options
value will not take effect in rocksdb either. Though the gflags have been set. (BUG)User's scenario
What was user doing is running
kubectl apply
to update flags. After the update, they saw very high ingestion latency. The disk load is also low. We saw a lot of write stall. Then we examined the rocksdb log, and found the compaction related flags are default. Seemsrocksdb_db_options
will only take effect if you set it before creating the cluster.Issues
rocksdb_db_options
is not reflected in rocksdb? Note: When a rocksdb instance is created, the flag must be ready. If you curl to modify the flag after the rocksdb instance is created, it will not take effect.kubectl apply
andkubectl edit
are equivalent. If people usekubectl apply
first and then usekubectl edit
to update the same static or dynamic flag, the value can be picked up.Here is the logs of operator:
downloaded-logs-20231003-122906.csv
The text was updated successfully, but these errors were encountered: