def prepare_run(): with hide('running'): jmx.set_bool_value(SAVE_OPS_PAR, cassandra_settings.save_ops) jmx.set_bool_value(IGNORE_NON_LOCAL_PAR, cassandra_settings.ignore_non_local) jmx.set_value(MAX_ITEMS_FOR_LARGE_REPL_PAR, cassandra_settings.max_items_for_large_replication_degree) jmx.set_value(SLEEP_TIME_PAR, cassandra_settings.sleep_time)
def prepare_run(): with hide('running'): jmx.set_bool_value(SAVE_OPS_PAR, cassandra_settings.save_ops) jmx.set_bool_value(IGNORE_NON_LOCAL_PAR, cassandra_settings.ignore_non_local) jmx.set_value( MAX_ITEMS_FOR_LARGE_REPL_PAR, cassandra_settings.max_items_for_large_replication_degree) jmx.set_value(SLEEP_TIME_PAR, cassandra_settings.sleep_time)
def prepare_load(): with hide('running'): jmx.set_bool_value(SAVE_OPS_PAR, False) jmx.set_bool_value(IGNORE_NON_LOCAL_PAR, False) jmx.set_value(MAX_ITEMS_FOR_LARGE_REPL_PAR, 0) jmx.set_value(MAX_ITEMS_FOR_LARGE_REPL_PAR, 0) jmx.set_value(SLEEP_TIME_PAR, 0)