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 }}