mon: Let any EC position lead a PG with sticky_primaries #213
Open
koolkhel
wants to merge 2 commits from
koolkhel/vitastor:mon-sticky-ec-parity into master
pull from: koolkhel/vitastor:mon-sticky-ec-parity
merge into: vitalif:master
vitalif:master
vitalif:primary-stickiness
vitalif:libvfn
vitalif:canceling
vitalif:immediate-repeering
vitalif:rdma-close-tcp
vitalif:use-degraded-writes
vitalif:fix-write-delete-flow
vitalif:openssl-3.0.12
vitalif:openssl-capture-secrets
vitalif:ignore-small-rdma-end
vitalif:encrypt-batch
vitalif:faster-peering-calc
vitalif:http-hello
vitalif:xxh3-bench
vitalif:create-user-etcd-based
vitalif:aesxts_streaming_nosupport
vitalif:refactor-heap-continue-write
vitalif:ston3lu-patch-0127
vitalif:rdma-credits
vitalif:heap-meta
vitalif:sendmsg-zc-no-more-error
vitalif:fix-clear-refs
vitalif:veeam-trick
vitalif:test-etcd-schizo
vitalif:test
vitalif:test1
vitalif:test2
vitalif:cow-meta
vitalif:kv-readahead
vitalif:qemu-fix-crash-idea
vitalif:eventloop-auto-init-trigger
vitalif:hugo-docs
vitalif:node-mutex-and-postpone
vitalif:check-writeback
vitalif:msgr-iothreads-v2
vitalif:antietcd
vitalif:rel-1.4
vitalif:test-fix-ec-unknown-state-51
vitalif:kv-update
vitalif:kv-debug
vitalif:hotfix-1.2.0
vitalif:rdma-simple-nodp
vitalif:zerocopy-tcp-send
vitalif:csi-staging
vitalif:hotfix-1.1.0
vitalif:hotfix-1.0.0
vitalif:fsync-feedback
vitalif:cached-reads
vitalif:qemu-send-loop
vitalif:test-double-alloc
vitalif:hier-failure-domains
vitalif:mon-self-restart
vitalif:epoch-deletions
vitalif:rdma-flow-control
vitalif:csi-use-vitastor-cli
vitalif:rdma-v2
vitalif:etcd-hide-base64
vitalif:lrc-matrix
vitalif:rm-left-on-dead
vitalif:nfs-proxy-old
vitalif:non-odp-rdma
vitalif:test-zctr
vitalif:separate-data-connections
vitalif:sec_osd_msgr
vitalif:test-assert
vitalif:nbd-vmsplice
vitalif:allow-etcd-address-option
vitalif:rdma-zerocopy
vitalif:rel-0.5
vitalif:openonload
vitalif:sync-io-test
vitalif:trace-sync
vitalif:trace-sqes
vitalif:test-submit-and-wait
vitalif:test-sq-poll
vitalif:blocking-uring-test
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "koolkhel/vitastor:mon-sticky-ec-parity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
OSD sets from
optimize_change()come in host order (RuleCombinatoris created withoutordered, onlyoptimize_initial()rotates the sets), and EC primaries are picked from data positions only. So after a host was out and back, a host was added or a weight changed, the lastparity_chunkshosts lead almost no PG: with 12 hosts and EC 8+2, hosts 11 and 12 lead none. Withsticky_primaries(#198), pick the least loaded live OSD of any position. Turning the option on moves no live primary; the calm rebalance (primary_rebalance_time) then evens them out, at most one new primary per OSD per pass. Without the option nothing changes.Cost: a parity primary has no data chunk locally, so with EC 8+2 about 2-3 % more reads go over the network. An alternative would be to pass
orderedto the combinator inoptimize_change(), but it does nothing for existing layouts and makes the LP several times slower.Found: seen on a cluster (12 hosts x 48 OSDs, EC 8+2, 2048 PGs): hosts 11 and 12 led no PG. Reproduced with the monitor code on that cluster's PG map: with this change and
sticky_primaries, 0 primary moves when the option is turned on, then 576 moves in 4 calm passes; hosts 11 and 12 then lead 147 and 146 PGs and every OSD leads 3-4 (before: 0-12, 99 OSDs leading nothing; #198 alone: 96 OSDs still leading nothing).Tested:
node mon/test-sticky-primaries.js, newtest_host_ordered_sets(fails without the change).Contributor Name
Yury Luneff (MIND Software LLC, https://mindsw.io)
CLA
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.