Commit Graph

76 Commits

Author SHA1 Message Date
ionutboangiu
712aeb0d4a Revise StateDeps implementation
Now tracks states by passing around an empty struct as a signal to
states defined on the service, as opposed to signal state changes by
closing the channel. This makes sure services can only be in one
state at once and allows for multiple state changes which were not
possible before.
2025-02-07 13:23:59 +01:00
ionutboangiu
652d1e68cf Remove cls fields from service structs
now retrieved through registry.Lookup
2025-01-24 12:02:24 +01:00
ionutboangiu
3d693aefe5 Remove srvDep map
Now syncing on shutdown based on states
2025-01-16 15:51:52 +01:00
ionutboangiu
e7152dacf8 Implement ConnManager service
Use it to register internal rpc conns instead of ServManager
DispatcherS now waits for AttributeS to start (only when enabled)
2025-01-14 19:00:37 +01:00
ionutboangiu
089dfc00ae Use SyncedChan to handle shutdown 2025-01-14 19:00:37 +01:00
ionutboangiu
c49e67b2ed Handle SERVICE_UP/DOWN states on ServManager layer 2025-01-14 19:00:37 +01:00
ionutboangiu
dab152f976 Integrate StateServiceDOWN + registry related refactor
Removed redundant IsRunning service method
Removed registry from constructors
Pass registry to Start/Reload/Shutdown service methods
2025-01-14 19:00:37 +01:00
ionutboangiu
396227d639 Refactor ServiceIndexer implementation
Renamed to ServiceRegistry
Improved comments
2025-01-10 20:18:08 +01:00
ionutboangiu
c8a3ebe5e8 Use channel instead of context to handle shutdown 2025-01-10 20:18:08 +01:00
ionutboangiu
10dfcc5e48 Remove dmS parameter from service constructors
Use ServiceIndexer instead
2024-12-12 11:55:14 +01:00
ionutboangiu
cfdb3e80ca Integrate state deps across services for SERVICE_UP 2024-12-04 19:28:50 +01:00
DanB
476f5ba877 Services with IntRPCConn method 2024-11-30 19:13:19 +01:00
DanB
6b241ee35b Adding serviceIndexer and StateDependencies 2024-11-28 14:56:03 +01:00
ionutboangiu
792bbb3aff Add set_versions flag to cgr-engine
If set to true, it sets/overwrites all versions to the
current ones.
2024-11-01 15:59:39 +01:00
ionutboangiu
e0c05ecfa7 Add redis pipeline window and limit cfg opts
Set redisPoolPipelineWindow to control duration before pipeline
flush (0 disables implicit pipelining) and redisPoolPipelineLimit
for max commands per pipeline (0 means no limit, only time window
applies).
2024-10-29 18:54:51 +01:00
gezimbll
04d05c3a4f replacing non-meta constants for storage types 2023-03-08 19:13:48 +01:00
DanB
6287e1d34c DispatcherS - ability to disable routing from API opts 2022-09-08 17:29:50 +02:00
ionutboangiu
d9f567b0a3 Rename RedisMaxAttempts to RedisConnectionAttempts 2022-07-14 14:59:28 +02:00
ionutboangiu
81793af5de Make hardcoded options configurable for redis and solve compilation errors 2022-07-07 18:05:14 +02:00
ionutboangiu
523045cc12 Add timeout options for redis and solve compilation errors 2022-07-03 13:08:52 +02:00
andronache98
ecdf5e54ea Changed headers 2022-03-09 14:14:30 +01:00
andronache98
9ec56f5155 Changed headers 2022-03-09 14:14:30 +01:00
Trial97
cb809f976e Updated internal datadb 2021-10-28 18:03:43 +03:00
ionutboangiu
e340c43ccd Fix compilation errors (incomplete) 2021-10-08 18:24:16 +03:00
ionutboangiu
b3273359f2 Delete mandatoryDB func from dataDB service file 2021-10-04 13:37:36 +02:00
Trial97
7fa6ea769c Added support for in memory db for analyzers 2021-09-15 10:06:13 +02:00
Trial97
0ed0b0e7a6 Updated more services 2021-09-13 16:08:39 +02:00
Trial97
87ce843810 Updated services 2021-09-13 16:08:39 +02:00
andronache
e40ee259c0 Renamed opts for DataDB and StorDB 2021-05-07 10:51:16 +02:00
Trial97
53f9fded4c Added config_db section 2021-04-19 19:49:39 +02:00
Trial97
c04c0a5adb Added ConfigDB and option to read config from DB 2021-04-16 17:53:36 +02:00
Trial97
cfbe6e709d Added AdminSv1 service 2021-04-13 13:35:03 +02:00
Trial97
b028a99050 Removed rals config 2021-04-01 16:36:51 +02:00
Trial97
48205d689d Removed until build 2021-03-30 20:49:53 +02:00
Trial97
5f0150b639 Updated dataDB config structure 2021-03-09 17:37:59 +01:00
andronache
60b23adb83 Refactored all tests in services/datadb_test.g to not use servmanager, except the main one 2021-03-05 11:49:42 +01:00
root
dab5897a03 Tests in services 2021-02-16 16:26:44 +01:00
andronache
0f19ba309d Coverage tests in console 2021-02-01 21:06:23 +01:00
andronache
c4ec688f8d Integration tests in services 2021-01-14 10:31:11 +01:00
andronache
a3e77e837a Integration tests in services 2021-01-14 10:31:11 +01:00
andronache
e5f3961a53 Integration tests in services 2021-01-14 10:31:11 +01:00
andronache
dbb9216b6e Modified consts in utils 2021-01-07 18:15:35 +01:00
Trial97
222363f433 Added service dependency map to control the shutdown order. Fixes #2472 2020-12-08 12:59:44 +01:00
TeoV
21120eb9b6 Add "redis_" prefix to "dataDB" option for redis 2020-10-15 12:42:28 +02:00
Trial97
841264a97a Moved all specific DB options in opts 2020-08-28 14:35:42 +02:00
Trial97
66ca7bc6f9 Added support for *amqp_json_map event reader 2020-08-28 14:35:42 +02:00
Trial97
70b6506336 Updated service reload 2020-08-26 10:34:55 +02:00
Trial97
c1a96d21a4 Added support for Redis cluster 2020-08-07 09:27:02 +02:00
Trial97
27df63f9f0 Updated RateS service reload 2020-06-17 09:50:36 +02:00
DanB
373b4bb233 RateS.matchingRateProfileForEvent 2020-06-12 20:41:16 +02:00