Commit graph

54 commits

Author SHA1 Message Date
Thulinma
6babfe64c6 Fixed bandwidth sometimes being wrongly measured. 2016-06-09 18:43:16 +02:00
Thulinma
ed982b9eb3 Added/tweaked debug messages for stats 2016-06-09 18:42:32 +02:00
Thulinma
1d950f31ba Fix controller deadlock. 2016-05-28 13:45:19 +02:00
Thulinma
f010dcd0f7 Fix controller segfault on using fillActive function during stats update. 2016-05-27 21:08:39 +02:00
Thulinma
52d0c66166 Prevent re-initialized connections from counting bytes too eagerly. 2016-05-26 18:24:25 +02:00
Thulinma
8b87337314 Added debug message for connections switching away from an existing active session. 2016-05-26 18:16:50 +02:00
Thulinma
3c4bc6a006 Disable shared memory stats for Windows builds. 2016-05-25 12:24:56 +02:00
Thulinma
6caa02c63f Prevent sessions from becoming unset. 2016-05-24 11:12:54 +02:00
Thulinma
5fbf4dd23b SHM statistics in prometheus output 2016-05-23 14:32:01 +02:00
Thulinma
5759dbef0f Added "invalidate_sessions" API call, made USER_NEW trigger even more atomic. 2016-05-20 13:06:37 +02:00
Thulinma
303cc5684a Fixed streams not deactivating with history still available. 2016-05-20 13:06:37 +02:00
Thulinma
9b2494f5d6 Fixed a race condition in push handling. 2016-05-19 17:42:21 +02:00
Erik Zandvliet
5c4e0d8c54 More reasonable size for metadata 2016-05-19 17:32:47 +02:00
Thulinma
abbc2e7e1f Tweaked sync debug message level to medium. 2016-05-19 16:18:31 +02:00
Thulinma
a1bbcefcf1 More sync debug 2016-05-19 14:08:40 +02:00
Thulinma
1676159298 More debugging. 2016-05-19 12:51:51 +02:00
Thulinma
fae86d6648 Fix strange ten minute stats pattern. 2016-05-19 08:04:23 +02:00
Thulinma
146685aca6 Clear prometheus output of inactive streams, make stats_streams and active_streams calls just as accurate as prometheus viewer counts. 2016-05-19 01:14:07 +02:00
Thulinma
e14274c89d Made controller wait instead of sleep, to prevent timing out processes too soon. 2016-05-18 01:00:52 +02:00
Thulinma
f641989991 Added maxconnsperip setting to controller. Only enforced if USER_NEW trigger is in use. 2016-05-16 16:48:21 +02:00
Thulinma
dfc41cc596 Prometheus stats split over viewers, incoming and outgoing.
Load balancer updated to use new split stats and provide info per host and/or stream if requested over its port.
2016-05-15 00:20:53 +02:00
Erik Zandvliet
a5a9facc22 DTSC Pull optimizes and quick-negotiate. 2016-05-13 17:27:25 +02:00
Thulinma
263dee7b25 Added push-related API calls to controller, made outputs able to wait for playable streams. 2016-05-11 13:55:23 +02:00
Thulinma
fa41e02047 Removed 5s timeout from streamAlive call. 2016-05-05 16:05:12 +02:00
Thulinma
561a0eca57 Controller fixes. 2016-05-04 18:07:20 +02:00
Thulinma
9e8b07cbfc Added STATS_DELAY compile flag for overriding the statistics delay for better or worse accuracy than the default. 2016-04-27 12:49:25 +02:00
Thulinma
36d8986f4b Added CPU and memory stats to instrumentation outputs. 2016-04-26 16:18:43 +02:00
Thulinma
b6d879369f Added JSON instrumentation output. 2016-04-22 16:17:28 +02:00
Thulinma
dd46788d37 Support for text-based prometheus-compatible instrumentation. 2016-04-22 16:17:28 +02:00
Thulinma
0a8b8e40d8 Merge branch 'development' into LTS_development 2016-04-15 13:47:42 +02:00
Thulinma
9239586a89 Added cpu_use response to capabilities API call 2016-04-15 13:47:35 +02:00
Thulinma
a3a40dbf17 Fix stats not disappearing 2016-04-14 16:32:17 +02:00
Thulinma
c548077282 Made fillActive calls (stats_streams and current_streams) only count users that have retrieved at least 128KiB of data, in order to filter out index and meta requests. 2016-04-14 12:39:20 +02:00
Thulinma
230772f125 fillActive now 15 seconds delayed as opposed to 2 seconds delayed, for more accurate viewer counts. 2016-04-13 15:20:23 +02:00
Thulinma
2029b35361 Tweaked fillActive to have both now and historic modes
Made streams no longer show as active for ~10m after being active.
2016-02-29 13:25:19 +01:00
Thulinma
99b5b8361d Merge branch 'development' into LTS_development 2016-02-29 13:20:52 +01:00
Thulinma
77a6315dfb Wipe sessions when they expire. 2016-02-29 13:16:58 +01:00
Thulinma
f6e2e95b5a Added USER_NEW trigger. 2016-02-19 11:33:40 +01:00
Thulinma
22467d603e Added support for clients and lastms requests in active_streams API call 2015-11-27 10:44:21 +01:00
Thulinma
74c8932106 Merge branch 'development' into json_mod_LTS
# Conflicts:
#	lib/shared_memory.cpp
#	src/controller/controller.cpp
#	src/io.cpp
#	src/output/output.cpp
#	src/output/output_http_internal.cpp
2015-10-07 11:05:49 +02:00
Thulinma
16d38459b6 Made JSON library non-recursive.
Co-authored with Diederick.
2015-10-06 13:21:14 +02:00
Thulinma
c9a30c2816 Improved on/off display for streams. 2015-09-29 11:03:26 +02:00
Thulinma
4bdbd82f66 LTS Commits 2015-04-05 21:38:36 +02:00
Erik Zandvliet
d370ef4eac Working multi-input 2015-04-02 09:56:47 +02:00
Thulinma
a001feafca Fixed various live issues. 2014-12-30 02:08:14 +01:00
Thulinma
55046206fe Fixed various statistics bugs. 2014-12-05 21:31:45 +01:00
Thulinma
63c4e5d1e6 New statistics code with sessions. 2014-11-28 16:30:35 +01:00
Thulinma
b325ca96ee Added checksum to stats of HTTP based outputs for later merging of connections. 2014-10-23 15:12:33 +02:00
Thulinma
c26661b690 Fixed hostname in statistics to properly be in packed binary format, internally. 2014-10-22 16:51:51 +02:00
Thulinma
c927170ea2 Fixes to current client stats when timeouts were occurring. 2014-09-10 18:30:30 +02:00