1
0
Fork 0
Commit Graph

43 Commits

Author SHA1 Message Date
Kaveh Vahedipour 211812c6f5 Metrics tests (#10578)
* adding tests

* consolidate

* tests working again

* KAVEH!

* more tests

* jsteemann rev pt 1

* minor rewrite

* remove static pointer in metrics feature

* feature api && tests

* fixed tests

* reflective dep

* invalidated iterators on obi watch

* fix test

* back in

* fix counter fetch

* obi1

* added _admin/metrics documentation

* try_emplace and docu touch up
2019-12-02 16:55:29 +01:00
Kaveh Vahedipour b94f40d890 feature/metrics (#10423)
- New internal counters and histograms.
- Prometheus compatible endpoint to expose new metrics, old statistics and RocksDB metrics.
2019-11-22 08:02:48 +01:00
Jan 1476ddbd0d
Bug fix/fix cluster upgrade (#10411) 2019-11-15 10:42:04 +01:00
Jan 5ef3a215ce
added missing option `--server.statistics-history`, which was present in (#10438) 2019-11-14 16:10:44 +01:00
Max Neunhöffer 04cf6b2c41
Repair traffic accounting in statistics. (#10387)
* First stab at porting superuser traffic accounting to devel.
* Remove token forwarding again.
* Fix descriptions of metrics.
* Repair statistics.
* Fix a crash.
* Fix forwarding and permissions.
2019-11-08 15:45:29 +01:00
Simon Grätzer ad7be71095
fix the shit 2019-11-01 15:22:22 +01:00
Simon Grätzer 7ced6b2064
fix wakeup 2019-10-17 19:34:10 +02:00
Jan 2e293b85ca
Bug fix/cppcheck issues (#10105) 2019-09-30 09:27:33 +02:00
Dan Larkin-York a83c2323c9 Refactor ApplicationServer stack (#9965) 2019-09-25 17:31:59 +02:00
Jan Christoph Uhde 292be42910 count intermediate commits (#9753) 2019-08-26 11:07:57 +02:00
Dan Larkin-York 3d0246cb18 Decentralize includes (#9623) 2019-08-06 15:32:09 +02:00
Wilfried Goesgens ca0f2b8b86 All hail to the SI (#9445) 2019-07-19 13:52:12 +02:00
Jan 25bc8c5343 remove bogus warnings about statistics thread (#9446) 2019-07-10 14:12:11 +03:00
Wilfried Goesgens 0afe3ddb5a Trap whether the statistics-Thread is asleep for too long. (#9364) 2019-07-01 11:32:31 +02:00
Simon 394c070a4f Do not check isEnabled (#8997) 2019-05-17 16:33:17 +02:00
Jan Christoph Uhde c3f7961b88 apply unique log ids (#8561) 2019-03-25 20:26:51 +01:00
Frank Celler ac9f375fb5 big reformat 2018-12-26 00:54:03 +01:00
Jan 5bae3742e5
Feature/internal 3306 (#7683) 2018-12-06 16:19:28 +01:00
Wilfried Goesgens f923a6a36e stop statistics in stop instead of unprepare (#7631) 2018-12-04 19:54:46 +01:00
Dan Larkin-York 0dfabd8f04 Fix several TSan warnings (#6473) 2018-09-14 11:16:45 +02:00
Vasiliy e862efdc3b issue 458.4: retrieve the system database via the SystemDatabaseFeature (#6299) 2018-08-31 19:45:10 +02:00
Vasiliy 6fd541d110 issue 427.5: use ApplicationServer reference instead of pointer (#6145)
* issue 427.5: use ApplicationServer reference instead of pointer

* address MSVC build failure
2018-08-15 12:16:02 +03:00
Michael Hackstein 7a95c5e675
Feature/feature phases (#5272)
* Added feature phases

* BasicsPhase and DatabasePhase to the required files. Server now has Feature circles and does not boot. Will be sorted out later on.

* Added ClusterPhase to features

* Added V8Phase to the required features

* Added AQLPhase to the affected features

* Added ServerPhase to Features

* Added FoxxPhase to the relevant features

* Added AgencyPhase to the relevant features

* Moved registration from local variable SYS_SYSTEM_REPLICATION_FACTOR from cluster to V8 as their ordering is now vice versa

* Moved Bootstrap feature into FoxxPhase. It could be moved to ServerPhase easily if the FoxxQueue dependency would be removed

* Final movement of Startup Phases. Now solved all circles.

* Removed merge conflict

* Moved ReplicationTimeout into cluster phase and fixed cross-phase requirements

* Added greetings phase. This phase separates the Basics Phase and is the first to be run. Includes Logger and Hello/Goodbye

* Added the GreetingsPhase in the corresponding features. Now all BasicsPhase features start after greetings Phase. There is some issue in this branch which prevents the Agency from Gossipping right now. Will be fixed next

* Moved creation of the Agent into the prepare phase of the feature. THereby it is guaranteed that agents at least exists before the GeneralServer is activating endpoints

* Recovery needs to be started after the ServerID

* Moved log output of FeaturePhases to DEBUG instead of ERROR.

* Added feature phases for clients

* ClusterFeature now does not directly require AgencyFeature any more

* Added requirement of TravEngineRegistryFeature in AQL feature. Otherwise shutdown may be undefined

* The ApplicationServer can now handout the list of ordered features. Used for testing purposes

* Fixed IResearchVew Tests Setup to honor new feature ordering

* Fixed IResearchViewDBServer Tests Setup to honor new feature ordering

* Started fixing IResearchView Coordinator tests with startup ordering. Not finished yet

* Added startup phases to ViewCoordinator test

* Disabled expected logoutput in ClusterRepairsTest

* Fixed indention in test code

* LinkCoordinator now honors startup ordering

* Link meta now honors startup rdering

* Supress expected cluster logs in ViewTest

* Removed '#' accidentially added.
2018-07-16 14:09:36 +02:00
Jan 201a6a308b
allow turning off statistics feature (#5883) 2018-07-16 10:46:43 +02:00
Vasiliy 907767f4e1 issue 389.6: ensure proper error handling in StatisticsFeature for missing feature (#5377) 2018-05-18 01:12:39 +03:00
jsteemann 1c1e0615be fix compilation 2018-05-15 09:24:23 +02:00
Vasiliy 8d8327f751 issue 389.3: hold a TRI_vocbase_t& to the desired valid vocbase instance instead of querying the system database on every call (#5346) 2018-05-15 01:18:20 +03:00
Simon 11a7bbf321 Replacing statistics handler with c++ (#4653) 2018-02-26 15:33:43 +01:00
Jan 635f11884a
Bug fix/tidy up statistics (#3970)
* fix MSVC compile warning

* tidy up statistics

* remove undocumented db.__save V8 method, previously used for the statistics gathering from JavaScript
2017-12-08 16:00:23 +01:00
Jan Christoph Uhde e6cda07a2a fix windows build (#3958) 2017-12-07 12:06:06 +01:00
Jan 282be208cc
remove TRI_usleep and TRI_sleep, and use std::this_thread::sleep_for … (#3817) 2017-12-06 18:43:49 +01:00
Manuel B 857c64c0d9 Move Statistics into c++ (#3184) 2017-12-06 16:36:52 +01:00
jsteemann a87b8c4f25 generalize usleep argument 2017-03-16 16:27:40 +01:00
jsteemann d024a6d00a remove logging for non-topics 2017-02-10 09:32:50 +01:00
Max Neunhoeffer d137504b03 Move initialization to prepare in StatisticsFeature. 2017-02-09 11:52:19 +01:00
jsteemann e2a312450f fix out-of-memory handling at startup 2017-02-01 13:00:05 +01:00
Frank Celler e0c00c6de6 improved statistics 2017-01-26 23:43:27 +01:00
jsteemann f116ae4cc3 fixed leak 2016-08-31 11:12:24 +02:00
jsteemann bdd9d1422e bugfixes 2016-08-30 13:45:54 +02:00
Frank Celler 69e254d28a trying to fix cleanup 2016-06-06 23:53:53 +02:00
jsteemann fd1e7f0944 friendlier error message when using a renamed option 2016-05-25 21:45:53 +02:00
jsteemann dcc5825f93 cleaned up features a bit 2016-04-24 14:29:29 +02:00
Frank Celler 0fa6435731 WIP 2016-04-13 21:12:16 +02:00