forked from drouyang/memcached_client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h
68 lines (58 loc) · 1.25 KB
/
config.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
// client - a memcached load tester
// David Meisner 2010 ([email protected])
#ifndef CONFIG_H
#define CONFIG_H
#include <stdint.h>
#include "generate.h"
#include "pthread.h"
#define TCP_MODE 0
#define UDP_MODE 1
#define MAX_SERVERS 4
//#define FLEXUS
#ifdef FLEXUS
#include "magic2_breakpoint.h"
#endif
struct config {
int protocol_mode;
int n_cpus;
int n_keys;
int n_workers;
int n_servers;
struct worker** workers;
int n_connections_total;
int run_time;
int stats_time;
int naggles;
int multiget_size;
char* server_ip_address[MAX_SERVERS];
char* server_file;
char* input_file;
char* output_file;
int server_port[MAX_SERVERS];
int server_memory;
int keysToPreload;
int scaling_factor;
float get_frac;
float multiget_frac;
float incr_frac;
struct key_list* key_list;
struct int_dist* key_pop_dist;
struct int_dist* value_size_dist;
struct int_dist* multiget_dist;
struct int_dist* interarrival_dist;
struct dep_dist* dep_dist;
int arrival_distribution_type;
int received_warmup_keys;
int rps;
int fixed_size;
int zynga;
int random_seed;
int pre_load;
int bad_multiget;
uint32_t current_request_uid;
int do_latency;
int tx_batch_size;
int hit_one_object;
int forceUniformKeyDist;
};
#endif