ionutboangiu
3179af0839
move failed post cache init to EFS service
2025-11-20 11:35:29 +01:00
ionutboangiu
4714fb783b
remove init for failed posts cache
2025-11-20 11:35:29 +01:00
ionutboangiu
e0f2f3c937
cfg: add efs failed_posts_static_ttl field
2025-11-20 11:35:29 +01:00
gezimbll
d760ab319e
added replicator for each dbconn
2025-11-12 12:54:46 +01:00
gezimbll
378e8fd000
moving opts to each dbconn
2025-11-05 17:56:34 +01:00
arberkatellari
5f2b1f67df
Add multiple DB connections functionality
2025-10-19 13:15:57 +02:00
arberkatellari
119481b3d1
Update ERs SQL functionalities
2025-10-13 09:58:45 +02:00
ionutboangiu
e05be683ae
change license from GPLv3 to AGPLv3
2025-10-13 09:57:41 +02:00
ionutboangiu
570a285b31
Consider radius requests when limiting caps
2025-07-08 08:18:30 +02:00
ionutboangiu
43930547b9
cfg: support multiple radius auth/acct listeners
2025-07-08 08:18:30 +02:00
ionutboangiu
28edf30543
send agent events to stats/thresholds w/ ProcessTime
...
applies only to template-based agents
2025-06-24 18:18:12 +02:00
ionutboangiu
eb9f826ffd
Rename IP to IPAllocations
2025-06-03 14:23:29 +02:00
ionutboangiu
a66c472a36
sessions: rename jsoncfg obj fields to camel case
2025-06-01 14:04:28 +02:00
ionutboangiu
4ef2182b67
register IPs service using the correct function
2025-06-01 14:04:28 +02:00
ionutboangiu
4afe92695c
register IPService object under the correct name
2025-05-30 14:54:09 +02:00
ionutboangiu
eed6b8a51a
add implementation for new ips module
2025-05-29 15:46:42 +02:00
ionutboangiu
4af1cc106c
cdrs: add internal channel to connmanager
...
now checking for the right constant (CDRServer)
2025-05-26 08:22:23 +02:00
arberkatellari
5b66678313
Add offline internal DB functionality for dataDB,storDB & configDB
2025-05-13 17:07:17 +02:00
ionutboangiu
eeecae4576
move resources to dedicated package
2025-05-03 21:42:36 +02:00
ionutboangiu
bd8c9d3b5e
migrate guardian package to external dep
2025-04-22 19:35:11 +02:00
ionutboangiu
16d131b058
move attributes to dedicated package
2025-04-22 19:33:12 +02:00
ionutboangiu
069cadd618
move routes to dedicated package
2025-04-22 19:33:12 +02:00
ionutboangiu
9a42adc716
Retrieve routes default ratio from global var
...
to prevent cyclic import (utils > config > utils)
2025-04-22 19:33:12 +02:00
ionutboangiu
347ea9d988
Add CoreS metrics collection to PrometheusAgent
2025-03-25 14:27:52 +01:00
ionutboangiu
0b26559d1f
move chargers to dedicated package
2025-03-16 16:28:30 +01:00
gezimbll
1f686fca63
added RequestProcessors in fsAgent
2025-03-11 18:12:49 +01:00
ionutboangiu
c762de5c28
move rankings to dedicated package
2025-03-10 13:49:34 +01:00
ionutboangiu
47fb25b4ef
move trends to dedicated package
...
reivse/add comments and order of funcs/definitions
2025-03-10 13:49:34 +01:00
ionutboangiu
24d886c8e0
Pass CGRConfig to DataManager
...
instead of just CacheCfg. Prevents the need of global config var in
engine/datamanager.go
2025-03-10 13:49:34 +01:00
ionutboangiu
e92b5fd026
remove redundant services tests
...
replaced by TestServiceToggle (general_tests/service_toggle_it_test.go)
2025-03-09 17:36:12 +01:00
ionutboangiu
4e46f8dbd9
add PrometheusAgent implementation
2025-03-09 17:27:31 +01:00
ionutboangiu
b1a5874215
Move config/rsrparser.go to utils package
2025-02-24 13:36:32 +01:00
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
3f0bb4df43
Move libcgr-engine into cgr-engine.go + flags refactor
2025-01-21 19:59:17 +01:00
ionutboangiu
ba9c2e1e3f
Integrate cgrRunPreload inside LoaderService.Start
2025-01-21 19:59:17 +01:00
armirveliaj
7db65ca62c
Clean up DispatcherS
2025-01-17 17:29:46 +01:00
ionutboangiu
e23759b4a8
Init services directly in Service slice
...
except CoreService that needs to be referenced in
case CPU profiling is enabled via flags and needs
to be stopped before CoreService starts managing it
2025-01-16 15:51:52 +01:00
ionutboangiu
3d693aefe5
Remove srvDep map
...
Now syncing on shutdown based on states
2025-01-16 15:51:52 +01:00
ionutboangiu
7ffe0ae2f5
Remove unused csCh from CoreService struct
...
Synchronization is now done via state deps.
2025-01-16 15:51:52 +01:00
ionutboangiu
6be26def4f
Implement CapService
2025-01-16 15:51:52 +01:00
ionutboangiu
04f746c634
Implement LoggerService + refactoring (incomplete)
2025-01-14 19:00:37 +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
bf3d9a3281
Export funcs that wait for service state
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
20ee079e12
Use the waitForServicesToReachState helper
2025-01-10 20:18:08 +01:00
ionutboangiu
b68a804967
Implement helper methods for waiting on service states
2025-01-10 20:18:08 +01:00