ionutboangiu
da2052e7b3
Implement FilterService
...
And use ServiceIndexer to sync with it
2024-12-12 11:55:14 +01:00
ionutboangiu
db301f7901
Remove StorDB service param from service constructors
...
Use ServiceIndexer instead.
Remove CDRs ListenAndServe method.
Pass the storDB connection directly to constructors instead of the
channel.
2024-12-12 11:55:14 +01:00
ionutboangiu
10dfcc5e48
Remove dmS parameter from service constructors
...
Use ServiceIndexer instead
2024-12-12 11:55:14 +01:00
ionutboangiu
55ecdf45e4
Remove clsChan in favor of using the service indexer
2024-12-12 11:55:14 +01:00
ionutboangiu
98b5b74b23
Remove cacheS parameter from service constructors
...
ServiceIndexer will be used instead
2024-12-12 11:55:14 +01:00
ionutboangiu
77af4f95b3
Remove anzCh in favor of using the service indexer
2024-12-10 18:53:13 +01:00
ionutboangiu
0783984bfe
Remove srvDep from services that don't use it
2024-12-05 20:12:08 +01:00
ionutboangiu
e51eed46e7
Revise analyzers integration test
2024-12-05 20:12:08 +01:00
ionutboangiu
34de7e2c4e
Remove unused dependency waitgroups
...
to declutter cgr-engine.go a bit. Entire map will be removed in the future
2024-12-04 19:28:50 +01:00
ionutboangiu
79e461e7c5
Remove redundant internal channels
...
only from services that have dedicated files
2024-12-04 19:28:50 +01:00
ionutboangiu
fbc9afc784
Simplify indexer.AddService implementation
2024-12-04 19:28:50 +01:00
ionutboangiu
82c985cdbe
servmanager: remove redundant subsystems map
...
ServiceIndexer can handle its usecases instead
2024-12-04 19:28:50 +01:00
ionutboangiu
cfdb3e80ca
Integrate state deps across services for SERVICE_UP
2024-12-04 19:28:50 +01:00
ionutboangiu
c29f1fdd35
Remove services/cgr-engine.go
...
Trying to move services init before CGREngine constructor makes it pointless,
as it's only used as a dependency storage for services init.
2024-12-04 09:06:59 +01:00
DanB
2dfa1e7035
Adding initial stopChan to the engine
2024-12-01 20:22:47 +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
DanB
23e5f0e387
Add generic way to insert services inside services/CGREngine
2024-11-26 14:03:57 +01:00
DanB
76398441da
Simplify running of the engine via only one Run command
2024-11-26 12:50:08 +01:00
DanB
3b195dcf1d
Adding StateIndexer, ServiceIndexer, StateDeps
2024-11-23 20:14:07 +01:00
gezimbll
1c6c733a3f
added dispatcher methods for rankings and trends
2024-11-22 20:29:27 +01:00
gezimbll
bb0116c543
added it test && loaders templates for ranking and trend profiles
2024-11-22 20:29:27 +01:00
armirveliaj
795d83325c
Add coverage tests on engine
2024-11-14 17:48:40 +01:00
ionutboangiu
1453234293
Use channel instead of wait func (AnalyzerS)
2024-11-14 17:48:09 +01:00
ionutboangiu
59f8b1379e
Use channel instead of wait func (CLS)
2024-11-14 17:48:09 +01:00
ionutboangiu
a1ed51b301
Comment services tests
2024-11-14 17:48:09 +01:00
ionutboangiu
21409fc92e
Add new CommonListenerService
2024-11-14 17:48:09 +01:00
ionutboangiu
e78722ae4e
Init cM,caps,cls,wg inside CGREngine constructor
...
Also pass the profile to the CGREngine struct the moment profiling started.
2024-11-14 17:48:09 +01:00
ionutboangiu
0d9358cf30
Ensure services wait for AnalyzerS to be initiated
...
Same logic as waiting for FilterS/DataDBService.
The difference will be that services will only wait when AnalyzerS
is enabled.
2024-11-14 17:48:09 +01:00
ionutboangiu
b7038dd61e
Rename AnalyzerS constructor
...
NewAnalyzerService -> NewAnalyzerS
2024-11-14 17:48:09 +01:00
ionutboangiu
ab5328dcdb
Name and document CommonListenerS mutex field
2024-11-14 17:48:09 +01:00
ionutboangiu
bb9bfbb19b
Rename CommonListenerS constructor
...
NewServer -> NewCommonListenerS
2024-11-14 17:48:09 +01:00
ionutboangiu
4c8cf69f70
Auto-configure loader in test suite if needed
2024-11-07 15:38:37 +01:00
ionutboangiu
5bf8f1756c
Extract cores.Server into new commonlisteners package
...
Functionality is the same.
Server has been renamed to CommonListenerS.
2024-11-04 21:23:15 +01:00
ionutboangiu
40c5d65af6
Add benchmark for diameter+caps
...
unusable until sessions is finished
2024-11-04 21:22:58 +01:00
ionutboangiu
709d70a031
Add DBCfg var for postgres
2024-11-04 21:22:58 +01:00
ionutboangiu
213b67fbb0
Revise registrarc integration test
2024-11-04 21:22:58 +01:00
ionutboangiu
113f1ccf31
Implement cgr-loader test helper
2024-11-04 21:22:58 +01:00
ionutboangiu
c498af5211
Allow benchmarks to use the testing suite
2024-11-04 21:22:58 +01:00
ionutboangiu
66c119dba7
Consider diameter requests when limiting caps
...
- add possibility to pass custom Error-Message AVP to negative diameter
answers
- negative answer is now built only when an error occurs
- remove tests that were testing behaviour with max concurrent requests 0
- add integration test specific to this change
2024-11-04 21:22:58 +01:00
ionutboangiu
ad104573e9
Remove concurrent_requests diameter opt
...
Will be replaced by caps.
2024-11-04 21:22:58 +01:00
ionutboangiu
f937907b38
Add service toggle integration test
2024-11-04 21:22:58 +01:00
gezimbll
132a2b3bf9
rankings,trends: added implementation,services and tests
2024-11-04 19:03:21 +01:00
ionutboangiu
766a717b3c
Add CI badge for integration tests
2024-11-03 13:19:45 +01:00
ionutboangiu
d42a1e0177
Fix annoying staticcheck unused param warnings
2024-11-03 13:19:45 +01:00
ionutboangiu
6cd07c5943
Port workflow changes from v0.11
2024-11-03 13:19:45 +01:00
ionutboangiu
d8acee74e2
Add *fileLineNumber var for file readers
2024-11-03 13:19:45 +01:00
ionutboangiu
c895681980
Improve CoreSv1.Status API with more detailed metrics
...
- add new metrics (off by default)
- add Debug boolean option for full metric details
- add Timezone option for 'running_since' field
- update default metrics shown and their constants
- remove utils.GetStartTime(), now use process metrics
2024-11-03 13:19:45 +01:00
ionutboangiu
176c91764f
SplitPath: stop at '#' for nesting separator
2024-11-03 13:19:45 +01:00
ionutboangiu
bd79a0f9e7
Optimize removeFilterIndexesForFilter func ( #4357 )
...
Previously made two trips (get and set) for each group of items from
an index key being removed. Now, we fetch indexes once at the beginning
and store the updated indexes once at the end.
2024-11-03 13:19:45 +01:00