]> 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)
committerJoao Eduardo Luis <joao@redhat.com>
Thu, 11 Dec 2014 17:49:20 +0000 (17:49 +0000)
commitbeaa04e4119765d5775a6c48fd072dd95c984e3b
tree77fc55675d9b85c1ffda9df8f97ab771192d60aa
parentbc2b9f6bf5fa629e127852720d6ad42ef1276b12
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>
src/common/config_opts.h
src/mon/MonitorDBStore.h