Commit Graph

426 Commits

Author SHA1 Message Date
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
Bas Couwenberg
e184e8effb Use /etc/apt/trusted.gpg.d instead of apt-key. 2022-09-14 12:19:37 +02:00
nickolasdaniel
2206e5452f Upgraded golang version to 1.18 2022-03-18 11:58:39 +01:00
andronache98
dc6f769344 Changed go version for ansible scripts 2021-12-15 19:57:57 +01:00
andronache
1af6a40eba Fixed RTD failling 2021-11-02 10:28:57 +02:00
JeremyC-AU
2b9ee8d10b Updated libsrtp-dev to libsrtp2-dev
Updated libsrtp-dev to libsrtp2-dev as libsrtp-dev is not longer available in the repository
2021-09-05 08:18:07 +03:00
Anthony Somerset
d0da699c36 ers docs typo
references content_fields instead of fields
2021-08-31 20:43:26 +03:00
ionutboangiu
0e4ae73958 Fix typo loopStoped -> loopStopped 2021-07-31 15:29:46 +02:00
Trial97
faf1fba125 Refactored EventRequest 2021-07-06 20:52:40 +02:00
Trial97
ca3befb5e5 Updated Docs.Fixes #2883 2021-05-18 17:07:45 +02:00
Trial97
cae5b4ced5 Added partial reader 2021-05-17 18:00:31 +02:00
andronache
bc4979b74a Renamed opts for DataDB and StorDB 2021-05-06 13:57:30 +02:00
andronache
0089659476 Started using camelCase for opts in data_db 2021-05-06 13:57:30 +02:00