TritonDataCenter / pg_prefaulter

Faults pages into PostgreSQL shared_buffers or filesystem caches in advance of WAL apply
Apache License 2.0
56 stars 13 forks source link

Add and use sampling loggers #12

Open sean- opened 7 years ago

sean- commented 7 years ago

Add a sampling logger to enable high-volume error points that provide sufficient fidelity of the underlying condition but doesn't drown the system in IO or useless repeated data. Zerolog supports this but a global singleton sampling logger needs to be present someplace.

https://github.com/rs/zerolog#log-sampling

jclulow commented 7 years ago

Please make sure we can disable any sampling behaviour in the configuration file.