This PR aims to initialise DRSM library only when EnableDbStore config option is enabled.
DRSM library is used to create mappings between an SMF instance and its owned resources (TEID, etc). This allows, in presence of multiple SMFs, to redirect messages between instances. Each SMF instance owns a chunk in a MongoDB sharded mongodb (cluster or instance).
When EnableDbStore option is disabled, no mongoDB instance is expected to be deployed and available to SMF, therefore DRSM library should not be initialized in such scenario. This implies that only a single SMF instance can be used when EnableDbStore is disabled.
Main changes:
conditional initialization of DRSM library based on EnableDbStore
reintroduce local allocation methods when database is disabled
This PR aims to initialise DRSM library only when
EnableDbStore
config option is enabled. DRSM library is used to create mappings between an SMF instance and its owned resources (TEID, etc). This allows, in presence of multiple SMFs, to redirect messages between instances. Each SMF instance owns a chunk in a MongoDB sharded mongodb (cluster or instance). WhenEnableDbStore
option is disabled, no mongoDB instance is expected to be deployed and available to SMF, therefore DRSM library should not be initialized in such scenario. This implies that only a single SMF instance can be used whenEnableDbStore
is disabled. Main changes:EnableDbStore