Commit Graph

61 Commits

Author SHA1 Message Date
Jan Halfar
2fa98dad5e
feat: polling support (#27) 2022-05-26 15:28:22 +02:00
Stefan Martinov
0e44ca809d
Deterministic Log Messaging & Refactoring (#26)
* feat: remove apex log from dependency list & upgrade deps

* chore: remove commented out code

* chore: remove high cardinality metric labels

* chore: add stack trace to failed repo requests

* chore: remove logging and return error instead

* chore: change log messages for contentserver

* chore: add constistent messages to content update routine

* feat: add runtime id, and multierr validator

* chore: rename history

* chore: golint fixes

* chore: simplify (golinter)

* chore: update go version

* chore: remove unused dependencies for new go

* chore: move content update to else statement

* chore: remove go-spew

* chore: bump go version to 1.18

* chore: remove alpine dep for updated deps

* chore: update go version and improve build

* chore: minor reformatting
2022-05-26 15:09:11 +02:00
Stefan Martinov
ac85c31b77
Configurable Repository Timeout (#25)
* feat: implement correct prometheus metrics

* feat: remove nodeID from metrics due to high cardinality

* feat: add configurable timeouts to contentserver
2021-09-22 11:52:53 +02:00
franklin
5788fd203d feat: add PathDataFields option on GetContent 2021-06-30 15:53:16 +02:00
Stefan Martinov
ffa04ace36 feat: add better metrics for errors 2020-11-23 11:33:36 +01:00
Stefan Martinov
24c65ba8df chore: return logging of error requested 2020-11-23 09:29:47 +01:00
Stefan Martinov
ddb4adf571 feat: add update request queue test 2020-11-22 18:53:16 +01:00
Cristian Vidmar
2b9d7ea9e7 ExposeHiddenNodes in request 2020-03-16 18:02:25 +01:00
Stefan Martinov
934b1dc9c4 fix: add update log queue rejection 2019-10-25 16:37:05 +02:00
Stefan Martinov
620291db4a feat: remove errors in update queue and add recovery mechanism 2019-09-25 17:27:00 +02:00
Stefan Martinov
f7f3b8096e chore: join if clause 2019-09-06 17:15:04 +02:00
Stefan Martinov
3f02444b97 fix: remove offending log nil pointers 2019-09-06 17:13:46 +02:00
Philipp Mieden
6bf4e20444 increased delays for travis CI tests 2019-06-04 12:21:42 +02:00
Philipp Mieden
25afa0523d added delays to tests for travis 2019-06-04 08:55:07 +02:00
Philipp Mieden
e6e95db586 fixed log rotation and updated tests accordingly 2019-05-29 15:23:42 +02:00
Philipp Mieden
6381c7c0c2 added metric for failed attempts to persist the content history 2019-05-29 14:14:15 +02:00
Philipp Mieden
581e68599c added flag to set the maximum number of history versions, set default to 1 2019-05-29 13:59:18 +02:00
Philipp Mieden
8d85fc5f81 GetRepo cleanup and testing, fixed unit tests 2019-05-27 12:11:16 +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
1b7aa6475e skip nodeRequests with empty name or id 2019-05-24 16:23:20 +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
647853292b added new metrics 2019-05-23 16:23:24 +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
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
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
Frederik Löffert
f7aea048d3 lock update requests 2019-05-21 16:06:49 +02:00
Philipp Mieden
03d5b36706 repo history code cleanup 2019-05-21 11:43:28 +02:00
Philipp Mieden
dc047baf32 repo code cleanup 2019-05-21 11:10:05 +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
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
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
Philipp Mieden
7f9b32162e used a simple channel send/receive instead of with a single case 2019-05-21 09:55:55 +02:00
Philipp Mieden
284ee99690 omitted comparison to bool constant 2019-05-21 09:55:36 +02:00
Jan Halfar
8f7c23ff4a added DataFields to content request 2018-11-28 11:56:11 +01:00
Jan Halfar
37147120e2 safer access to repo.Directory in _updateDimension 2018-11-27 12:56:38 +01:00
Jan Halfar
bbded7c9db better error with empty dimension, in validateContentRequest 2018-11-27 12:52:16 +01:00
Stefan Martinov
f40af92357 Remove dependency on testify/assert 2017-11-01 13:38:36 +01:00
Stefan Martinov
f00b1f1eb3 Remove dependency on pkg/errors 2017-11-01 13:23:56 +01:00
Stefan Martinov
663e50fdf6 Refactor cleanup deletion files method 2017-11-01 13:11:45 +01:00
Stefan Martinov
91032a037d Reverse order of getHistory for a correct cleanup 2017-11-01 12:00:25 +01:00
Frederik Löffert
90d40aafc5 content access group support fixed 2017-05-10 16:27:02 +02:00
Jan Halfar
db94db5082 added maxGetURIForNodeRecursionLevel 2017-03-22 10:16:01 +01:00