commit | a9c33c595fce417af0e5dc2cb60e50ae0bfbc30b | [log] [tgz] |
---|---|---|
author | jan kaufman <jan.kaufman@tcpcloud.eu> | Sat Sep 19 15:57:42 2015 +0200 |
committer | jan kaufman <jan.kaufman@tcpcloud.eu> | Sat Sep 19 15:57:42 2015 +0200 |
tree | 0867e2aaa6762eb5d69252ec44d0f4932d725e55 | |
parent | 7d04312cb89262117971af2bb3f87ca1efd0eed8 [diff] |
try to set workers as cpucount +1
diff --git a/heka/files/00-hekad.toml b/heka/files/00-hekad.toml index cb9fda1..baecf51 100644 --- a/heka/files/00-hekad.toml +++ b/heka/files/00-hekad.toml
@@ -1,6 +1,4 @@ -{%- from "heka/map.jinja" import router with context -%} - [hekad] -maxprocs = 2 -{#% salt['grains.get']('num_cpus', '2') %#} +{%- set workers = grains.num_cpus + 1 %} +maxprocs = {{ workers }}