Jonathan Strong
0a805ab609
reverse InfluxWriter::with_logger deprecation in face of overwhelming popular demand
5 years ago
Jonathan Strong
58bc3b9a39
remove obe 'mm' prefix to InfluxWriter thread name
5 years ago
Jonathan Strong
e8872c9004
reduce sleep duration when closing thread from 1s -> 10ms
5 years ago
Jonathan Strong
f944dba825
add authenticated writes functionality
5 years ago
Jonathan Strong
9178b7a13b
validate memory scaling, add logging
- adds example to repeatedly send many measurements to InfluxWriter for purposes of stress testing (i.e. shut influxdb off, see if InfluxWriter recovers correctly)
- InfluxWriter now tracks allocated buffer memory and logs it
- lower INITIAL_BACKLOG
5 years ago
Jonathan Strong
3e476ce20e
allow writer thread to scale up from INITIAL_BACKLOG to MAX_BACKLOG and then back down
5 years ago
Jonathan Strong
29dc9b8010
fix misc other broken things
5 years ago
Jonathan Strong
94f1e93026
get rid of everything else except the influx mod, and rename the crate influx-writer
5 years ago
Jonathan Strong
7a0684371f
adds `pub fn rotating_file_logger<P>(path: P, level: Severity, compress: bool) -> slog::Logger`
allows optional compression on rotated logfiles
6 years ago
Jonathan Strong
7d2fce56a4
add test to verify Utc -> nanos is lossless
6 years ago
Jonathan Strong
dbd72c21fa
upgrade sloggers to v0.3 and use new log rotation/compression features
6 years ago
Jonathan Strong
4830a27c3b
revamped InfluxWriter passed its tests with flying colors
this thing is a fucking rock now
6 years ago
Jonathan Strong
11b214da7a
feat(InfluxWriter): huge refactor so InfluxWriter queues a backlog on failed db requests
will need extensive testing before prod use
6 years ago
Jonathan Strong
aa5cdf2b3b
adds pub fn secs(Duration) -> f64 at crate root and InfluxWriter::secs(&self, Duration) -> f64
6 years ago
Jonathan Strong
77a1fd79d4
hide latency mod behind feature gate
6 years ago
Jonathan Strong
33519ceece
pub fn nanos_utc(t: i64) -> DateTime<Utc>
6 years ago
Jonathan Strong
2b303be4ec
swaps in the dirs crate home_dir() instead of deprecated std fn
7 years ago
Jonathan Strong
00d0e1a427
makes zmq optional dep
7 years ago
Jonathan Strong
b9b1306da1
some nanos-related things
7 years ago
Jonathan Strong
2930c261c0
misc
7 years ago
Jonathan Strong
1cfad254e0
sets huge channel buffer for async logger when trace is enabled
7 years ago
Jonathan Strong
e11ea9ed6a
adds short_uuid fn to root
7 years ago
Jonathan Strong
0713744d12
middle of the night debugging
I copied several Window structs from windows crate to avoid a cyclic
dependency. The rationale was, latency mod is on its way out anyway.
7 years ago
Jonathan Strong
f5a1d54040
changes channel size to 20k
7 years ago
Jonathan Strong
a87cb002ac
replaces Vec with SmallVec for backing storage of `OwnedMeasurement`
7 years ago
Jonathan Strong
6541d5ffb9
puts warnings mod behind a feature gate
7 years ago
Jonathan Strong
9932cec369
misc
7 years ago
Jonathan Strong
92dd50c2a4
misc
7 years ago
Jonathan Strong
7b8f8c0918
InfluxWriter loop now blocks on recv, among other incremental improvements
7 years ago
Jonathan Strong
e9e6e01ebe
InfluxWriter refactor (mostly)
7 years ago
Jonathan Strong
4a6498a6f1
adds async_file_logger fn
7 years ago
Jonathan Strong
4635decd57
adds hist mod with hdrsample interface/thread
7 years ago
Jonathan Strong
453776b273
re-exports sloggers::Severity for convenience
7 years ago
Jonathan Strong
9a8e62754d
massive cleanup
- kills MeasurementWindow/WTen
- all warnings silenced
- cruft removed
7 years ago
Jonathan Strong
5b716e411b
adds test feature
7 years ago
Jonathan Strong
fa0d5b68fb
sets file_logger to return a noop logger if cfg(test)
7 years ago
Jonathan Strong
929fdb2183
minor tweaks
7 years ago
Jonathan Strong
c84e7b46a6
adds d128, Uuid variants to OwnedValue + assorted improvements
7 years ago
Jonathan Strong
31959480be
remove shuteye dep
7 years ago
Jonathan Strong
e07a0f3e48
converts to pubsub and some cleaning up
7 years ago
Jonathan Strong
10657da9ba
disabled chashmap dependency if I want it later
7 years ago
Jonathan Strong
b74ab109b1
nanosleep for no-thrash
7 years ago
Jonathan Strong
caa4c6215c
for some reason logging is the hardest shit in the world
7 years ago
Jonathan Strong
1b5050d127
changes severity to info for file loggers
8 years ago
Jonathan Strong
b3d364caeb
bunch of changes to allow mm/tali simultaneously
8 years ago
Jonathan Strong
b27ad08c10
file loggers for latency / warnings to inspect wtf is going on there
8 years ago
Jonathan Strong
ab4788bf71
changes influx host, adds ticker, side to KrknTrade meas
8 years ago
Jonathan Strong
7688ab20b4
adapts Warning to slog crate
8 years ago
Jonathan Strong
794f93cfe8
comments out empty tests
8 years ago
Jonathan Strong
4ce59763df
initial commit
8 years ago