Commit Graph

438 Commits

Author SHA1 Message Date
ionutboangiu
730d99734c Add rpcconns documentation 2024-10-29 18:56:29 +01:00
ionutboangiu
1630bc7aa3 Slightly revise formatting for dispatchers docs 2024-10-29 18:56:29 +01:00
ionutboangiu
7df0494913 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
2024-10-29 18:53:22 +01:00
ionutboangiu
e78654716d Add DispatcherS component documentation 2024-10-23 20:26:28 +02:00
DanB
14292a77ea RankingSummary structure, LastUpdate timestamp inside Ranking struct, Ranking documentation 2024-10-18 18:53:58 +02:00
ionutboangiu
ab02a8a8dd Bump go version (1.22.5 -> 1.23.2)
needed for io.CopyFS function
2024-10-16 18:43:34 +02:00
DanB
dfc1ed0f0b Completing TrendS documentation for readthedocs 2024-10-06 17:59:25 +02:00
DanB
86ed9e932b Alpha code for TrendS 2024-10-05 20:30:22 +02:00
ionutboangiu
0748f09758 Revise troubleshooting section in docs 2024-08-13 15:07:44 +02:00
ionutboangiu
b0758d082d Remove redundant http_pprof cgr-engine flag
runtime profiling is now configurable within the http cfg section and
is enabled by default
2024-08-12 18:36:45 +02:00
gezimblliku
59b61f2354 added janusagent documentation 2024-08-04 21:12:01 +02:00
ionutboangiu
63129feb4c prevent memprof file overwrites for small intervals
Previously, the timestamp was accurate only down to seconds. For smaller intervals,
this would truncate the previous file(s). Now, for small intervals, the number of
microseconds is appended to the file name.

Added the possibility to disable timestamps in the memory profile file names and use
increments of 1 instead.

Updated the memory profiling integration tests.
2024-08-02 09:35:36 +02:00
ionutboangiu
1c490a9020 Revise memory profiling implementation
- merge StopChanMemProf with StopMemoryProfiling
- remove fileMEM and stopMemProf from struct and constructors
- add separate mutex for memory profiling, ensure thread safety
- handle all significant errors
- log error if StopMemoryProfiling fails during CoreS Shutdown
- ignore errors if profiling inactive in Shutdown and deferred Stop
- move validations inside V1 functions
- return error if StartMemoryProfiling already started
- return error if StopMemoryProfiling already stopped or never started
- close profiling loop on error, not the cgr-engine
- StopMemoryProfiling closes channel and profiling loop writes final profile
- rename Path to DirPath for mandatory field error
- rename memprof_nrfiles flag to memprof_maxfiles
- increase default memprof_interval
- consider MaxFiles <= 0 as unlimited
- move memory profiling logic after starting services
- use CoreService Start/StopMemoryProfiling in main
- remove final memory profile block (created by deferred Stop)
- convert MemProfiling to method on CoreService and rename to profileMemory
- use Ticker for recurrent actions instead of Timer
- compute mem_final.prof full path in StartMemoryProfiling
- suffix profile files with current time instead of numbers
- update dispatcher methods after changes
- move MemoryPrf from utils to cores, rename to MemoryProfilingParams
- add logs for starting/stopping profiling
2024-08-02 09:35:36 +02:00
ionutboangiu
6f4d2144a6 Add test & constant for set_versions flag
Also added set_versions help entry to cgr-engine doc.
2024-08-02 09:35:36 +02:00
ionutboangiu
958aa267cf Refactor HTTP profiling and flag handling
- hardcode the base path for profiling endpoints to '/debug/pprof/'
- change profiling flag 'httprof_path' to boolean 'http_pprof'
  (because of the above)
- remove redundant profiling endpoint registrations (handled by pprof.Index)
- move profiling registration log after actual registration
- make profiling registration log more descriptive
- use utils.Logger instead of log.Print for the log mentioned above
- refactor flags test into a table test (adding also verification for default
  flag values)
- change 'scheduledShutdown' flag type from string to time.Duration (to avoid
  unnecessary time parsing)
- revise flags usage descriptions
- rename flag 'singlecpu' to 'singleCPU'
- switch to 'ExitOnError' for flag parsing to simplify error handling and
  automatically handle 'ErrHelp' by exiting with status 0 when help is
  requested and status 2 for other parsing errors. Before the following error
  log would have been received:
  '<InitS> error received: <flag: help requested>, exiting!'
- update cgr-engine documentation
2024-08-02 09:35:36 +02:00
ionutboangiu
da4bf0d783 Sync (and update) go version
go.mod had a later version than the one used inside the
role, which caused the deb packaging to fail.

Updated all of them to latest.
2024-07-05 11:20:09 +02:00
ionutboangiu
75694bd75d Bump go version to 1.22.3 2024-05-16 14:46:30 +02:00
ionutboangiu
bd4aa99458 Refactor balance's Factor field name with its plural form
Stored balances previous to this commit, that had a non-nil Factors map, will
now have Factors nil due to field name mismatch.
2024-04-01 19:58:04 +03:00
ionutboangiu
51c3e15f1e Fix docs typo 2024-03-13 18:25:06 +01:00
DanB
25e2b1d418 Doc correction 2024-03-13 11:37:08 +01:00
DanB
c18fd40c62 Updating Debian installation instructions with tabs for Bookworkm/Boolseye 2024-03-13 11:09:16 +01:00
DanB
fe39eec4d9 Updating debian installation documentation 2024-03-12 15:30:31 +01:00
arberkatellari
8ab43944a2 Update readthedocs tutorial 2024-02-15 17:02:41 +01:00
arberkatellari
bbaf75c995 Update readthedocs & add console export_cdrs 2024-02-15 17:02:41 +01:00
gezimbll
1ec7cbccf8 updated installation steps for opensips 2024-02-15 16:34:24 +01:00
ionutboangiu
61bcf48678 Bump go version 2024-02-14 10:15:51 +01:00
ionutboangiu
c4664c69c4 Replace nightly with master for deb install 2023-10-19 17:20:00 +02:00
ionutboangiu
27c6d503a5 Bump go version and update checksum 2023-10-12 11:10:01 +02:00
ionutboangiu
84cdf743bd Bump go version 2023-10-09 21:09:27 +02:00
ionutboangiu
e963b22fb5 Bump go version to 1.21 2023-08-28 12:23:28 +02:00
gezimbll
eaa0d808af Updated installation docs 2023-08-09 12:28:10 +02:00
ionutboangiu
553508d1ff Bump go version from 1.20.5 to 1.20.6 2023-07-21 09:00:46 +02:00
ionutboangiu
69ecf60fc3 Make small revisions to installation.rst 2023-07-21 09:00:46 +02:00
gezimbll
af727ce24d Updated installation docs for creating packages 2023-07-04 13:17:13 +02:00
ionutboangiu
86b6a320fe Fix rtd search function
By adding the theme to the extension list in conf.py.
2023-06-27 11:04:26 +02:00
ionutboangiu
18c4fbcb8b Revise tutorial documentation 2023-06-23 11:54:59 +02:00
ionutboangiu
4f24be272c Add copy button extension for documentation code blocks 2023-06-23 11:54:59 +02:00
ionutboangiu
3963c07d14 Update installation docs 2023-06-23 11:54:59 +02:00
ionutboangiu
c7fdb8bf5a Downgrade sphinx version to be compatible with latest sphinx-rtd-theme 2023-06-05 10:53:58 +02:00
ionutboangiu
c8bc978241 Replace the api docs link with the correct one 2023-05-18 19:28:39 +02:00
ionutboangiu
738cd86103 Make small revisions to installation docs 2023-05-18 19:28:39 +02:00
ionutboangiu
3036d4eb11 Pin transitive dependencies 2023-05-18 19:28:39 +02:00
ionutboangiu
6911b4fb10 Revise doc for fs install + warning fixes 2023-05-18 19:28:39 +02:00
ionutboangiu
8f35f63822 Update asterisk installation docs 2023-05-18 19:28:39 +02:00
adi
26327bb5cf Updated kamailio doc 2023-01-13 16:22:48 +01:00
adi
dfeef1c973 Updated freeswitch instalation tutorial for docs 2023-01-13 16:22:48 +01:00
adi
72ee7ef7ee Improved docs/troubleshooting 2022-09-16 12:32:07 +02:00
adi
0549bec7d9 docs/ 2022-09-16 12:32:07 +02:00
adi
75b0842364 Troubleshooting doc 2022-09-14 17:07:21 +02:00
adi
26c31e16dd DOc for memory profiling 2022-09-14 17:07:21 +02:00