-
Notifications
You must be signed in to change notification settings - Fork 1
/
ConnectionOptions.h
96 lines (80 loc) · 1.55 KB
/
ConnectionOptions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#ifndef CONNECTIONOPTIONS_H
#define CONNECTIONOPTIONS_H
#include "distributions.h"
enum qps_function_type {
NONE,
TRIANGLE,
QTRIANGLE,
SIN_NOISE,
};
struct qps_function_triangle {
int min;
int max;
double period;
double max_hold;
};
struct qps_function_qtriangle {
struct qps_function_triangle triangle;
int step;
};
struct qps_function_sin_noise {
int min;
int max;
double period;
int noise_amplitude;
double noise_update_interval;
};
struct qps_function_info {
enum qps_function_type type;
int warmup_time;
int warmup_rate;
union {
struct qps_function_triangle triangle;
struct qps_function_qtriangle qtriangle;
struct qps_function_sin_noise sin_noise;
} params;
};
typedef struct {
int connections;
char numreqperconn[32];
bool blocking;
double lambda;
int qps;
int measure_qps;
int records;
bool binary;
bool sasl;
char username[32];
char password[32];
char keysize[32];
char valuesize[32];
char getcount[32];
// int keysize;
// int valuesize;
char ia[32];
char popularity[32];
long permutation_seed;
// qps_per_connection
// iadist
double update;
int time;
bool loadonly;
int depth;
bool no_nodelay;
bool noload;
int threads;
enum distribution_t iadist;
int warmup;
bool skip;
bool roundrobin;
int server_given;
int lambda_denom;
bool oob_thread;
bool moderate;
struct qps_function_info qps_function;
bool scan_search_enabled;
char save_arg[80];
bool should_sample;
double master_boot_time;
} options_t;
#endif // CONNECTIONOPTIONS_H