Alternate Channel Storage Backends

Full details: http://s.asterisk.net/dc679ec3

The previous proof-of-concept showed that the cpp_map_name_id alternate
storage backed performed better than all the others so this final PR
adds only that option.  You still need to enable it in menuselect under
the "Alternate Channel Storage Backends" category.

To select which one is used at runtime, set the "channel_storage_backend"
option in asterisk.conf to one of the values described in
asterisk.conf.sample.  The default remains "ao2_legacy".

UpgradeNote: With this release, you can now select an alternate channel
storage backend based on C++ Maps.  Using the new backend may increase
performance and reduce the chances of deadlocks on heavily loaded systems.
For more information, see http://s.asterisk.net/dc679ec3
This commit is contained in:
George Joseph
2024-12-31 11:27:02 -07:00
committed by github-actions[bot]
parent 2ced79259a
commit 8f1982c4d6
16 changed files with 2016 additions and 410 deletions

View File

@@ -130,6 +130,14 @@ documentation_language = en_US ; Set the language you want documentation
; cause Asterisk to search for sounds files in
; AST_DATA_DIR/sounds/custom before searching the
; normal directories like AST_DATA_DIR/sounds/<lang>.
;channel_storage_backend = ao2_legacy ; Select the channel storage backend
; to use for live operation.
; ao2_legacy: Original implementation (default)
; Depending on compile options, the following may also be
; available:
; cpp_map_name_id: Use C++ Maps to index both
; channel name and channel uniqueid.
; See http://s.asterisk.net/dc679ec3 for more information.
; Changing the following lines may compromise your security.
;[files]