File: change-default-number-of-sacks.patch

package info (click to toggle)
gnocchi 4.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,384 kB
  • sloc: python: 21,820; sh: 366; makefile: 54
file content (18 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Change default number of sacks
 By default, 128 is a way too small, and that can create issues with the
 Ceph storage. Let's make it 32768 by default.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-11-13

--- gnocchi-4.6.4.orig/gnocchi/cli/manage.py
+++ gnocchi-4.6.4/gnocchi/cli/manage.py
@@ -49,7 +49,7 @@ _SACK_NUMBER_OPT = cfg.IntOpt(
 def upgrade():
     conf = cfg.ConfigOpts()
     sack_number_opt = copy.copy(_SACK_NUMBER_OPT)
-    sack_number_opt.default = 128
+    sack_number_opt.default = 32768
     conf.register_cli_opts([
         cfg.BoolOpt("skip-index", default=False,
                     help="Skip index upgrade."),