forked from RedisLabs/memtier_benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.import
36 lines (28 loc) · 1.36 KB
/
README.import
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
The memtier_benchmark tool provides a --data-import option that allows reading
data and optionally key names from file.
The expected file is a comma delimited file (CSV), with the following
columns:
'dumpflags' an integer bit-mask flags value which should generally be '0'.
'time' the time the item was inserted or modified, expressed in
seconds since the memcached startup.
'exptime' item's expiration time, expressed in seconds since the
memcached startup.
'nbytes' length of item data, in bytes.
'nsuffix' length of flags+length string associated with the item, in bytes.
'it_flags' a flags bitmask value.
'clsid' item's slab class ID.
'nkey' length of key, in bytes.
'key' the key itself.
'data' the data itself.
The 'key' and 'data' columns are enclosed in double quotes. If data in these
columns contains a double quote, it is quoted (i.e., a single " is encoded as
"").
The data column may contain binary data, including non-ASCII characters, NULLs,
CRs and LFs.
Note:
To avoid unnecessary error while passing file.
1. Add extra 4 bytes in nbytes
2. Add extra 2 bytes in nkey
Example:
dumpflags, time, exptime, nbytes, nsuffix, it_flags, clsid, nkey, key, data
0, 0, 60, 19, 200, 0, 1, 11, 'doxrpshny', 'asdfghjklqwerty'