Commit Graph

289 Commits

Author SHA1 Message Date
Philipp Mieden
3b4a55f18e added flags to testclient, added optional getrepo call 2019-05-24 17:40:26 +02:00
Philipp Mieden
a5ff003d8f added flags to testclient, added optional getrepo call 2019-05-24 17:40:26 +02:00
Philipp Mieden
871c844f7b refactored GetRepo: serve JSON from fs and write directly into http.ResponseWriter 2019-05-24 16:41:57 +02:00
Philipp Mieden
8224e92d4d Merge branch 'feature/memdebug' of github.com:foomo/contentserver into feature/memdebug 2019-05-24 16:23:28 +02:00
Philipp Mieden
1b7aa6475e skip nodeRequests with empty name or id 2019-05-24 16:23:20 +02:00
Frederik Löffert
aa0f6695d7
disabled debug mode on default 2019-05-24 15:14:44 +02:00
Frederik Löffert
4e6eecc673
loglevel removed from Dockerfile 2019-05-24 15:02:15 +02:00
Philipp Mieden
69dec41605 refactored repo to reuse a bytes.Buffer for updates, to reduce the number of allocations 2019-05-24 13:00:28 +02:00
Philipp Mieden
5cff674940 working on prometheus dashboard 2019-05-23 17:51:20 +02:00
Philipp Mieden
33364e3af8 added metric constructors 2019-05-23 16:33:01 +02:00
Philipp Mieden
647853292b added new metrics 2019-05-23 16:23:24 +02:00
Philipp Mieden
79d828bb23 implemented stefans feedback on prometheus metrics 2019-05-23 15:29:07 +02:00
Philipp Mieden
7c29ec73e4 updated Dockerfile to log json in production 2019-05-23 14:23:42 +02:00
Philipp Mieden
71403194e2 removed log level flag 2019-05-23 14:23:26 +02:00
Philipp Mieden
e9245a200c replaced logger, fixed update queue mechanism 2019-05-23 14:20:38 +02:00
Philipp Mieden
d9f6cc60c4 cleanup 2019-05-23 10:39:44 +02:00
Philipp Mieden
e874cc2b16 implemented queuing update requests and canceling new ones when the queue is full 2019-05-23 10:35:30 +02:00
Philipp Mieden
2decb53ec1 added main datastructures to graffle 2019-05-23 09:17:09 +02:00
Philipp Mieden
2faa088178 added more profiling targets to Makefile 2019-05-23 09:16:47 +02:00
Philipp Mieden
e2a51bb5a5 updated testclient logging 2019-05-23 09:16:04 +02:00
Frederik Löffert
0056f53b97 Merge branch 'feature/memdebug' of github.com:foomo/contentserver into feature/memdebug 2019-05-22 18:11:34 +02:00
Philipp Mieden
28292faea9 commented out unused RepoNode constructor, updated pprof 2019-05-22 09:52:58 +02:00
Philipp Mieden
a4097c05f4 added targets for testing 2019-05-21 17:30:39 +02:00
Philipp Mieden
97633dc9d9 debug mode: only print number of json bytes and dont dump the entire beast to stdout 2019-05-21 17:30:20 +02:00
Philipp Mieden
eca5e3b4f0 fixed loops for mem profiling 2019-05-21 17:29:16 +02:00
Frederik Löffert
f7aea048d3 lock update requests 2019-05-21 16:06:49 +02:00
Philipp Mieden
1449d6902c server cleanup 2019-05-21 15:01:13 +02:00
Philipp Mieden
18897d2e32 updated deps 2019-05-21 12:36:06 +02:00
Philipp Mieden
0827eb9b4a added makefile section comments 2019-05-21 12:35:56 +02:00
Philipp Mieden
63640b24b2 updated makefile targets for profiling 2019-05-21 12:11:54 +02:00
Philipp Mieden
3985784579 added pprof debug server 2019-05-21 12:11:39 +02:00
Philipp Mieden
55fd63b82d added memory profiling flag for dumping heap periodically 2019-05-21 12:11:16 +02:00
Philipp Mieden
295cdf66fc flag naming convention 2019-05-21 11:45:47 +02:00
Philipp Mieden
03d5b36706 repo history code cleanup 2019-05-21 11:43:28 +02:00
Philipp Mieden
65b6b2341a added free-os-mem flag to contentserver 2019-05-21 11:43:06 +02:00
Philipp Mieden
0735b5ad18 code cleanup, grouping declarations 2019-05-21 11:17:03 +02:00
Philipp Mieden
f20402ef5f git ignore profiling files 2019-05-21 11:10:33 +02:00
Philipp Mieden
dc047baf32 repo code cleanup 2019-05-21 11:10:05 +02:00
Philipp Mieden
f0df9a6322 added profile-test target to makefile 2019-05-21 11:09:51 +02:00
Philipp Mieden
5e44495adc replaced encoding/json with jsoniter high performance pkg 2019-05-21 10:59:54 +02:00
Philipp Mieden
e64b07f6c6 fixed repo test assertion messages, added benchmark for loading test repo 2019-05-21 10:51:21 +02:00
Philipp Mieden
b713a41cf6 updated gitignore to ignore local var dir 2019-05-21 10:50:47 +02:00
Philipp Mieden
5ee042bcd4 handle unchecked errors 2019-05-21 10:12:05 +02:00
Philipp Mieden
54ee995295 commented out unused symbols 2019-05-21 10:07:13 +02:00
Philipp Mieden
82733d4b25 fix: call of Unmarshal passed a non-pointer as second argument 2019-05-21 10:06:21 +02:00
Philipp Mieden
dd902fe717 removed redundant return statement 2019-05-21 10:05:24 +02:00
Philipp Mieden
d2e0af8aca using fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) 2019-05-21 10:05:01 +02:00
Philipp Mieden
a267dbe1ec history_test cleanup and formatting 2019-05-21 10:04:09 +02:00
Philipp Mieden
bdb694b0ff simplified byte equality comparison 2019-05-21 10:03:31 +02:00
Philipp Mieden
9d94c09735 grouped variable declarations 2019-05-21 09:56:38 +02:00