Billing system parameter loading and sharing method, device and computing equipment

By using the parameter management container in the billing system to load data from the physical database and export the seed file, parallel loading between multiple nodes is achieved, which solves the problem of slow loading speed and memory usage caused by large amounts of data, improves efficiency and ensures Security in cloud environments.

CN113886349BActive Publication Date: 2024-09-20XIANGYANG BRANCH CHINA MOBILE GRP HUBEI CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010621161.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-01
Publication Date
2024-09-20
Estimated Expiration
2040-07-01

AI Technical Summary

Technical Problem

When loading and sharing parameters in the existing billing system, the large amount of data causes the host to load slowly, takes up a lot of memory, cannot achieve rapid scaling of nodes, and has security and efficiency issues in the cloud environment.

Method used

Obtain data from the physical database through the parameter management container and load it into shared memory, export the seed file, notify other nodes to load in parallel, use Zookeeper for task management and conflict detection, and use anonymous lock management and file lock detection to achieve efficient dissemination of parameter data. and loading.

Benefits of technology

It greatly reduces the I/O pressure on the physical database, saves the number of database connections, improves parameter loading efficiency, and ensures security and efficiency in the cloud environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886349B
    Figure CN113886349B
Patent Text Reader

Abstract

The embodiment of the present invention relates to the field of information technology, and discloses a method, device and computing equipment for parameter loading and sharing of a billing system, the method comprising: obtaining parameter data from a physical database on a first node through a parameter management container, and loading it into the shared memory of the first node; exporting the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file; notifying multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and loading it into the shared memory of the second node in parallel; when billing, obtaining the parameter data from the corresponding shared memory through a billing application for billing. Through the above-mentioned method, the embodiment of the present invention can greatly reduce the I / O pressure caused by frequent access to the physical database, save a large number of database connections, and greatly improve the efficiency of parameter loading.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of information technology, and in particular to a charging system parameter loading and sharing method, device and computing equipment. Background Art

[0002] When the billing application is running, it needs to obtain public data parameters such as process design, data configuration, and system variables. Usually, these are loaded into the shared memory of the running host through the parameter management container (BPM) program. The local program obtains data through the shared memory key value and switches between the A / B areas to ensure fast switching of application access without interrupting business. Specifically, the parameter data is obtained from the billing parameter physical database, and the billing parameter data is loaded into the shared memory (A / B area) of each billing application host in both full and incremental ways. The billing application on the node accesses the shared parameters on the local node through inter-process communication (IPC).

[0003] At present, the system supports parameter loading, refreshing, and shared access capabilities, but in terms of operation and maintenance, there are still the following problems that cannot be solved: the current amount of BPM parameter data is huge, and the host loads slowly from the physical database and occupies a lot of memory, resulting in slow application startup and the inability to achieve the rapid scaling characteristics of the node. A large number of application hosts load parameters from the physical library at the same time, which will occupy too many physical database connections and cause high I / O pressure when loading the physical database. At present, BPM in various provinces adopts the task scheduler (taskmon) scheduling mode. Due to the large number of parameters, manual control in batches is required. There are many business hosts in each province, and it is more difficult for each host to manage BPM independently. After the platform-as-a-service (PaaS) is clouded, there are security and efficiency issues in loading parameter data through the billing application because the billing application container itself may be destroyed. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention provide a method, apparatus and computing device for charging system parameter loading sharing, which overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of an embodiment of the present invention, a method for sharing parameter loading of a billing system is provided, the method comprising: obtaining parameter data from a physical database on a first node through a parameter management container, and loading the parameter data into a shared memory of the first node; exporting the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file; notifying multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and loading the seed file into the shared memory of the second node in parallel; when billing, obtaining the parameter data from the corresponding shared memory through a billing application for billing.

[0006] In an optional manner, the method further includes: performing parameter loading management through a parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or seed file, and exporting parameter data as the seed file; performing parameter data propagation management and seed file conflict detection management between shared memories of different nodes through a parameter management container; and performing shared memory management through a parameter management container.

[0007] In an optional manner, the parameter loading management is performed through a parameter management container, including: when the parameter data changes, a parameter loading task is triggered, and the parameter loading task is registered in ZK; the parameter loading task is preempted from ZK through the parameter management container, and after preempting the parameter loading task, the parameter loading operation is performed from the physical parameter library or seed file.

[0008] In an optional manner, the parameter data propagation management between shared memories of different nodes is performed through a parameter management container, including: the parameter management container notifies multiple second nodes to obtain the seed file and execute parameter data loading through a propagation method; the seed files are sequentially assigned to a preset parameter type list, and different parameter types are set with different seed files; when the seed files are distributed, the flow control of the seed file transmission is performed.

[0009] In an optional manner, the seed file conflict detection management is performed through the parameter management container, including: if the data source corresponding to the currently triggered parameter data and scope has a temporary node that has not been processed by the parameter management container, then an error is reported and exited; if the trigger sequence number recorded on the data source corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, and the recorded status is successful, then the parameter management container is loaded and an error is reported and exited.

[0010] In an optional manner, the shared memory management through the parameter management container includes: constructing a parameter lock, a loading lock, a refresh lock, a registration lock and a partition lock through the parameter management container in an anonymous manner; constructing a parameter partition shared memory in an anonymous manner, and storing the generated shared memory identifier in the file BPM_PARAM; constructing the file BPM_PARAM and its content through the parameter management container loading logic, and if the file exists and is complete, the parameter management container loading logic obtains the parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is rebuilt and the file content is generated; for other applications that access or process the parameter management container parameters, only data acquisition from the file is supported, and if the file is incomplete, the access is exited.

[0011] In an optional manner, the method further includes: adding parameter control to the parameter management container, deleting the used shared memory and semaphore and BPM_PARAM file when the parameter management container is upgraded; and performing abnormality detection on the parameter management container by using file lock.

[0012] According to another aspect of an embodiment of the present invention, a parameter loading and sharing device for a billing system is provided, the device comprising: a loading unit, used to obtain parameter data from a physical database on a first node through a parameter management container, and load the parameter data into a shared memory of the first node; a seed generation unit, used to export the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file; a notification unit, used to notify multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and load the seed file into the shared memory of the second node in parallel; a billing unit, used to obtain the parameter data from the corresponding shared memory through the billing application of each node for billing.

[0013] According to another aspect of an embodiment of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0014] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of the above-mentioned billing system parameter loading and sharing method.

[0015] According to another aspect of an embodiment of the present invention, a computer storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables the processor to execute the steps of the above-mentioned billing system parameter loading and sharing method.

[0016] In an embodiment of the present invention, parameter data is obtained from a physical database on a first node through a parameter management container, and loaded into a shared memory of the first node; the parameter data is exported from the shared memory of the first node to a separate file through the parameter management container to form a seed file; multiple second nodes are notified through the parameter management container to obtain the seed file from the shared memory of the first node, and load it into the shared memory of the second node in parallel; during billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing, which can greatly reduce the I / O pressure caused by frequent access to the physical database, save a large number of database connections, and greatly improve parameter loading efficiency.

[0017] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0019] Figure 1 A schematic diagram showing a flow chart of a charging system parameter loading and sharing method provided by an embodiment of the present invention;

[0020] Figure 2 A schematic diagram showing the generation and propagation of a seed file of a charging system parameter loading and sharing method provided by an embodiment of the present invention is shown;

[0021] Figure 3 A schematic diagram showing the structure of a charging system parameter loading sharing device provided by an embodiment of the present invention is shown;

[0022] Figure 4 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0023] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0024] Figure 1 The flow chart of the charging system parameter loading and sharing method provided by the embodiment of the present invention is shown. The charging system parameter loading and sharing method is mainly applied to the server. Figure 1 As shown, the charging system parameter loading sharing method includes:

[0025] Step S11: Obtain parameter data from a physical database on a first node through a parameter management container, and load the parameter data into a shared memory of the first node.

[0026] In the embodiment of the present invention, the parameter management container is mainly set in the first node, and each node is provided with a parameter management container to manage the shared memory in the first node. Figure 2 As shown, the parameter management container obtains parameter data from the physical database and loads it into the shared memory. A single node has only one BPM. The embodiment of the present invention uses the daemonset method to treat BPM as a public resource, and preloads parameters when the physical machine / virtual machine (PM / VM) is started to accelerate the entry into the service access state. When a PM / VM-based billing application (POD / container) is newly generated, it obtains the BPM memory library key value in the file and directly accesses the parameter data through internal association. Among them, DaemonSet is a background daemon process controller. DaemonSet ensures that only one instance of a container group (POD) runs on all qualified nodes (Node), that is, it ensures that a container copy runs on each Node. It is often used to deploy some cluster logging, monitoring or management background application processes.

[0027] Step S12: exporting the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file.

[0028] In an embodiment of the present invention, the parameter management container is responsible for exporting the seed file from the shared memory, specifically reading the shared memory, exporting the parameter data to a temporary parameter file first, and then changing the temporary file to a formal file after the export is completed. This formal file is stored in the shared directory as a seed file for propagation to each node for parameter loading.

[0029] Step S13: Notify multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and load it into the shared memory of the second node in parallel.

[0030] In an embodiment of the present invention, parameter loading management is performed through a parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or seed file, exporting parameter data as the seed file, etc. BPM node information, parameter loading tasks and other information are registered to ZK, and node changes are monitored. After the node change is triggered, the following logic is supported: first check whether the trigger record needs to be processed, call the BPM process, and obtain the current BPM trigger sequence number BPM_SEQ, which has no memory and is -1. For the trigger sequence number of BPM >= recorded on ZK, discard this trigger record, otherwise execute the subsequent process.

[0031] When the parameter data changes, a parameter loading task is generated by manual or automatic triggering, and the loading task is registered in the Zookeeper (ZK) node. After the trigger process starts, a unique serial number is obtained from the node agent as the trigger serial number for this time, and the ZOOKEEPER where the parameter is registered is connected. The parameter loading task is preempted from ZK through the parameter management container, and after preempting the parameter loading task, the parameter loading operation is performed from the physical parameter database or seed file. Specifically, each parameter management container subscribes to the loading task status in Zookeeper. When there is a loading refresh task, the parameter management container preempts the loading task from Zookeeper (preempts the loading lock), and the parameter management container that preempts the loading task performs the loading operation from the physical parameter database or seed file.

[0032] After seizing the parameter management container of the loading task, opening the shared memory, semaphore, and parameter file, execute the loading / refresh logic, sort the data, and load it into the host shared memory. For the direct database (DB) method without flow control, there is no need to seize the lock, and the subsequent process is executed directly. If the parameters are obtained from the DB according to flow control, a ZK temporary sequence node ( / billing / bpm / DBLOAD / trigger sequence number / DBn) is created. If the sequence of the node sequence number is within the flow control quantity, it means that the loading lock is seized and the subsequent process is executed. If the flow quantity is exceeded, watch the upper node and then seize the loading lock. If the trigger type is upgrade, call BPM to clean up the shared memory, semaphore, and parameter file.

[0033] Call BPM to execute loading / refreshing logic, and the loading method is DB or seed file. If the loading method is loading from physical database, the parameter table in the physical database is accessed and loaded into shared memory; if the loading method is loading from seed file, the seed file is accessed first and the parameter data in the seed file is loaded into shared memory.

[0034] If the execution fails, the process responsible for generating the seed file accumulates the number of failures to the ZK node. If the accumulated number of failures exceeds the configured number (the default value for GLOBAL is 1), the status of the data source (DataSoure, DS) and the required propagation DS on ZK is set to failure (( / billing / bpm / parameter type / scope / DS:XXX), the constructed temporary node is deleted, and the [parameter queue] is reprocessed. Among them, the belonging DS refers to the first node that generates the original seed file, and the propagation DS refers to the second node that propagates the seed file.

[0035] The parameter management container that preempts the loading task is responsible for exporting the seed file from the shared memory and reading the shared memory. Specifically, the process responsible for generating the seed exports (dump) the parameter table in the physical library, exports the parameter data to a temporary parameter file, and then changes the temporary file into a formal file after the export is completed. This formal file is stored in the shared directory as a seed file for propagation to each node for parameter loading. The embodiment of the present invention manages parameter loading through a separate container, is isolated from the billing application, propagates parallel refresh loading through incremental seed files, propagates parallel loading through seed files, and has a fast loading speed without database pressure.

[0036] After the seed file is generated, the parameter propagation management notifies other nodes through propagation, and other nodes perform parameter loading after obtaining the seed file. The parameter management container is used to perform parameter data propagation management and seed file conflict detection management between shared memories of different nodes. The parameter management container notifies multiple second nodes to obtain the seed file and perform parameter data loading through propagation; the seed files are sequentially assigned to a preset parameter type list, and different parameter types are set with different seed files; when the seed files are distributed, the flow control of the seed file transmission is performed. Through the propagation of the generated seed file, multiple nodes load parameter data in parallel.

[0037] In an embodiment of the present invention, the seed mode executes the allocation logic. Currently, only seeds can be propagated between shared storages. Different parameter types have different seeds, and the propagation range of the seeds is a specified range list. If the seed mode or flow control quantity is > 0, and the trigger range involved is in multiple ZKs, an error is required. This can simplify seed concurrency control and flow control. For example, if there are 4 seeds for parameters bill_aix, bill_suse, and acct, then bill_aix is ​​allocated 2, bill_suse, and acct are allocated one each. If the allocation is not enough, all parameter types are allocated one seed. According to the parameter type and trigger range, the affected DS list is obtained from ZK. ZK node / billing / bpm / parameter type / scope / DS:XXX. If the same parameter type, the obtained DS list is empty, an error is reported; if the same DS exists, it means that the specified trigger range overlaps, and an error is reported; from the obtained DS list, the DS as the seed is randomly selected according to the number of allocated seeds (different parameter types, seeds are allocated different DS as much as possible), and the remaining DS are sequentially allocated to the seeds as their propagation DS.

[0038] ZK data is also set. If the trigger scope is a node: the data is set to ZK node / billing / bpm / parameter type / NODE / env(NODEID). If the node does not exist, an error must be reported. The registration information is in JSON format, and the content includes: trigger sequence number, trigger time, and various trigger parameters. If the trigger scope is not a node: the data is set to ZK node / billing / bpm / parameter type / scope. If the node does not exist, an error must be reported. The registration information is in JSON format, and the content is as follows: trigger sequence number, trigger time, and various trigger parameters. If the loading method is seed, the seed allocation result is attached, including parameter type, scope, seed DS, and propagation DS. For example, [parameter type: [{seed DS1}: [{propagation DS}, …], …], …]. Note: The registered ZK logic includes the scope. Different scopes of this trigger cannot contain the same DS, and all registered contents do not need to include the scope. After the process processes the above logic, it exits.

[0039] When distributing seed files, perform flow control on file transfer to ensure that network traffic is controllable. Get the DS to be propagated. If the trigger sequence number set on the corresponding DS on ZK is >= ZK_SEQ, exclude this DS. For DSs that need to be propagated with a flow control quantity of 0, a thread is opened to propagate the seeds. If the flow control quantity is >0, a temporary sequence node / billing / bpm / SPREAD / trigger sequence number / SP is constructed for all DSs that need to be propagated. The sequence number sequence is within the flow control quantity. A thread is opened to propagate the seeds. After the propagation is completed, the corresponding temporary sequence node is deleted. If the flow control quantity exceeds the flow control quantity, wait in a loop. When the sequence number sequence is within the flow control quantity, propagation begins. After each DS is propagated, the propagation result is set to the corresponding DS on ZK ( / billing / bpm / parameter type / scope / DS:XXX). After all responsible DSs are propagated, set the trigger sequence number and status to the DS to which they belong.

[0040] In an embodiment of the present invention, the parameter triggering in the seed file mode supports parallel loading conflict detection, and each ZK needs to be detected. When performing seed file conflict detection, if the data source corresponding to the currently triggered parameter data and scope has a temporary node that has not been processed by the parameter management container, an error will be reported and exited; if the trigger sequence number recorded on the data source (DS) corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, specifically, the trigger sequence number of the parameter data loading and refreshing recorded on the first node and the trigger sequence number of the parameter data loading and refreshing recorded on the second node are from different batches, and the recorded status is successful, indicating that there is a risk of parallel loading, then the parameter management container will be loaded and exited with an error. The error message should print out the detailed reason for the loading failure. If the DS is abandoned, the corresponding directory on the ZK needs to be manually deleted.

[0041] In an embodiment of the present invention, shared memory management is also performed through a parameter management container. The parameter management container is used to anonymously construct parameter locks, load locks, refresh locks, registration locks, and partition locks. The SEMID corresponding to the partition lock is stored in the file BPM_PARAM, and the SEMIDs of other locks are recorded in the shared memory parameter partition information (structPARAM_MGR_PART), which is newly added information. The parameter partition shared memory is constructed anonymously, and the generated shared memory identifier (SHMID) is stored in the file BPM_PARAM; the file BPM_PARAM and content are constructed through the parameter management container loading logic. If the file exists and is complete, the parameter management container loading logic obtains parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is reconstructed and the file content is generated; for other applications that access or process the parameters of the parameter management container, only data acquisition from the file is supported. If the file is incomplete, the access is exited. The embodiment of the present invention detects whether the file is complete by detecting the END of the file. The inter-BPM mutual exclusion lock [CLock(PARAM_MGR_KEY+3)] is replaced by the file BPM_PARAM.lock lock.

[0042] To facilitate BPM upgrades, an embodiment of the present invention also adds parameter control to the parameter management container. When the parameter management container is upgraded, the shared memory and semaphore used and the BPM_PARAM file are deleted, and a mutex lock and a load lock are added before deletion. BPM parameter loading adds optional parameters for specifying parameter sets. The parameter set is recorded in the parameter shared memory area. When refreshing the parameters, the parameter set is derived from the parameter shared memory area. BPM program, loading and refreshing logic, adds optional parameters for specifying the parameter trigger sequence number. A new field is added to the BPM shared memory parameter partition information (struct PARAM_MGR_PART) for recording the parameter trigger sequence number. BPM program, adds a new parameter for printing the parameter trigger sequence number.

[0043] The embodiment of the present invention uses a file lock method to detect abnormalities in the parameter management container. Specifically, under containerization, the application container uses a file lock method to detect whether the parameter management container exits abnormally. For processes that use parameters, if they are deployed as containers (MY_IP is registered), the parameter management container is detected for abnormalities using a lock file method. If the file does not exist or is locked successfully, it means that this parameter management container does not exist, and the existing lock file is deleted. For processes that use parameters, if they are deployed as ordinary processes (MY_IP is not registered), when the process that executes the detection is deployed in the container, no abnormality detection is performed; when the process that executes the detection is deployed as an ordinary process, the original logic detection (kill pid) is performed. For processes that use parameters, MY_IP is configured, and MY_IP<>HOST_IP, when initializing the parameters, the file ~ / HOST_AGENT / BPM / [env(BPM_TYPE) / ]lock||6-bit PID||env(MY_IP) is generated and locked. When the process exits, the generated lock file is deleted.

[0044] Step S14: during billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing.

[0045] In an embodiment of the present invention, the billing application of the first node obtains relevant parameter data from the shared memory of the first node for billing, and the billing applications of other nodes obtain relevant parameter data from their corresponding shared memories for billing. The embodiment of the present invention adopts the seed file mode, and the first node generates a parameter seed file, stores it in a shared file system, and propagates the loading parameter data file to each node from point to point. Each node loads it into the host memory in parallel, which greatly improves the parameter loading efficiency and the degree of parameter loading automation. The parameter management container loads the parameter data from the physical database into the shared memory through a single point, and then exports it to the seed file, and stores it in the distributed file storage (such as NFS) for shared use. Each application node loads the seed file into the host memory in parallel, which greatly reduces the I / O pressure caused by frequent access to the physical database and saves a large number of database connections.

[0046] In an embodiment of the present invention, parameter data is obtained from a physical database on a first node through a parameter management container, and loaded into a shared memory of the first node; the parameter data is exported from the shared memory of the first node to a separate file through the parameter management container to form a seed file; multiple second nodes are notified through the parameter management container to obtain the seed file from the shared memory of the first node, and load it into the shared memory of the second node in parallel; during billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing, which can greatly reduce the I / O pressure caused by frequent access to the physical database, save a large number of database connections, and greatly improve parameter loading efficiency.

[0047] Figure 3 FIG. 2 shows a schematic diagram of the structure of a charging system parameter loading sharing device according to an embodiment of the present invention. Figure 3 As shown, the charging system parameter loading and sharing device includes: a loading unit 301, a seed generating unit 302, a notification unit 303, a charging unit 304 and a management unit 305. Among them:

[0048] The loading unit 301 is used to obtain parameter data from a physical database on a first node through a parameter management container and load it into the shared memory of the first node; the seed generation unit 302 is used to export the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file; the notification unit 303 is used to notify multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node and load it into the shared memory of the second node in parallel; the billing unit 304 is used to obtain the parameter data from the corresponding shared memory for billing through the billing application of each node.

[0049] In an optional manner, the management unit 305 is used to: perform parameter loading management through a parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or seed file, and exporting parameter data as the seed file; perform parameter data propagation management and seed file conflict detection management between shared memories of different nodes through a parameter management container; and perform shared memory management through a parameter management container.

[0050] In an optional manner, the management unit 305 is also used to: trigger a parameter loading task when the parameter data changes, and register the parameter loading task in ZK; preempt the parameter loading task from ZK through the parameter management container, and after preempting the parameter loading task, perform the parameter loading operation from the physical parameter library or seed file.

[0051] In an optional manner, the management unit 305 is also used for: the parameter management container notifies multiple second nodes to obtain the seed file and execute parameter data loading through a propagation method; the seed files are sequentially assigned to a preset parameter type list, and different parameter types are set with different seed files; when the seed files are distributed, the flow of the seed file transmission is controlled.

[0052] In an optional manner, the management unit 305 is also used to: if the data source corresponding to the currently triggered parameter data and scope has a temporary node that has not been processed by the parameter management container, then report an error and exit; if the trigger sequence number recorded on the data source corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, and the recorded status is successful, then load the parameter management container and report an error and exit.

[0053] In an optional manner, the management unit 305 is also used to: anonymously construct parameter locks, loading locks, refresh locks, registration locks and partition locks through the parameter management container; anonymously construct parameter partition shared memory, and store the generated shared memory identifier in the file BPM_PARAM; construct the file BPM_PARAM and its content through the parameter management container loading logic, and if the file exists and is complete, the parameter management container loading logic obtains parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is rebuilt and the file content is generated; for other applications that access or process the parameter management container parameters, only data acquisition from the file is supported, and if the file is incomplete, access is exited.

[0054] In an optional manner, the management unit 305 is further used to: add parameter control to the parameter management container, delete the used shared memory and semaphore and BPM_PARAM file when the parameter management container is upgraded; and perform abnormality detection on the parameter management container using file lock.

[0055] In an embodiment of the present invention, parameter data is obtained from a physical database on a first node through a parameter management container, and loaded into a shared memory of the first node; the parameter data is exported from the shared memory of the first node to a separate file through the parameter management container to form a seed file; multiple second nodes are notified through the parameter management container to obtain the seed file from the shared memory of the first node, and load it into the shared memory of the second node in parallel; during billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing, which can greatly reduce the I / O pressure caused by frequent access to the physical database, save a large number of database connections, and greatly improve parameter loading efficiency.

[0056] An embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the charging system parameter loading and sharing method in any of the above method embodiments.

[0057] The executable instructions may be specifically used to cause the processor to perform the following operations:

[0058] Acquire parameter data from a physical database on the first node through a parameter management container, and load the parameter data into a shared memory of the first node;

[0059] Exporting the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file;

[0060] Notifying multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and loading the seed file into the shared memory of the second node in parallel;

[0061] During billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing.

[0062] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0063] Parameter loading management is performed through the parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or a seed file, and exporting parameter data as the seed file;

[0064] The parameter management container is used to manage parameter data propagation between shared memories of different nodes and to detect and manage seed file conflicts.

[0065] Shared memory management through parameter management containers.

[0066] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0067] When the parameter data changes, a parameter loading task is triggered, and the parameter loading task is registered in ZK;

[0068] The parameter loading task is preempted from ZK through the parameter management container, and after the parameter loading task is preempted, the parameter loading operation is performed from the physical parameter library or seed file.

[0069] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0070] The parameter management container notifies the plurality of second nodes to obtain the seed file and execute parameter data loading by propagation;

[0071] Sequentially assigning the seed files to a preset parameter type list, with different parameter types setting different seed files;

[0072] When the seed file is distributed, flow control is performed on the seed file transmission.

[0073] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0074] If the data source corresponding to the currently triggered parameter data and range has a temporary node that has not been processed by the parameter management container, an error will be reported and the system will exit;

[0075] If the trigger sequence number recorded on the data source corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, and the recorded status is successful, the parameter management container is loaded and exits with an error.

[0076] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0077] The parameter management container is used to anonymously construct parameter locks, load locks, refresh locks, registration locks and partition locks;

[0078] The parameter partition shared memory is constructed anonymously, and the generated shared memory identifier is stored in the file BPM_PARAM;

[0079] The file BPM_PARAM and its content are constructed by the parameter management container loading logic. If the file exists and is complete, the parameter management container loading logic obtains the parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is reconstructed and the file content is generated;

[0080] For other applications that access or process the parameters of the parameter management container, only data acquisition from the file is supported. If the file is incomplete, the access is terminated.

[0081] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0082] Add parameter control to the parameter management container, and delete the used shared memory and semaphore and BPM_PARAM file when the parameter management container is upgraded;

[0083] The parameter management container is subjected to abnormality detection by means of file lock.

[0084] In an embodiment of the present invention, parameter data is obtained from a physical database on a first node through a parameter management container, and loaded into a shared memory of the first node; the parameter data is exported from the shared memory of the first node to a separate file through the parameter management container to form a seed file; multiple second nodes are notified through the parameter management container to obtain the seed file from the shared memory of the first node, and load it into the shared memory of the second node in parallel; during billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing, which can greatly reduce the I / O pressure caused by frequent access to the physical database, save a large number of database connections, and greatly improve parameter loading efficiency.

[0085] An embodiment of the present invention provides a computer program product, which includes a computer program stored on a computer storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the billing system parameter loading and sharing method in any of the above-mentioned method embodiments.

[0086] The executable instructions may be specifically used to cause the processor to perform the following operations:

[0087] Acquire parameter data from a physical database on the first node through a parameter management container, and load the parameter data into a shared memory of the first node;

[0088] Exporting the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file;

[0089] Notifying multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and loading the seed file into the shared memory of the second node in parallel;

[0090] During billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing.

[0091] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0092] Parameter loading management is performed through the parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or a seed file, and exporting parameter data as the seed file;

[0093] The parameter management container is used to manage parameter data propagation between shared memories of different nodes and to detect and manage seed file conflicts.

[0094] Shared memory management through parameter management containers.

[0095] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0096] When the parameter data changes, a parameter loading task is triggered, and the parameter loading task is registered in ZK;

[0097] The parameter loading task is preempted from ZK through the parameter management container, and after the parameter loading task is preempted, the parameter loading operation is performed from the physical parameter library or seed file.

[0098] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0099] The parameter management container notifies the plurality of second nodes to obtain the seed file and execute parameter data loading by propagation;

[0100] Sequentially assigning the seed files to a preset parameter type list, with different parameter types setting different seed files;

[0101] When the seed file is distributed, flow control is performed on the seed file transmission.

[0102] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0103] If the data source corresponding to the currently triggered parameter data and range has a temporary node that has not been processed by the parameter management container, an error will be reported and the system will exit;

[0104] If the trigger sequence number recorded on the data source corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, and the recorded status is successful, the parameter management container is loaded and exits with an error.

[0105] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0106] The parameter management container is used to anonymously construct parameter locks, load locks, refresh locks, registration locks and partition locks;

[0107] The parameter partition shared memory is constructed anonymously, and the generated shared memory identifier is stored in the file BPM_PARAM;

[0108] The file BPM_PARAM and its content are constructed by the parameter management container loading logic. If the file exists and is complete, the parameter management container loading logic obtains the parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is reconstructed and the file content is generated;

[0109] For other applications that access or process the parameters of the parameter management container, only data acquisition from the file is supported. If the file is incomplete, the access is terminated.

[0110] In an optional manner, the executable instruction causes the processor to perform the following operations:

[0111] Add parameter control to the parameter management container, and delete the used shared memory and semaphore and BPM_PARAM file when the parameter management container is upgraded;

[0112] The parameter management container is subjected to abnormality detection by means of file lock.

[0113] In an embodiment of the present invention, parameter data is obtained from a physical database on a first node through a parameter management container, and loaded into a shared memory of the first node; the parameter data is exported from the shared memory of the first node to a separate file through the parameter management container to form a seed file; multiple second nodes are notified through the parameter management container to obtain the seed file from the shared memory of the first node, and load it into the shared memory of the second node in parallel; during billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing, which can greatly reduce the I / O pressure caused by frequent access to the physical database, save a large number of database connections, and greatly improve parameter loading efficiency.

[0114] Figure 4 A schematic diagram of the structure of a computing device provided by an embodiment of the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the device.

[0115] like Figure 4 As shown, the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

[0116] The processor 402, the communication interface 404, and the memory 406 communicate with each other via the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the above-mentioned charging system parameter loading sharing method embodiment.

[0117] Specifically, the program 410 may include program codes, which include computer operation instructions.

[0118] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0119] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0120] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:

[0121] Acquire parameter data from a physical database on the first node through a parameter management container, and load the parameter data into a shared memory of the first node;

[0122] Exporting the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file;

[0123] Notifying multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and loading the seed file into the shared memory of the second node in parallel;

[0124] During billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing.

[0125] In an optional manner, the program 410 enables the processor to perform the following operations:

[0126] Parameter loading management is performed through the parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or a seed file, and exporting parameter data as the seed file;

[0127] The parameter management container is used to manage parameter data propagation between shared memories of different nodes and to detect and manage seed file conflicts.

[0128] Shared memory management through parameter management containers.

[0129] In an optional manner, the program 410 enables the processor to perform the following operations:

[0130] When the parameter data changes, a parameter loading task is triggered, and the parameter loading task is registered in ZK;

[0131] The parameter loading task is preempted from ZK through the parameter management container, and after the parameter loading task is preempted, the parameter loading operation is performed from the physical parameter library or seed file.

[0132] In an optional manner, the program 410 enables the processor to perform the following operations:

[0133] The parameter management container notifies the plurality of second nodes to obtain the seed file and execute parameter data loading by propagation;

[0134] Sequentially assigning the seed files to a preset parameter type list, with different parameter types setting different seed files;

[0135] When the seed file is distributed, flow control is performed on the seed file transmission.

[0136] In an optional manner, the program 410 enables the processor to perform the following operations:

[0137] If the data source corresponding to the currently triggered parameter data and range has a temporary node that has not been processed by the parameter management container, an error will be reported and the system will exit;

[0138] If the trigger sequence number recorded on the data source corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, and the recorded status is successful, the parameter management container is loaded and exits with an error.

[0139] In an optional manner, the program 410 enables the processor to perform the following operations:

[0140] The parameter management container is used to anonymously construct parameter locks, load locks, refresh locks, registration locks and partition locks;

[0141] The parameter partition shared memory is constructed anonymously, and the generated shared memory identifier is stored in the file BPM_PARAM;

[0142] The file BPM_PARAM and its content are constructed by the parameter management container loading logic. If the file exists and is complete, the parameter management container loading logic obtains the parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is reconstructed and the file content is generated;

[0143] For other applications that access or process the parameters of the parameter management container, only data acquisition from the file is supported. If the file is incomplete, the access is terminated.

[0144] In an optional manner, the program 410 enables the processor to perform the following operations:

[0145] Add parameter control to the parameter management container, and delete the used shared memory and semaphore and BPM_PARAM file when the parameter management container is upgraded;

[0146] The parameter management container is subjected to abnormality detection by means of file lock.

[0147] In an embodiment of the present invention, parameter data is obtained from a physical database on a first node through a parameter management container, and loaded into a shared memory of the first node; the parameter data is exported from the shared memory of the first node to a separate file through the parameter management container to form a seed file; multiple second nodes are notified through the parameter management container to obtain the seed file from the shared memory of the first node, and load it into the shared memory of the second node in parallel; during billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing, which can greatly reduce the I / O pressure caused by frequent access to the physical database, save a large number of database connections, and greatly improve parameter loading efficiency.

[0148] The algorithm or display provided here is not inherently related to any specific computer, virtual system or other equipment. Various general systems can also be used together with the teaching based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described here, and the description of the above specific language is for disclosing the best mode of the present invention.

[0149] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0150] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0151] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0152] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0153] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A charging system parameter loading sharing method, characterized in that: The method comprises: Acquire parameter data from a physical database on the first node through a parameter management container, and load the parameter data into a shared memory of the first node; Exporting the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file; Notifying multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node, and loading the seed file into the shared memory of the second node in parallel; During billing, the parameter data is obtained from the corresponding shared memory through a billing application for billing; Parameter loading management is performed through the parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or a seed file, and exporting parameter data as the seed file; The parameter management container is used to manage the propagation of parameter data between shared memories of different nodes and the detection of seed file conflicts, including: if the data source corresponding to the currently triggered parameter data and scope has a temporary node that has not been processed by the parameter management container, an error is reported and the process is exited; if the trigger sequence number recorded on the data source corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, and the recorded status is successful, the parameter management container is loaded and an error is reported and the process is exited; Shared memory management is performed through a parameter management container, including: constructing a parameter lock, a loading lock, a refresh lock, a registration lock and a partition lock in an anonymous manner through the parameter management container; constructing a parameter partition shared memory in an anonymous manner, and storing the generated shared memory identifier in a file BPM_PARAM; constructing the file BPM_PARAM and content through the parameter management container loading logic, and if the file exists and is complete, the parameter management container loading logic obtains parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is reconstructed and the file content is generated; for other applications that access or process the parameter management container parameters, only data acquisition from the file is supported, and if the file is incomplete, the access is exited.

2. The method according to claim 1, characterized in that The parameter loading management is performed through the parameter management container, including: When the parameter data changes, a parameter loading task is triggered, and the parameter loading task is registered in ZK; The parameter loading task is preempted from ZK through the parameter management container, and after the parameter loading task is preempted, the parameter loading operation is performed from the physical database or seed file.

3. The method according to claim 1, characterized in that: The parameter data propagation management between shared memories of different nodes through the parameter management container includes: The parameter management container notifies the plurality of second nodes to obtain the seed file and execute parameter data loading by propagation; Sequentially assigning the seed files to a preset parameter type list, with different parameter types setting different seed files; When the seed file is distributed, flow control is performed on the seed file transmission.

4. The method according to claim 1, characterized in that: The method further comprises: Add parameter control to the parameter management container, and delete the used shared memory and semaphore and BPM_PARAM file when the parameter management container is upgraded; The parameter management container is subjected to abnormality detection by means of file lock.

5. A charging system parameter loading sharing device, characterized in that: The device comprises: A loading unit, configured to obtain parameter data from a physical database on a first node through a parameter management container, and load the parameter data into a shared memory of the first node; A seed generation unit, configured to export the parameter data from the shared memory of the first node to a separate file through the parameter management container to form a seed file; a notification unit, configured to notify multiple second nodes through the parameter management container to obtain the seed file from the shared memory of the first node and load it into the shared memory of the second node in parallel; A billing unit, used for obtaining the parameter data from the corresponding shared memory through the billing application of each node for billing; The snap-in is used to: Parameter loading management is performed through the parameter management container, including sensing parameter data changes, loading and refreshing parameter data from a physical database or a seed file, and exporting parameter data as the seed file; The parameter management container is used to manage the propagation of parameter data between shared memories of different nodes and the detection of seed file conflicts, including: if the data source corresponding to the currently triggered parameter data and scope has a temporary node that has not been processed by the parameter management container, an error is reported and the process is exited; if the trigger sequence number recorded on the data source corresponding to the currently triggered parameter data and scope is not equal to the trigger sequence number recorded on the scope, and the recorded status is successful, the parameter management container is loaded and an error is reported and the process is exited; Shared memory management is performed through a parameter management container, including: constructing a parameter lock, a loading lock, a refresh lock, a registration lock and a partition lock in an anonymous manner through the parameter management container; constructing a parameter partition shared memory in an anonymous manner, and storing the generated shared memory identifier in a file BPM_PARAM; constructing the file BPM_PARAM and content through the parameter management container loading logic, and if the file exists and is complete, the parameter management container loading logic obtains parameter information from the file; if the memory key value does not exist or the file is incomplete, the memory is reconstructed and the file content is generated; for other applications that access or process the parameter management container parameters, only data acquisition from the file is supported, and if the file is incomplete, the access is exited.

6. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the steps of the charging system parameter loading and sharing method according to any one of claims 1-4.

7. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to execute the steps of the billing system parameter loading and sharing method according to any one of claims 1-4.