blob: e83907e8e83f95ae42cced514266397638213e36 [file] [log] [blame]
kdanylov aka koder3a9e5db2017-05-09 20:00:44 +03001# ---------------- PROFILES ------------------------------------------------------------------------------------------
2
3
4# this is default values, real values is loaded from config
5class ColorProfile:
6 primary_color = 'b'
7 suppl_color1 = 'teal'
8 suppl_color2 = 'magenta'
9 suppl_color3 = 'orange'
10 box_color = 'y'
11 err_color = 'red'
kdanylov aka koder84de1e42017-05-22 14:00:07 +030012 super_outlier_color = 'orange'
kdanylov aka koder3a9e5db2017-05-09 20:00:44 +030013
14 noise_alpha = 0.3
15 subinfo_alpha = 0.7
16
17 imshow_colormap = None # type: str
18 hmap_cmap = "Blues"
19
20
21default_format = 'svg'
22io_chart_format = 'svg'
23
24
25class StyleProfile:
26 default_style = 'seaborn-white'
27 io_chart_style = 'classic'
28
29 dpi = 80
30
31 lat_samples = 5
32
33 tide_layout = False
34 hist_boxes = 10
35 hist_lat_boxes = 25
36 hm_hist_bins_count = 25
37 hm_x_slots = 25
38 min_points_for_dev = 5
39
40 x_label_rotation = 35
41
42 dev_range_x = 2.0
43 dev_perc = 95
44
45 point_shape = 'o'
46 err_point_shape = '*'
kdanylov aka koder84de1e42017-05-22 14:00:07 +030047 max_hidden_outliers_fraction = 0.05
48 super_outlier_point_shape_up = '^'
49 super_outlier_point_shape_down = 'v'
kdanylov aka koder3a9e5db2017-05-09 20:00:44 +030050
51 avg_range = 20
52 approx_average = True
53 approx_average_no_points = False
54
55 curve_approx_level = 6
56 curve_approx_points = 100
57 assert avg_range >= min_points_for_dev
58
59 # figure size in inches
60 figsize = (8, 4)
61 figsize_long = (8, 4)
62 qd_chart_inches = (16, 9)
63
64 subplot_adjust_r = 0.75
65 subplot_adjust_r_no_legend = 0.9
66 title_font_size = 12
67
68 extra_io_spine = True
69
70 legend_for_eng = True
71
72 # heatmap interpolation is deprecated
73 # heatmap_interpolation = '1d'
74 # heatmap_interpolation = None
75 # heatmap_interpolation_points = 300
76
77 heatmap_colorbar = False
kdanylov aka koder84de1e42017-05-22 14:00:07 +030078 outliers_q_nd = 3
79 outliers_hide_q_nd = 4
80 outliers_lat = (0.01, 0.95)
kdanylov aka koder3a9e5db2017-05-09 20:00:44 +030081
82 violin_instead_of_box = True
83 violin_point_count = 30000
84
85 min_iops_vs_qd_jobs = 3
86
87 qd_bins = [0, 1, 2, 4, 6, 8, 12, 16, 20, 26, 32, 40, 48, 56, 64, 96, 128]
88 iotime_bins = list(range(0, 1030, 50))
89 block_size_bins = [0, 2, 4, 8, 16, 32, 48, 64, 96, 128, 192, 256, 384, 512, 1024, 2048]
90 large_blocks = 256
91
92 min_load_diff = 0.05
93
94 histo_grid = 'x'
95
96
97DefColorProfile = ColorProfile()
98DefStyleProfile = StyleProfile()