]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: MonitorDBStore: allow randomly injecting random delays on writes
authorJoao Eduardo Luis <joao@redhat.com>
Tue, 9 Dec 2014 17:35:47 +0000 (17:35 +0000)
committerLoic Dachary <ldachary@redhat.com>
Wed, 18 Mar 2015 22:23:56 +0000 (23:23 +0100)
commite997c9fed5feb3e877dfe07ffac1327b85d09ea2
tree0c261917c7d296a5e9b0d99a81423d330c605952
parent1f58a0adc3b23785fac00083d721b62f6a4c44a1
mon: MonitorDBStore: allow randomly injecting random delays on writes

Adds two new config options:

mon_inject_transaction_delay_probability : DOUBLE (0.0-1.0, default: 0.0)
mon_inject_transaction_delay_max : DOUBLE (seconds, default: 10.0)

If probability is set to a value greater than 0, just before applying
the transaction, the store will decide whether to inject a delay,
randomly choosing a value between 0 and the max.

Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
(cherry picked from commit beaa04e4119765d5775a6c48fd072dd95c984e3b)
src/common/config_opts.h
src/mon/MonitorDBStore.h