Add STORAGE_WRITE_WINDOW_SECONDS and STORAGE_WRITE_WINDOW_SECONDS for rate control
This commit is contained in:
parent
87a26ac55c
commit
90f56d0e84
|
@ -114,6 +114,8 @@ FlowKnobs::FlowKnobs(bool randomize, bool isSimulated) {
|
|||
//IAsyncFile
|
||||
init( INCREMENTAL_DELETE_TRUNCATE_AMOUNT, 5e8 ); //500MB
|
||||
init( INCREMENTAL_DELETE_INTERVAL, 1.0 ); //every 1 second
|
||||
init( STORAGE_WRITE_WINDOW_LIMIT, -1 ); // 0 - auto(TODO); Negative - no limit
|
||||
init( STORAGE_WRITE_WINDOW_SECONDS, -1 ); // 0 - auto(TODO); Negative - no limit
|
||||
|
||||
//Net2 and FlowTransport
|
||||
init( MIN_COALESCE_DELAY, 10e-6 ); if( randomize && BUGGIFY ) MIN_COALESCE_DELAY = 0;
|
||||
|
|
|
@ -134,6 +134,8 @@ public:
|
|||
//IAsyncFile
|
||||
int64_t INCREMENTAL_DELETE_TRUNCATE_AMOUNT;
|
||||
double INCREMENTAL_DELETE_INTERVAL;
|
||||
int64_t STORAGE_WRITE_WINDOW_LIMIT;
|
||||
double STORAGE_WRITE_WINDOW_SECONDS;
|
||||
|
||||
//Net2
|
||||
double MIN_COALESCE_DELAY;
|
||||
|
|
Loading…
Reference in New Issue