]> git.proxmox.com Git - ceph.git/blame - ceph/src/rocksdb/java/src/main/java/org/rocksdb/TickerType.java
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / rocksdb / java / src / main / java / org / rocksdb / TickerType.java
CommitLineData
7c673cae 1// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
11fdf7f2
TL
2// This source code is licensed under both the GPLv2 (found in the
3// COPYING file in the root directory) and Apache 2.0 License
4// (found in the LICENSE.Apache file in the root directory).
7c673cae
FG
5
6package org.rocksdb;
7
8public enum TickerType {
11fdf7f2
TL
9
10 /**
11 * total block cache misses
12 *
13 * REQUIRES: BLOCK_CACHE_MISS == BLOCK_CACHE_INDEX_MISS +
14 * BLOCK_CACHE_FILTER_MISS +
15 * BLOCK_CACHE_DATA_MISS;
16 */
17 BLOCK_CACHE_MISS((byte) 0x0),
18
19 /**
20 * total block cache hit
21 *
22 * REQUIRES: BLOCK_CACHE_HIT == BLOCK_CACHE_INDEX_HIT +
23 * BLOCK_CACHE_FILTER_HIT +
24 * BLOCK_CACHE_DATA_HIT;
25 */
26 BLOCK_CACHE_HIT((byte) 0x1),
27
28 BLOCK_CACHE_ADD((byte) 0x2),
29
30 /**
31 * # of failures when adding blocks to block cache.
32 */
33 BLOCK_CACHE_ADD_FAILURES((byte) 0x3),
34
35 /**
36 * # of times cache miss when accessing index block from block cache.
37 */
38 BLOCK_CACHE_INDEX_MISS((byte) 0x4),
39
40 /**
41 * # of times cache hit when accessing index block from block cache.
42 */
43 BLOCK_CACHE_INDEX_HIT((byte) 0x5),
44
45 /**
46 * # of index blocks added to block cache.
47 */
48 BLOCK_CACHE_INDEX_ADD((byte) 0x6),
49
50 /**
51 * # of bytes of index blocks inserted into cache
52 */
53 BLOCK_CACHE_INDEX_BYTES_INSERT((byte) 0x7),
54
55 /**
56 * # of bytes of index block erased from cache
57 */
58 BLOCK_CACHE_INDEX_BYTES_EVICT((byte) 0x8),
59
60 /**
61 * # of times cache miss when accessing filter block from block cache.
62 */
63 BLOCK_CACHE_FILTER_MISS((byte) 0x9),
64
65 /**
66 * # of times cache hit when accessing filter block from block cache.
67 */
68 BLOCK_CACHE_FILTER_HIT((byte) 0xA),
69
70 /**
71 * # of filter blocks added to block cache.
72 */
73 BLOCK_CACHE_FILTER_ADD((byte) 0xB),
74
75 /**
76 * # of bytes of bloom filter blocks inserted into cache
77 */
78 BLOCK_CACHE_FILTER_BYTES_INSERT((byte) 0xC),
79
80 /**
81 * # of bytes of bloom filter block erased from cache
82 */
83 BLOCK_CACHE_FILTER_BYTES_EVICT((byte) 0xD),
84
85 /**
86 * # of times cache miss when accessing data block from block cache.
87 */
88 BLOCK_CACHE_DATA_MISS((byte) 0xE),
89
90 /**
91 * # of times cache hit when accessing data block from block cache.
92 */
93 BLOCK_CACHE_DATA_HIT((byte) 0xF),
94
95 /**
96 * # of data blocks added to block cache.
97 */
98 BLOCK_CACHE_DATA_ADD((byte) 0x10),
99
100 /**
101 * # of bytes of data blocks inserted into cache
102 */
103 BLOCK_CACHE_DATA_BYTES_INSERT((byte) 0x11),
104
105 /**
106 * # of bytes read from cache.
107 */
108 BLOCK_CACHE_BYTES_READ((byte) 0x12),
109
110 /**
111 * # of bytes written into cache.
112 */
113 BLOCK_CACHE_BYTES_WRITE((byte) 0x13),
114
115 /**
116 * # of times bloom filter has avoided file reads.
117 */
118 BLOOM_FILTER_USEFUL((byte) 0x14),
119
120 /**
121 * # persistent cache hit
122 */
123 PERSISTENT_CACHE_HIT((byte) 0x15),
124
125 /**
126 * # persistent cache miss
127 */
128 PERSISTENT_CACHE_MISS((byte) 0x16),
129
130 /**
131 * # total simulation block cache hits
132 */
133 SIM_BLOCK_CACHE_HIT((byte) 0x17),
134
135 /**
136 * # total simulation block cache misses
137 */
138 SIM_BLOCK_CACHE_MISS((byte) 0x18),
139
140 /**
141 * # of memtable hits.
142 */
143 MEMTABLE_HIT((byte) 0x19),
144
145 /**
146 * # of memtable misses.
147 */
148 MEMTABLE_MISS((byte) 0x1A),
149
150 /**
151 * # of Get() queries served by L0
152 */
153 GET_HIT_L0((byte) 0x1B),
154
155 /**
156 * # of Get() queries served by L1
157 */
158 GET_HIT_L1((byte) 0x1C),
159
160 /**
161 * # of Get() queries served by L2 and up
162 */
163 GET_HIT_L2_AND_UP((byte) 0x1D),
164
165 /**
166 * COMPACTION_KEY_DROP_* count the reasons for key drop during compaction
167 * There are 4 reasons currently.
168 */
169
170 /**
171 * key was written with a newer value.
172 */
173 COMPACTION_KEY_DROP_NEWER_ENTRY((byte) 0x1E),
174
175 /**
176 * Also includes keys dropped for range del.
177 * The key is obsolete.
178 */
179 COMPACTION_KEY_DROP_OBSOLETE((byte) 0x1F),
180
181 /**
182 * key was covered by a range tombstone.
183 */
184 COMPACTION_KEY_DROP_RANGE_DEL((byte) 0x20),
185
186 /**
187 * User compaction function has dropped the key.
188 */
189 COMPACTION_KEY_DROP_USER((byte) 0x21),
190
191 /**
192 * all keys in range were deleted.
193 */
194 COMPACTION_RANGE_DEL_DROP_OBSOLETE((byte) 0x22),
195
196 /**
197 * Number of keys written to the database via the Put and Write call's.
198 */
199 NUMBER_KEYS_WRITTEN((byte) 0x23),
200
201 /**
202 * Number of Keys read.
203 */
204 NUMBER_KEYS_READ((byte) 0x24),
205
206 /**
207 * Number keys updated, if inplace update is enabled
208 */
209 NUMBER_KEYS_UPDATED((byte) 0x25),
210
211 /**
212 * The number of uncompressed bytes issued by DB::Put(), DB::Delete(),\
213 * DB::Merge(), and DB::Write().
214 */
215 BYTES_WRITTEN((byte) 0x26),
216
217 /**
218 * The number of uncompressed bytes read from DB::Get(). It could be
219 * either from memtables, cache, or table files.
220 *
221 * For the number of logical bytes read from DB::MultiGet(),
222 * please use {@link #NUMBER_MULTIGET_BYTES_READ}.
223 */
224 BYTES_READ((byte) 0x27),
225
226 /**
227 * The number of calls to seek.
228 */
229 NUMBER_DB_SEEK((byte) 0x28),
230
231 /**
232 * The number of calls to next.
233 */
234 NUMBER_DB_NEXT((byte) 0x29),
235
236 /**
237 * The number of calls to prev.
238 */
239 NUMBER_DB_PREV((byte) 0x2A),
240
241 /**
242 * The number of calls to seek that returned data.
243 */
244 NUMBER_DB_SEEK_FOUND((byte) 0x2B),
245
246 /**
247 * The number of calls to next that returned data.
248 */
249 NUMBER_DB_NEXT_FOUND((byte) 0x2C),
250
251 /**
252 * The number of calls to prev that returned data.
253 */
254 NUMBER_DB_PREV_FOUND((byte) 0x2D),
255
256 /**
257 * The number of uncompressed bytes read from an iterator.
258 * Includes size of key and value.
259 */
260 ITER_BYTES_READ((byte) 0x2E),
261
262 NO_FILE_CLOSES((byte) 0x2F),
263
264 NO_FILE_OPENS((byte) 0x30),
265
266 NO_FILE_ERRORS((byte) 0x31),
267
268 /**
269 * Time system had to wait to do LO-L1 compactions.
270 *
271 * @deprecated
272 */
273 @Deprecated
274 STALL_L0_SLOWDOWN_MICROS((byte) 0x32),
275
276 /**
277 * Time system had to wait to move memtable to L1.
278 *
279 * @deprecated
280 */
281 @Deprecated
282 STALL_MEMTABLE_COMPACTION_MICROS((byte) 0x33),
283
284 /**
285 * write throttle because of too many files in L0.
286 *
287 * @deprecated
288 */
289 @Deprecated
290 STALL_L0_NUM_FILES_MICROS((byte) 0x34),
291
292 /**
293 * Writer has to wait for compaction or flush to finish.
294 */
295 STALL_MICROS((byte) 0x35),
296
297 /**
298 * The wait time for db mutex.
299 *
300 * Disabled by default. To enable it set stats level to {@link StatsLevel#ALL}
301 */
302 DB_MUTEX_WAIT_MICROS((byte) 0x36),
303
304 RATE_LIMIT_DELAY_MILLIS((byte) 0x37),
305
306 /**
307 * Number of iterators currently open.
308 */
309 NO_ITERATORS((byte) 0x38),
310
311 /**
312 * Number of MultiGet calls.
313 */
314 NUMBER_MULTIGET_CALLS((byte) 0x39),
315
316 /**
317 * Number of MultiGet keys read.
318 */
319 NUMBER_MULTIGET_KEYS_READ((byte) 0x3A),
320
321 /**
322 * Number of MultiGet bytes read.
323 */
324 NUMBER_MULTIGET_BYTES_READ((byte) 0x3B),
325
326 /**
327 * Number of deletes records that were not required to be
328 * written to storage because key does not exist.
329 */
330 NUMBER_FILTERED_DELETES((byte) 0x3C),
331 NUMBER_MERGE_FAILURES((byte) 0x3D),
332
333 /**
334 * Number of times bloom was checked before creating iterator on a
335 * file, and the number of times the check was useful in avoiding
336 * iterator creation (and thus likely IOPs).
337 */
338 BLOOM_FILTER_PREFIX_CHECKED((byte) 0x3E),
339 BLOOM_FILTER_PREFIX_USEFUL((byte) 0x3F),
340
341 /**
342 * Number of times we had to reseek inside an iteration to skip
343 * over large number of keys with same userkey.
344 */
345 NUMBER_OF_RESEEKS_IN_ITERATION((byte) 0x40),
346
347 /**
348 * Record the number of calls to {@link RocksDB#getUpdatesSince(long)}. Useful to keep track of
349 * transaction log iterator refreshes.
350 */
351 GET_UPDATES_SINCE_CALLS((byte) 0x41),
352
353 /**
354 * Miss in the compressed block cache.
355 */
356 BLOCK_CACHE_COMPRESSED_MISS((byte) 0x42),
357
358 /**
359 * Hit in the compressed block cache.
360 */
361 BLOCK_CACHE_COMPRESSED_HIT((byte) 0x43),
362
363 /**
364 * Number of blocks added to compressed block cache.
365 */
366 BLOCK_CACHE_COMPRESSED_ADD((byte) 0x44),
367
368 /**
369 * Number of failures when adding blocks to compressed block cache.
370 */
371 BLOCK_CACHE_COMPRESSED_ADD_FAILURES((byte) 0x45),
372
373 /**
374 * Number of times WAL sync is done.
375 */
376 WAL_FILE_SYNCED((byte) 0x46),
377
378 /**
379 * Number of bytes written to WAL.
380 */
381 WAL_FILE_BYTES((byte) 0x47),
382
383 /**
384 * Writes can be processed by requesting thread or by the thread at the
385 * head of the writers queue.
386 */
387 WRITE_DONE_BY_SELF((byte) 0x48),
388
389 /**
390 * Equivalent to writes done for others.
391 */
392 WRITE_DONE_BY_OTHER((byte) 0x49),
393
394 /**
395 * Number of writes ending up with timed-out.
396 */
397 WRITE_TIMEDOUT((byte) 0x4A),
398
399 /**
400 * Number of Write calls that request WAL.
401 */
402 WRITE_WITH_WAL((byte) 0x4B),
403
404 /**
405 * Bytes read during compaction.
406 */
407 COMPACT_READ_BYTES((byte) 0x4C),
408
409 /**
410 * Bytes written during compaction.
411 */
412 COMPACT_WRITE_BYTES((byte) 0x4D),
413
414 /**
415 * Bytes written during flush.
416 */
417 FLUSH_WRITE_BYTES((byte) 0x4E),
418
419 /**
420 * Number of table's properties loaded directly from file, without creating
421 * table reader object.
422 */
423 NUMBER_DIRECT_LOAD_TABLE_PROPERTIES((byte) 0x4F),
424 NUMBER_SUPERVERSION_ACQUIRES((byte) 0x50),
425 NUMBER_SUPERVERSION_RELEASES((byte) 0x51),
426 NUMBER_SUPERVERSION_CLEANUPS((byte) 0x52),
427
428 /**
429 * # of compressions/decompressions executed
430 */
431 NUMBER_BLOCK_COMPRESSED((byte) 0x53),
432 NUMBER_BLOCK_DECOMPRESSED((byte) 0x54),
433
434 NUMBER_BLOCK_NOT_COMPRESSED((byte) 0x55),
435 MERGE_OPERATION_TOTAL_TIME((byte) 0x56),
436 FILTER_OPERATION_TOTAL_TIME((byte) 0x57),
437
438 /**
439 * Row cache.
440 */
441 ROW_CACHE_HIT((byte) 0x58),
442 ROW_CACHE_MISS((byte) 0x59),
443
444 /**
445 * Read amplification statistics.
446 *
447 * Read amplification can be calculated using this formula
448 * (READ_AMP_TOTAL_READ_BYTES / READ_AMP_ESTIMATE_USEFUL_BYTES)
449 *
450 * REQUIRES: ReadOptions::read_amp_bytes_per_bit to be enabled
451 */
452
453 /**
454 * Estimate of total bytes actually used.
455 */
456 READ_AMP_ESTIMATE_USEFUL_BYTES((byte) 0x5A),
457
458 /**
459 * Total size of loaded data blocks.
460 */
461 READ_AMP_TOTAL_READ_BYTES((byte) 0x5B),
462
463 /**
464 * Number of refill intervals where rate limiter's bytes are fully consumed.
465 */
466 NUMBER_RATE_LIMITER_DRAINS((byte) 0x5C),
467
468 /**
469 * Number of internal skipped during iteration
470 */
471 NUMBER_ITER_SKIP((byte) 0x5D),
472
473 /**
474 * Number of MultiGet keys found (vs number requested)
475 */
476 NUMBER_MULTIGET_KEYS_FOUND((byte) 0x5E),
477
478 TICKER_ENUM_MAX((byte) 0x5F);
479
480
481 private final byte value;
482
483 TickerType(final byte value) {
484 this.value = value;
485 }
486
487 public byte getValue() {
488 return value;
489 }
7c673cae 490}