1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-15 17:51:15 +00:00
Commit graph

158 commits

Author SHA1 Message Date
postmannen
de7a6c0dda removed message from error messages 2021-09-23 08:19:53 +02:00
postmannen
e33fba19e1 removed debug print statements 2021-09-23 05:46:25 +02:00
postmannen
21f532c128 replaced goto in routeMessageToProcess 2021-09-21 23:29:42 +02:00
postmannen
b29724f8a3 using main context on ringbuffer 2021-09-15 10:46:30 +02:00
postmannen
1434e5a85c initial stop function for ringbuffer 2021-09-15 09:17:35 +02:00
postmannen
64207adc62 working on context for ringbuffer 2021-09-15 08:39:34 +02:00
postmannen
cb867ba7a2 moved bucket names into ringbuffer struct 2021-09-14 16:23:01 +02:00
postmannen
aba7324ba6 fixed bug with hang caused by the of mutex 2021-09-13 13:15:21 +02:00
postmannen
254e522092 debug print statements 2021-09-13 09:24:38 +02:00
postmannen
0b61e510b4 added debug output 2021-09-13 07:02:14 +02:00
postmannen
5a1f20142c added prometheus exporter for build version 2021-09-10 10:21:33 +02:00
postmannen
69f6287ee8 added version and ldflags example to set it 2021-09-10 10:04:25 +02:00
postmannen
7229f33cac initial http reader for messages 2021-09-10 05:26:16 +02:00
postmannen
8ad6d819e5 removed not need argument from readTcpListener 2021-09-09 13:32:04 +02:00
postmannen
d0f1ed32d1 removed the values field from flagslice 2021-09-08 17:57:21 +02:00
postmannen
0f93e9a439 added error message timeouts and retries 2021-09-07 09:43:54 +02:00
postmannen
804e714eaf added flag for natsConnectRetryInterval 2021-09-01 13:39:54 +02:00
postmannen
b0dc2db3f9 always nats retry connect when starting 2021-09-01 13:25:02 +02:00
postmannen
ebbca59eb7 changed time format 2021-08-27 12:27:38 +02:00
postmannen
18272d73ab metrics on error messages 2021-08-26 12:26:08 +02:00
postmannen
c93fe189c6 removed no longer needed comments 2021-08-26 07:02:36 +02:00
postmannen
2a182e78a2 renamed variables 2021-08-25 10:16:55 +02:00
postmannen
ac932ac2c9 renaming variables 2021-08-25 08:50:24 +02:00
postmannen
914135fdd1 renamed toRingbuffer channel to newMessagesCh 2021-08-25 08:31:48 +02:00
postmannen
a042b51672 renamed channel 2021-08-25 06:38:23 +02:00
postmannen
bf75a44fbf renamed message fileextension to message filename 2021-08-24 14:05:44 +02:00
postmannen
8b32d9aefa implemented handler for file server 2021-08-23 17:05:56 +02:00
postmannen
b77f04bd5d implemented tcp listener for new messages 2021-08-23 16:00:48 +02:00
postmannen
10d28f6ec1 expose datafolder via http 2021-08-23 12:47:33 +02:00
postmannen
c9e095ff5b more metrics 2021-08-18 15:41:53 +02:00
postmannen
b50cab487c put in custom prometheus registry 2021-08-18 12:16:21 +02:00
postmannen
c27a3dc188 updated comments 2021-08-16 13:01:12 +02:00
postmannen
a0304e31e7 added stop method on processes 2021-08-11 12:23:37 +02:00
postmannen
06bdbc0fe2 moved startup-processes in to processes 2021-08-11 10:11:57 +02:00
postmannen
0af326bba5 more tests 2021-08-10 07:41:30 +02:00
postmannen
e28eb3770d initial test package created 2021-08-09 14:41:31 +02:00
postmannen
898f299e71 created stop function for server 2021-08-09 09:18:30 +02:00
postmannen
9039e82fb7 comments 2021-08-09 05:50:08 +02:00
postmannen
09f28a79a7 restructured the start of metrics 2021-08-04 10:37:24 +02:00
postmannen
95e2984c86 Added stop function for errorKernel 2021-08-04 08:35:35 +02:00
postmannen
90d43bda7c removed old comments 2021-08-03 15:05:34 +02:00
postmannen
e5f995cf62 rewrote starting of startMetrics 2021-08-03 13:57:29 +02:00
postmannen
d2846007bd Added child contexts for errorkernel and startup subscribers 2021-08-03 13:43:05 +02:00
postmannen
7002ca4364 Activating timed exit 2021-08-03 12:30:18 +02:00
postmannen
1523ae84c3 replaced struct{} with callback func for testing 2021-07-05 07:43:33 +02:00
postmannen
dd6d52f427 added delivered verification between buffer and buffer reader 2021-07-02 19:09:42 +02:00
postmannen
7791899e3d Removed some errors via messages 2021-07-02 18:32:01 +02:00
postmannen
f4c501d3c5 disabled main ctx cancelation 2021-07-02 13:26:30 +02:00
postmannen
684b3f896f Added main ctx, and child ctx derived from main to procs 2021-07-02 11:26:52 +02:00
postmannen
4929191269 added initital code for stew socket 2021-07-02 08:38:44 +02:00
postmannen
923fd4c611 exported type node to Node 2021-06-29 08:21:42 +02:00
postmannen
63c043e0ff Unique process naming with id's used in active map to be able to control all individual processes 2021-06-08 13:56:31 +02:00
postmannen
495442079a Added retry if no nats server available at startup 2021-05-25 10:23:27 +02:00
postmannen
d9cd986426 set nats maxreconnects to unlimited 2021-05-21 13:33:03 +02:00
postmannen
91ac5da4d6 added nkey seed 2021-05-20 12:27:25 +02:00
postmannen
0b44f1d339 changed config directories handling 2021-05-12 09:50:03 +02:00
postmannen
02ccc9f208 added TLS option 2021-04-19 21:06:37 +02:00
postmannen
64a22c84e9 removed printf's, or made them into log's 2021-04-16 13:43:58 +02:00
postmannen
fde053a0cb error handling on newserver 2021-04-16 13:18:10 +02:00
postmannen
64af20adf7 working on map value instead of directly on the map 2021-04-13 07:58:26 +02:00
postmannen
30564f09ae removed not used function 2021-04-13 07:45:14 +02:00
postmannen
f32dafc806 Added metric for running processes by name 2021-04-12 15:35:20 +02:00
postmannen
1acddfa8b4 rewrote prometheus metrics handling 2021-04-12 10:51:26 +02:00
postmannen
f1359e45d9 moved startup pub/sub into process structure 2021-04-09 11:30:40 +02:00
postmannen
c091ebfa38 moved all starting of pub/sub procs under process 2021-04-08 13:43:47 +02:00
postmannen
d909784094 Start proc via message, moved nats.conn into process 2021-04-07 16:45:51 +02:00
postmannen
23b6b58439 renamed label field in message to directory 2021-04-07 06:33:29 +02:00
postmannen
2c2f53f6f4 errorLog handler writing to file structure 2021-04-06 09:06:26 +02:00
postmannen
27fc56256b Renamed ErrorLog to REQErrorLog 2021-04-06 07:56:49 +02:00
postmannen
32c70dbc59 fixed type error when creating error message subject 2021-04-04 10:39:59 +02:00
postmannen
f75aa73703 newSubject now uses the methods available map to figure out what kind of CommandOrEvent type it is 2021-04-03 07:33:03 +02:00
postmannen
833ce66c00 method opcommand, embedded processes to process 2021-03-31 08:56:13 +02:00
postmannen
26b606d3cf moved socket listener to server 2021-03-30 10:37:16 +02:00
postmannen
ed00f247ae unix socket for new mesages, changed naming of channels 2021-03-29 13:36:30 +02:00
postmannen
f792675ebe cleaned up err console logging 2021-03-26 05:13:51 +01:00
postmannen
f0b39b1861 renamed start of sub errorLog 2021-03-25 12:50:58 +01:00
postmannen
899d2e1f09 renamed inmsg to steward.sock 2021-03-25 12:33:53 +01:00
postmannen
04f7ca013b flagNodeSlice flags gets updated in config file. Made RST flag value to reset config values 2021-03-25 11:28:26 +01:00
postmannen
09e7090f83 specify allowed nodes via flag for errorLogger 2021-03-24 10:14:17 +01:00
postmannen
593842e070 Implemented the concept of a flagStringSlice 2021-03-24 07:05:41 +01:00
postmannen
19246db3c8 removed comments 2021-03-12 12:12:08 +01:00
postmannen
b836adc110 checking for malformed or non existent method in input 2021-03-12 12:08:11 +01:00
postmannen
78a2b2bc56 fixed error in centralNodeName implementation 2021-03-12 11:13:42 +01:00
postmannen
18f6f2a6f1 centralNodeName flag 2021-03-12 10:41:03 +01:00
postmannen
ca295d97d8 sending errors to central 2021-03-12 09:38:19 +01:00
postmannen
f6771f1975 sam creation function 2021-03-10 07:11:14 +01:00
postmannen
077bbf37da Publishers as pure processes seems to initially work 2021-03-09 11:58:50 +01:00
postmannen
f2a07010d9 removed process dependency to server 2021-03-09 07:43:55 +01:00
postmannen
2a19ae451b added config and newMessagesCh to proc from server 2021-03-09 04:55:51 +01:00
postmannen
abf8c0d3c7 added procFunc concept, fixed race and timer issues 2021-03-04 16:27:55 +01:00
postmannen
9c9498341c removed *server dependency for newProcess() 2021-03-04 06:53:03 +01:00
postmannen
d38b9b03dc processes type, and moved check out of server closer to where they are needed 2021-03-03 15:44:32 +01:00
postmannen
d1b11c6bad fixed data race 2021-03-03 14:56:47 +01:00
postmannen
fb0121db7d refactoring into the process type 2021-03-03 14:14:32 +01:00
postmannen
65f2776519 updated comments 2021-03-03 12:45:46 +01:00
postmannen
4f106ea8cc rewrote the textlogger subscriber, fixed * in allowed publishers, cleaned up logging 2021-03-02 13:46:02 +01:00
postmannen
9553aec6bd put in default config if file do not exist 2021-03-02 06:51:08 +01:00
postmannen
069bf5a639 Creating config file, and storing flag values 2021-03-01 20:49:43 +01:00
postmannen
35e0c12109 removed the need for specifying the kind of event/command within a message. This is now picked from the generated subject 2021-03-01 17:08:40 +01:00
postmannen
52a92af20e renamed the ShellCommand type to CLICommand 2021-03-01 12:16:36 +01:00