demo.config 799 B

1234567891011121314151617181920212223
  1. %% -*- mode: erlang -*-
  2. %% pooler app config example
  3. [
  4. {pooler, [
  5. {pools, [
  6. [{name, pool1},
  7. {max_count, 5},
  8. {init_count, 2},
  9. {start_mfa,
  10. {pooled_gs, start_link, [{"p1"}]}}],
  11. [{name, pool2},
  12. {max_count, 5},
  13. {init_count, 2},
  14. {start_mfa,
  15. {pooled_gs, start_link, [{"p2"}]}}]
  16. ]}
  17. %% if you want to enable metrics, set this to a module with
  18. %% an API conformant to the folsom_metrics module.
  19. %% If this config is missing, then no metrics are sent.
  20. %% {metrics_module, folsom_metrics}
  21. ]}
  22. ].