CN114489863A - System parameter configuration method and device, computer equipment and storage medium - Google Patents

System parameter configuration method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114489863A
CN114489863A CN202210143626.2A CN202210143626A CN114489863A CN 114489863 A CN114489863 A CN 114489863A CN 202210143626 A CN202210143626 A CN 202210143626A CN 114489863 A CN114489863 A CN 114489863A
Authority
CN
China
Prior art keywords
target
parameter information
parameter
application system
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210143626.2A
Other languages
Chinese (zh)
Inventor
莫胜龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202210143626.2A priority Critical patent/CN114489863A/en
Publication of CN114489863A publication Critical patent/CN114489863A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the field of data processing, and discloses a method and a device for configuring system parameters, computer equipment and a storage medium, wherein the method comprises the following steps: when the configuration operation of the system parameters on the parameter configuration interface is detected, target parameter information corresponding to the configuration operation is obtained; determining a target application system of target parameter information; storing the target parameter information to a target storage area corresponding to a target application system, and determining a target message theme of the target parameter information based on the target application system; and pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure the system parameters based on the target parameter information. The method can realize the on-line parameter configuration of one or more application systems at the same time, simplify the configuration process and accelerate the configuration speed of system parameters. The present application relates to a blockchain technique, such as the above data can be written into a blockchain for parameter configuration and other scenarios.

Description

System parameter configuration method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for configuring system parameters, a computer device, and a storage medium.
Background
Generally, various system parameters are often configured for various application systems to achieve normal operation of the application systems, and at present, the system parameters are generally configured in a system configuration file manner, for example, when the system parameters are configured by using a system configuration file, if a system parameter needs to be newly added or changed, the modified system configuration file needs to be redeployed after the system configuration file is modified, and the modified system configuration file can be effective after the system is restarted. If for a large distributed system, each system needs to configure system parameters by using its own system configuration file, it can be seen that this configuration method of system parameters is complex to operate and takes a long time. Therefore, how to design a simple and fast system parameter configuration scheme becomes a problem which needs to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a method and a device for configuring system parameters, computer equipment and a storage medium, which can realize online parameter configuration through operation on a parameter configuration interface, and can also realize online parameter configuration on a plurality of application systems simultaneously so as to simplify the configuration process and accelerate the configuration speed of the system parameters.
In a first aspect, an embodiment of the present application discloses a method for configuring system parameters, where the method includes:
when configuration operation of system parameters on a parameter configuration interface is detected, target parameter information corresponding to the configuration operation is obtained;
determining a target application system corresponding to the target parameter information;
storing the target parameter information to a target storage area corresponding to the target application system, and determining a target message theme corresponding to the target parameter information based on the target application system;
and pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure system parameters based on the target parameter information.
In a second aspect, an embodiment of the present application discloses a system parameter configuration device, where the device includes:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring target parameter information corresponding to configuration operation when the configuration operation of system parameters on a parameter configuration interface is detected;
the first determining unit is configured to determine a target application system corresponding to the target parameter information;
the storage unit is used for storing the target parameter information to a target storage area corresponding to the target application system;
the second determining unit is configured to determine, based on the target application system, a target message topic corresponding to the target parameter information;
the pushing unit is configured to push the target parameter information to a corresponding target application system by using the target message theme, so that the target application system configures system parameters based on the target parameter information.
In a third aspect, an embodiment of the present application discloses a computer device, including a processor and a memory, where the memory is used for storing a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method of the first aspect.
In a fourth aspect, embodiments of the present application disclose a computer-readable storage medium storing a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method of the first aspect.
In the embodiment of the application, when the configuration operation on the system parameters on the parameter configuration interface is detected, the target parameter information corresponding to the configuration operation can be obtained, and the target application system corresponding to the target parameter information can also be determined. Then, the target parameter information may be stored in a target storage area corresponding to the target application system, and a target message topic corresponding to the target parameter information is determined based on the target application system, so that the target parameter information is pushed to the corresponding target application system by using the target message topic, thereby enabling the target application system to perform configuration of system parameters based on the target parameter information. Through the operation on the parameter configuration interface, the online parameter configuration can be realized, and the online parameter configuration of a plurality of application systems can also be realized simultaneously, so that the configuration process is simplified, and the configuration speed of the system parameters is accelerated; the current configuration information can be pushed to a specified application system by using a message queue tool so as to realize the decoupling of the parameter configuration and the application system function, and the non-invasive realization of the real-time synchronization of the parameter configuration data can be ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a system parameter configuration system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for configuring system parameters according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of obtaining target parameter information according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of a method for configuring system parameters according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a system parameter configuration apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to implement simple and fast system parameter configuration, an embodiment of the present application provides a system parameter configuration method, and a general principle of the system parameter configuration method is as follows: when the configuration operation of the system parameters on the parameter configuration interface is detected, the target parameter information corresponding to the configuration operation can be obtained, and the target application system corresponding to the target parameter information can also be determined. Then, the target parameter information may be stored in a target storage area corresponding to the target application system, and a target message topic corresponding to the target parameter information is determined based on the target application system, so that the target parameter information is pushed to the corresponding target application system by using the target message topic, thereby enabling the target application system to perform configuration of system parameters based on the target parameter information. Through the operation on the parameter configuration interface, the online parameter configuration can be realized, and the online parameter configuration of a plurality of application systems can also be realized simultaneously, so that the configuration process is simplified, and the configuration speed of the system parameters is accelerated; the current configuration information can be pushed to a specified application system by using a message queue tool so as to realize the decoupling of the parameter configuration and the application system function, and the non-invasive realization of the real-time synchronization of the parameter configuration data can be ensured.
It should be noted that the system parameter configuration method provided in the present application can be specifically applied to a system for configuring system parameters, please refer to fig. 1, and fig. 1 is a schematic structural diagram of a system for configuring system parameters provided in an embodiment of the present application. The system parameter configuration system may include a terminal 101, a storage device 102, and an application system cluster, which may include one or more application systems 103.
The terminal 101 may be configured to provide a parameter configuration interface, and a parameter configuration manager may input parameter information of system configuration related to the application system on the parameter configuration interface displayed on a terminal screen of the terminal 101. The storage device 102 may be configured to store parameter information of one or more application systems regarding system configuration, and the storage device 102 may further be communicatively connected to the one or more application systems 103, so that the storage device 102 may synchronize the parameter information obtained based on the parameter configuration interface to the corresponding application system 103, so that the application system 103 may perform configuration of system parameters according to the parameter information.
The terminal 101, the storage device 102, and the application system 103 may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein. The terminal 101 may be an intelligent device such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), and a wearable device. The storage device 102 may be a server that can be used for data storage, for example, the storage device may be a Redis, that is, system parameters of each application system may be stored in the Redis, and data solidification is implemented by using the Redis, so that loss of the system parameters of each application system is avoided, and thus, security of data is ensured. The application system 103 in the application system cluster may be any application system, for example, the application system cluster may be an enterprise system for an enterprise, for example, for an enterprise, the enterprise may include a plurality of departments, each department may correspond to an application system, and all application systems corresponding to the departments may form an application system cluster. The application system cluster may also be a distributed system, and the number of application systems in the distributed system is not limited.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
referring to fig. 2, fig. 2 is a schematic flowchart illustrating a system parameter configuration method according to an embodiment of the present disclosure, where the system parameter configuration method is executed by the aforementioned storage device; the system parameter configuration method comprises the following steps:
s201: when the configuration operation of the system parameters on the parameter configuration interface is detected, target parameter information corresponding to the configuration operation is obtained.
In one implementation manner, a parameter configuration manager may execute a relevant configuration operation through a parameter configuration interface output by a terminal, so that a storage device may detect a configuration operation for a system parameter on the parameter configuration interface, and acquire target parameter information corresponding to the configuration operation. The parameter configuration interface may be used for a parameter configuration manager to configure corresponding system parameters for one or more application systems. The parameter configuration manager in the present application may refer to a user, and specifically may refer to a user with system parameter configuration requirements. See, for example, fig. 3: the terminal used by the parameter configuration manager can display a parameter configuration interface for the parameter configuration manager to perform system parameter configuration in the terminal screen, and the parameter configuration interface can at least include a parameter setting area marked by 301 and a confirmation control marked by 302, for example, the parameter setting area 301 can include the following parameter setting items: the switch setting item, the timing task setting item, the time setting item, and the like, and may further include other parameter setting items, which are not limited in this application. If a parameter configuration manager needs to configure system parameters of one application system or a plurality of application systems, parameter information related to the system parameter configuration task in this time can be input in the parameter setting items in the parameter setting area 301. Then, a trigger operation (such as a click operation, a press operation, and the like) is performed on the confirmation control 302, so that a terminal used by a parameter configuration manager is triggered to acquire target parameter information corresponding to the parameter setting area 301, and the target parameter information is sent to the storage device, so that the storage device acquires the target parameter information related to the system parameter configuration task.
In an implementation manner, after the target parameter information is obtained, verification of the configuration permission may also be performed, where the verification of the configuration permission specifically may be verification of a user of a parameter configuration manager, so as to verify whether the parameter configuration manager has the configuration permission to perform the system parameter of the application system, so as to ensure reliability and security of parameter configuration of each application system. In a specific implementation, the target parameter information acquired by the storage device may carry a user identifier corresponding to a parameter configuration manager, where the user identifier may be input by the parameter configuration manager on a parameter configuration interface, and then when the target parameter information is acquired, the user identifier may also be acquired and carried in the target parameter information. After the storage device acquires the target parameter information, the configuration right may be further checked based on the user identifier carried in the target parameter information. For example, it may be determined whether the user identifier exists in a preset user identifier set, if the user identifier exists in the preset user identifier set, it is determined that the configuration authority is verified, that is, the subsequent operation may be performed, and if the user identifier does not exist in the preset user identifier set, it is determined that the configuration authority is not verified, that is, the subsequent operation may not be performed. The user identifiers in the preset user identifier set represent user identifiers corresponding to users with configuration rights.
S202: and determining a target application system corresponding to the target parameter information.
The number of the target parameter information may be one or more, for example, the information corresponding to one parameter setting item is one target parameter information. In the case that the number of the target parameter information is one, the target parameter information may be parameter information about system configuration for one application system, or may be parameter information about system configuration for a plurality of application systems, that is, the target application system may be one or more of the plurality of application systems. Similarly, in the case that the number of the target parameter information is plural, the plural target parameter information may be parameter information about the system configuration for one application system, or may be parameter information about the system configuration for plural application systems, for example, part of the plural target parameter information is common parameter information about the system configuration for the plural application systems, and the rest of the plural target parameter information is parameter information about the system configuration for each application system. The present application mainly takes one target parameter information as an example for explanation.
In an implementation manner, the target parameter information may carry a corresponding affiliated application system identifier, and the affiliated application system identifier may be used to indicate a corresponding target application system. The affiliated application identification may be determined based on a selection operation of a parameter configuration manager on a parameter configuration interface. For example, the parameter configuration interface may include parameter setting items, and for each parameter setting item, may further include a selection item for selecting the belonging application system. Then, when the parameter configuration manager inputs the relevant information at the corresponding position of each parameter setting item on the parameter configuration interface, the application system to which the input information belongs may also be selected, and when the storage device obtains the target parameter information corresponding to the configuration operation, the application system identifier to which the application system belongs may be carried in the target parameter information.
S203: and storing the target parameter information to a target storage area corresponding to the target application system, and determining a target message theme corresponding to the target parameter information based on the target application system.
In one implementation, the storage device may be configured to store parameter information of each application system about system configuration, and in order to facilitate management of the parameter information of each application system, the storage device may store the parameter information of each application system in an area, that is, the parameter information of each application system corresponds to one storage area. Then, for the currently acquired target parameter information, the target parameter information may be stored in a target storage area corresponding to the target application system.
In one implementation, the target parameter information may include a target parameter attribute and target parameter attribute data corresponding to the target parameter attribute, where if the target parameter attribute is a timed task time, the target parameter attribute data corresponding to the timed task time may be 9 points per day. In order to store the target parameter information in the target storage area, it may be determined whether a target parameter attribute exists in a target storage area corresponding to the target application system, and if the target parameter attribute does not exist in the target storage area, it may be determined that the target parameter information is new addition information, and when the target parameter information is stored in the target storage area, the corresponding storage operation may be a new addition operation related to the target parameter information, and the new addition operation may specifically be storing the target parameter attribute and the target parameter attribute data in the target storage area in an associated manner.
If the target parameter attribute exists in the target storage area, the target parameter information may be determined to be modification information, and when the target parameter information is stored in the target storage area, the corresponding storage operation may be a modification operation on the target parameter information. Then, historical parameter attribute data corresponding to the target parameter attribute may be determined from the target storage area, and the historical parameter attribute data and the target parameter attribute data may be matched, that is, it may be determined whether the historical parameter attribute data and the target parameter attribute data are consistent. If the historical parameter attribute data and the target parameter attribute data do not match, the historical parameter attribute data may be updated to the target parameter attribute data.
In one implementation, in addition to storing the target parameter information, the target parameter information needs to be pushed to a corresponding target application system, so that the target application system can configure the system parameters based on the target parameter information. In particular implementations, the storage device may utilize a message queue facility (e.g., a RabbitMQ) to push target parameter information to the target application system to achieve real-time synchronization with system parameters of the target application system. For the message queue, each application system may subscribe to a message topic in the message queue in advance, may subscribe to one message topic by one application system, or subscribe to one message topic by multiple application systems, which is not limited in the present application. Then the subsequent application system may receive the message in the subscribed message topic. Based on this, according to the message topic subscribed by each application system, the mapping relationship between each application system and the message topic can be determined, and the mapping relationship can be stored in the storage device so as to be directly obtained when the mapping relationship is subsequently utilized.
Then, the target message topic corresponding to the target parameter information may be determined by the target application system and the mapping relationship. In a specific implementation, a preset mapping relationship between each application system and a message topic may be obtained, where the mapping relationship may be determined based on the message topic subscribed by each application system. After the mapping relationship is obtained, the target message theme corresponding to the target parameter information can be determined according to the mapping relationship and the target application system.
S204: and pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure the system parameters based on the target parameter information.
In an implementation manner, the number of the target application systems corresponding to the target parameter information may be one or more, and the number of the target application systems corresponding to one target message topic may also be one or more. Optionally, when the number of the target message topics corresponding to the target parameter information is one, the target parameter information may be written into the target message topics, so as to push the target message topics written with the target parameter information to the target application system. Optionally, when the number of the target message topics corresponding to the target parameter information is multiple, that is, the number of the target application systems is also multiple, the target parameter information may be written into each target message topic, and then each target message topic into which the target parameter information is written is pushed to the corresponding target application system.
Then, after the target application system receives the target parameter information, the target application system may perform configuration of system parameters based on the target parameter information. The target application system can write the target parameter information into a local cache corresponding to the application system, so as to change the system parameters of the application system. In one implementation, the storage device may further obtain a target operation type corresponding to the target parameter information stored in the target storage area, where the target operation type may include: adding an operation type or modifying an operation type. The target operation type may be determined by the operation corresponding to the target parameter information stored in the target storage area, and the specific determination manner may refer to the description in step S203. After the target operation type is obtained, the operation type identifier corresponding to the target operation type may be carried in the target parameter information. Then, when the target parameter information is subsequently pushed to the corresponding target application system by using the target message theme, the target parameter information carrying the operation type identifier may be pushed to the corresponding target application system by using the target message theme. After the target application system receives the target parameter information carrying the operation type identifier, the target application system can determine the corresponding write operation type for writing the target parameter information into the local cache directly based on the operation type identifier, so that the data write speed can be increased, and the parameter configuration speed is further increased. And if the operation type identifier is used for indicating a new operation type, the corresponding write operation type is the new operation type, and if the operation type identifier is used for indicating a modification operation type, the corresponding write operation type is the modification operation type.
In the embodiment of the application, when the configuration operation on the system parameters on the parameter configuration interface is detected, the target parameter information corresponding to the configuration operation can be obtained, and the target application system corresponding to the target parameter information can also be determined. Then, the target parameter information may be stored in a target storage area corresponding to the target application system, and a target message topic corresponding to the target parameter information is determined based on the target application system, so that the target parameter information is pushed to the corresponding target application system by using the target message topic, thereby enabling the target application system to perform configuration of system parameters based on the target parameter information. Through the operation on the parameter configuration interface, the online parameter configuration can be realized, and the online parameter configuration of a plurality of application systems can also be realized simultaneously, so that the configuration process is simplified, and the configuration speed of the system parameters is accelerated; by uniformly storing the parameter information in a storage area, centralized management of the parameters can be realized, and subsequent maintenance and management are facilitated; the current configuration information can be pushed to a specified application system by using a message queue tool so as to realize the decoupling of the parameter configuration and the application system function, and the non-invasive realization of the real-time synchronization of the parameter configuration data can be ensured.
Referring to fig. 4, fig. 4 is a schematic flowchart of a system parameter configuration method according to an embodiment of the present application, where the system parameter configuration method is executable by the aforementioned storage device, and the system parameter configuration method includes the following steps:
s401: when the configuration operation of the system parameters on the parameter configuration interface is detected, target parameter information corresponding to the configuration operation is obtained.
S402: and determining a target application system corresponding to the target parameter information.
S403: and storing the target parameter information to a target storage area corresponding to the target application system, and determining a target message theme corresponding to the target parameter information based on the target application system.
S404: and pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure the system parameters based on the target parameter information.
S405: and receiving the parameter configuration state returned by the target application system.
In one implementation manner, the application system may serve as a consuming side of the message topic, and when the application system monitors that the corresponding message topic has message data, the application system may consume the parameter information written in the corresponding message topic, and write the parameter information into a local cache corresponding to the application system, so as to change the system parameter of the local application system. Then, the target application system may obtain the target parameter information when monitoring the target parameter information of the corresponding target message topic, so as to implement the configuration of the system parameter of the target application system. After the target application system successfully consumes the target parameter information in the target message topic, a confirmation result of successful consumption can be sent to the storage device, and after the storage device receives the confirmation result, the storage device can confirm that the target parameter information pushed by the message topic is successfully consumed. If the storage device does not receive the confirmation result, the information push operation can be performed until the confirmation result of the corresponding successful consumption sent by the target application system is received. The confirmation mechanism can well ensure the information consistency of the parameter information in the storage area and the local cache of the application system and also can ensure the reliability in the message transmission process.
The information push operation is to push the target parameter information to the corresponding target application system by reusing the target message theme.
In an implementation manner, the target application system may also feed back a corresponding parameter configuration condition to the storage device, so that the storage device may monitor the parameter configuration condition of the target application system, and determine whether the information push operation needs to be executed according to the parameter configuration condition. Wherein, the parameter configuration condition can be characterized based on the parameter configuration state, and the parameter configuration state can include: any one of a first parameter configuration state for indicating parameter configuration failure, a second parameter configuration state for indicating parameter configuration, and a third parameter configuration state for indicating parameter configuration completion.
S406: and detecting whether the parameter configuration state is the target parameter configuration state.
Wherein, the target parameter configuration state may include: the first parameter configuration state or the second parameter configuration state described above.
S407: and if the detection result is the target parameter configuration state, the target message theme is reused to push the target parameter information to the corresponding target application system.
In one implementation, if the detection result is the first parameter configuration state indicating that the parameter configuration fails, the target message topic may be reused to push the target parameter information to the corresponding target application system.
In one implementation, when the detection result is used for indicating a second parameter configuration state in the parameter configuration, whether to perform an information re-pushing operation may be further determined based on a preset re-pushing condition. For example, the preset condition may refer to that the second parameter configuration status received by the storage device exists for too long, such as may be due to some abnormal condition, such as a network failure, etc., then, in order to ensure that the target parameter information in the target message topic can be successfully consumed, an information push operation may be employed. In a specific implementation, when the target parameter configuration state is the second parameter configuration state, a time interval between the current time and the sending time may be determined first, where the sending time may include: and pushing the target parameter information to the corresponding target application system by using the target message theme. Then, it is determined whether the time interval exceeds a preset time interval. If it is determined that the time interval exceeds the preset time interval, the step of pushing the target parameter information to the corresponding target application system by reusing the target message topic may be performed. The preset time interval may be preset, for example, may be 7 seconds, 10 seconds, and the like, and the value may be determined based on the time spent on the historical parameter configuration, for example, the time spent on N parameter configurations before the current system parameter configuration operation may be obtained, and the longest time among the times spent on the N parameter configurations may be taken as the preset time interval. N may be any value such as 5, 8, etc., and is not limited in this application.
In an implementation manner, after receiving a parameter configuration state sent by a target application system, a storage device may also send the parameter configuration state to a terminal, so that the terminal displays the parameter configuration state on a parameter configuration interface of the terminal, and thus a parameter configuration manager may monitor a current parameter configuration condition of the target application system in real time. Based on this, the above-described information re-pushing operation may be triggered by a parameter configuration manager, for example, an information re-pushing control may be further included on the parameter configuration interface, when a target parameter configuration state is displayed on the parameter configuration interface, the parameter configuration manager may trigger the information re-pushing control, and after the terminal detects that the information re-pushing control is triggered, an information re-pushing request may be sent to the storage device, and after the storage device receives the information re-pushing operation, the information re-pushing operation may be executed.
For specific implementation of steps S401 to S404, reference may be made to the detailed description of steps S201 to S204 in the above embodiment, which is not described herein again.
In the embodiment of the application, when the configuration operation on the system parameters on the parameter configuration interface is detected, the target parameter information corresponding to the configuration operation can be obtained, and the target application system corresponding to the target parameter information can also be determined. Then, the target parameter information may be stored in a target storage area corresponding to the target application system, and a target message topic corresponding to the target parameter information is determined based on the target application system, so that the target parameter information is pushed to the corresponding target application system by using the target message topic, thereby enabling the target application system to perform configuration of system parameters based on the target parameter information. And the method can also receive a parameter configuration state returned by the target application system, detect whether the parameter configuration state is the target parameter configuration state, and execute information re-pushing operation under the condition that the detection result is the target parameter configuration state. By implementing the method, the parameters of the application system can be updated and monitored in real time, so that the parameter information can be successfully consumed by the application system, namely, the application system can successfully write the parameter information into the cache, and the configuration of the system parameters is realized.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a system parameter configuration apparatus according to an embodiment of the present disclosure. The system parameter configuration device comprises:
an obtaining unit 501, configured to, when a configuration operation on a system parameter on a parameter configuration interface is detected, obtain target parameter information corresponding to the configuration operation;
a first determining unit 502, configured to determine a target application system corresponding to the target parameter information;
a storage unit 503, configured to store the target parameter information in a target storage area corresponding to the target application system;
a second determining unit 504, configured to determine, based on the target application system, a target message topic corresponding to the target parameter information;
a pushing unit 505, configured to push the target parameter information to a corresponding target application system by using the target message topic, so that the target application system configures system parameters based on the target parameter information.
In an implementation manner, the pushing unit 505 is specifically configured to:
when the number of the target message themes corresponding to the target parameter information is one, writing the target parameter information into the target message theme, and pushing the target message theme written with the target parameter information to the target application system;
when the number of the target message themes corresponding to the target parameter information is multiple, the target parameter information is respectively written into each target message theme, and each target message theme respectively written into the target parameter information is pushed to a corresponding target application system.
In one implementation, the apparatus further includes a push unit 506, specifically configured to:
receiving a parameter configuration state returned by the target application system, wherein the parameter configuration state comprises: a first parameter configuration state used for indicating parameter configuration failure or a second parameter configuration state used for indicating parameter configuration;
detecting whether the parameter configuration state is the first parameter configuration state;
and if the detection result is the first parameter configuration state, the target message theme is reused to push the target parameter information to a corresponding target application system.
In one implementation, the nudging unit 506 is further configured to:
detecting whether the parameter configuration state is the second parameter configuration state;
if the detection result is the second parameter configuration state, determining a time interval between current time and sending time, wherein the sending time comprises: time for pushing the target parameter information to a corresponding target application system by using the target message theme;
determining whether the time interval exceeds a preset time interval;
and if the time interval is determined to exceed the preset time interval, the target parameter information is pushed to a corresponding target application system by reusing the target message theme.
In an implementation manner, the second determining unit 504 is specifically configured to:
acquiring a preset mapping relation between each application system and a message theme, wherein the mapping relation is determined based on the message theme subscribed by each application system;
and determining a target message theme corresponding to the target parameter information according to the mapping relation and the target application system.
In one implementation, the target parameter information includes a target parameter attribute and target parameter attribute data corresponding to the target parameter attribute; the storage unit 503 is specifically configured to:
determining whether the target parameter attribute exists in a target storage area corresponding to the target application system;
if the target parameter attribute does not exist in the target storage area, the target parameter attribute and the target parameter attribute data are stored in the target storage area in an associated manner;
if the target parameter attribute exists in the target storage area, determining historical parameter attribute data corresponding to the target parameter attribute from the target storage area, and matching the historical parameter attribute data with the target parameter attribute data;
and if the historical parameter attribute data is not matched with the target parameter attribute data, updating the historical parameter attribute data into the target parameter attribute data.
In an implementation manner, the obtaining unit 501 is further configured to:
acquiring a target operation type corresponding to the target parameter information stored in the target storage area, wherein the target operation type comprises: adding an operation type or modifying the operation type;
carrying an operation type identifier corresponding to the target operation type in the target parameter information;
the pushing unit 505 is specifically configured to:
and pushing the target parameter information carrying the operation type identifier to a corresponding target application system by using the target message theme.
It can be understood that the functions of the functional units of the system parameter configuration apparatus described in the embodiment of the present application may be specifically implemented according to the method in the method embodiment described in fig. 2 or fig. 4, and the specific implementation process may refer to the description related to the method embodiment in fig. 2 or fig. 4, which is not described herein again.
In the embodiment of the present application, when a configuration operation on a system parameter on a parameter configuration interface is detected, the obtaining unit 501 obtains target parameter information corresponding to the configuration operation; the first determining unit 502 determines a target application system corresponding to the target parameter information; the storage unit 503 stores the target parameter information in a target storage area corresponding to the target application system; the second determining unit 504 determines a target message topic corresponding to the target parameter information based on the target application system; the pushing unit 505 pushes the target parameter information to a corresponding target application system by using the target message topic, so that the target application system configures system parameters based on the target parameter information. By implementing the method, the online parameter configuration can be realized, and the online parameter configuration of a plurality of application systems can also be realized simultaneously, so that the configuration process is simplified, and the configuration speed of the system parameters is accelerated.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. The computer device may be the storage device in the above description, and the computer device may include: a processor 601, a memory 602, and a network interface 603. The processor 601, the memory 602, and the network interface 603 may exchange data therebetween.
The Processor 601 may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 602 may include both read-only memory and random access memory, and provides program instructions and data to the processor 601. A portion of the memory 602 may also include random access memory. Wherein, the processor 601 is configured to execute, when calling the program instruction:
when configuration operation of system parameters on a parameter configuration interface is detected, target parameter information corresponding to the configuration operation is obtained;
determining a target application system corresponding to the target parameter information;
storing the target parameter information to a target storage area corresponding to the target application system, and determining a target message theme corresponding to the target parameter information based on the target application system;
and pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure system parameters based on the target parameter information.
In one implementation, the processor 601 is further configured to:
in one implementation, the processor 601 is specifically configured to:
when the number of the target message themes corresponding to the target parameter information is one, writing the target parameter information into the target message theme, and pushing the target message theme written with the target parameter information to the target application system;
when the number of the target message themes corresponding to the target parameter information is multiple, the target parameter information is respectively written into each target message theme, and each target message theme respectively written into the target parameter information is pushed to a corresponding target application system.
In one implementation, the processor 601 is further configured to:
receiving a parameter configuration state returned by the target application system, wherein the parameter configuration state comprises: a first parameter configuration state used for indicating parameter configuration failure or a second parameter configuration state used for indicating parameter configuration;
detecting whether the parameter configuration state is the first parameter configuration state;
and if the detection result is the first parameter configuration state, the target message theme is reused to push the target parameter information to a corresponding target application system.
In one implementation, the processor 601 is further configured to:
detecting whether the parameter configuration state is the second parameter configuration state;
if the detection result is the second parameter configuration state, determining a time interval between current time and sending time, wherein the sending time comprises: the time for pushing the target parameter information to a corresponding target application system by using the target message theme;
determining whether the time interval exceeds a preset time interval;
and if the time interval is determined to exceed the preset time interval, the target parameter information is pushed to a corresponding target application system by reusing the target message theme.
In one implementation, the processor 601 is specifically configured to:
acquiring a preset mapping relation between each application system and a message theme, wherein the mapping relation is determined based on the message theme subscribed by each application system;
and determining a target message theme corresponding to the target parameter information according to the mapping relation and the target application system.
In one implementation, the target parameter information includes a target parameter attribute and target parameter attribute data corresponding to the target parameter attribute; the processor 601 is specifically configured to:
determining whether the target parameter attribute exists in a target storage area corresponding to the target application system;
if the target parameter attribute does not exist in the target storage area, the target parameter attribute and the target parameter attribute data are stored in the target storage area in an associated manner;
if the target parameter attribute exists in the target storage area, determining historical parameter attribute data corresponding to the target parameter attribute from the target storage area, and matching the historical parameter attribute data with the target parameter attribute data;
and if the historical parameter attribute data is not matched with the target parameter attribute data, updating the historical parameter attribute data into the target parameter attribute data.
In one implementation, the processor 601 is further configured to:
acquiring a target operation type corresponding to the target parameter information stored in the target storage area, wherein the target operation type comprises: adding an operation type or modifying the operation type;
carrying an operation type identifier corresponding to the target operation type in the target parameter information;
and pushing the target parameter information carrying the operation type identifier to a corresponding target application system by using the target message theme.
In a specific implementation, the processor 601 and the memory 602 described in this embodiment of the present application may execute the implementation manner described in the system parameter configuration method provided in fig. 2 or fig. 4 in this embodiment of the present application, and may also execute the implementation manner of the system parameter configuration device described in fig. 5 in this embodiment of the present application, which is not described herein again.
In this embodiment of the present application, when a configuration operation on a system parameter on a parameter configuration interface is detected, the processor 601 may obtain target parameter information corresponding to the configuration operation; determining a target application system corresponding to the target parameter information; storing the target parameter information to a target storage area corresponding to the target application system, and determining a target message theme corresponding to the target parameter information based on the target application system; and pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure system parameters based on the target parameter information. By implementing the method, the online parameter configuration can be realized, and the online parameter configuration of a plurality of application systems can also be realized simultaneously, so that the configuration process is simplified, and the configuration speed of the system parameters is accelerated.
The embodiment of the present application further provides a computer-readable storage medium, in which program instructions are stored, and when the program is executed, some or all of the steps of the system parameter configuration method in the embodiment corresponding to fig. 2 or fig. 4 may be included.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
It is emphasized that the data may also be stored in a node of a blockchain in order to further ensure the privacy and security of the data. The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The foregoing describes in detail a method, an apparatus, a computer device, and a storage medium for configuring system parameters provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. The system parameter configuration method is applied to a storage device, wherein the storage device is used for storing system parameter information of an application system, and the method comprises the following steps:
when configuration operation of system parameters on a parameter configuration interface is detected, target parameter information corresponding to the configuration operation is obtained;
determining a target application system corresponding to the target parameter information;
storing the target parameter information to a target storage area corresponding to the target application system, and determining a target message theme corresponding to the target parameter information based on the target application system;
and pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure system parameters based on the target parameter information.
2. The method of claim 1, wherein the pushing the target parameter information to the corresponding target application system using the target message topic comprises:
when the number of the target message themes corresponding to the target parameter information is one, writing the target parameter information into the target message theme, and pushing the target message theme written with the target parameter information to the target application system;
when the number of the target message themes corresponding to the target parameter information is multiple, the target parameter information is respectively written into each target message theme, and each target message theme respectively written into the target parameter information is pushed to a corresponding target application system.
3. The method according to claim 1 or 2, wherein after pushing the target parameter information to the corresponding target application system by using the target message topic, the method further comprises:
receiving a parameter configuration state returned by the target application system, wherein the parameter configuration state comprises: any one of a first parameter configuration state for indicating parameter configuration failure, a second parameter configuration state for indicating parameter configuration, and a third parameter configuration state for indicating parameter configuration completion;
detecting whether the parameter configuration state is a target parameter configuration state, wherein the target parameter configuration state comprises: the first parameter configuration state or the second parameter configuration state;
and if the detection result is the target parameter configuration state, the target message theme is reused to push the target parameter information to a corresponding target application system.
4. The method of claim 3, further comprising:
if the target parameter configuration state is the second parameter configuration state, determining a time interval between current time and sending time, where the sending time includes: time for pushing the target parameter information to a corresponding target application system by using the target message theme;
determining whether the time interval exceeds a preset time interval;
and if the time interval is determined to exceed the preset time interval, the step of pushing the target parameter information to the corresponding target application system by reusing the target message theme is executed.
5. The method of claim 1, wherein the determining a target message topic corresponding to the target parameter information based on the target application system comprises:
acquiring a preset mapping relation between each application system and a message theme, wherein the mapping relation is determined based on the message theme subscribed by each application system;
and determining a target message theme corresponding to the target parameter information according to the mapping relation and the target application system.
6. The method of claim 1, wherein the target parameter information comprises a target parameter attribute and target parameter attribute data corresponding to the target parameter attribute; the storing the target parameter information to a target storage area corresponding to the target application system includes:
determining whether the target parameter attribute exists in a target storage area corresponding to the target application system;
if the target parameter attribute does not exist in the target storage area, the target parameter attribute and the target parameter attribute data are stored in the target storage area in an associated manner;
if the target parameter attribute exists in the target storage area, determining historical parameter attribute data corresponding to the target parameter attribute from the target storage area, and matching the historical parameter attribute data with the target parameter attribute data;
and if the historical parameter attribute data is not matched with the target parameter attribute data, updating the historical parameter attribute data into the target parameter attribute data.
7. The method of claim 1, further comprising:
acquiring a target operation type corresponding to the target parameter information stored in the target storage area, wherein the target operation type comprises: adding an operation type or modifying the operation type;
carrying an operation type identifier corresponding to the target operation type in the target parameter information;
the pushing the target parameter information to the corresponding target application system by using the target message theme includes:
and pushing the target parameter information carrying the operation type identifier to a corresponding target application system by using the target message theme.
8. A system parameter configuration apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring target parameter information corresponding to configuration operation when the configuration operation of system parameters on a parameter configuration interface is detected;
the first determining unit is used for determining a target application system corresponding to the target parameter information;
the storage unit is used for storing the target parameter information to a target storage area corresponding to the target application system;
the second determining unit is used for determining a target message theme corresponding to the target parameter information based on the target application system;
and the pushing unit is used for pushing the target parameter information to a corresponding target application system by using the target message theme so as to enable the target application system to configure system parameters based on the target parameter information.
9. A computer device comprising a processor, a memory, wherein the memory is configured to store a computer program comprising program instructions, and wherein the processor is configured to invoke the program instructions to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-7.
CN202210143626.2A 2022-02-16 2022-02-16 System parameter configuration method and device, computer equipment and storage medium Pending CN114489863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210143626.2A CN114489863A (en) 2022-02-16 2022-02-16 System parameter configuration method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210143626.2A CN114489863A (en) 2022-02-16 2022-02-16 System parameter configuration method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114489863A true CN114489863A (en) 2022-05-13

Family

ID=81481810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210143626.2A Pending CN114489863A (en) 2022-02-16 2022-02-16 System parameter configuration method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114489863A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106453541A (en) * 2016-09-30 2017-02-22 厦门中控生物识别信息技术有限公司 Data synchronization method, server and data synchronization system
US20180365254A1 (en) * 2015-06-26 2018-12-20 Beijing Qihoo Technology Company Limited Method and apparatus for processing information flow data
CN110933145A (en) * 2019-11-14 2020-03-27 光通天下网络科技股份有限公司 Remote scheduling method, device, equipment and medium
CN111240768A (en) * 2020-03-11 2020-06-05 上海商米科技集团股份有限公司 Configuration parameter configuration method and device and computer storage medium
CN113108527A (en) * 2021-04-29 2021-07-13 四川虹美智能科技有限公司 Parameter configuration system and method for functional special area of intelligent refrigerator

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180365254A1 (en) * 2015-06-26 2018-12-20 Beijing Qihoo Technology Company Limited Method and apparatus for processing information flow data
CN106453541A (en) * 2016-09-30 2017-02-22 厦门中控生物识别信息技术有限公司 Data synchronization method, server and data synchronization system
CN110933145A (en) * 2019-11-14 2020-03-27 光通天下网络科技股份有限公司 Remote scheduling method, device, equipment and medium
CN111240768A (en) * 2020-03-11 2020-06-05 上海商米科技集团股份有限公司 Configuration parameter configuration method and device and computer storage medium
CN113108527A (en) * 2021-04-29 2021-07-13 四川虹美智能科技有限公司 Parameter configuration system and method for functional special area of intelligent refrigerator

Similar Documents

Publication Publication Date Title
CN107295080B (en) Data storage method applied to distributed server cluster and server
CN108287751B (en) Task execution method and device and distributed system
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
AU2014209697A1 (en) Method and system for using a recursive event listener on a node in hierarchical data structure
CN109167819B (en) Data synchronization system, method, device and storage medium
US20220222266A1 (en) Monitoring and alerting platform for extract, transform, and load jobs
CN112328448A (en) Zookeeper-based monitoring method, monitoring device, equipment and storage medium
CN111784318A (en) Data processing method and device, electronic equipment and storage medium
CN107729213B (en) Background task monitoring method and device
CN110933152B (en) Preheating method, device and system and electronic equipment
CN117608825A (en) Resource management method based on multi-cloud management platform and related equipment
CN114531373A (en) Node state detection method, node state detection device, equipment and medium
CN111427689B (en) Cluster keep-alive method and device and storage medium
CN113704037A (en) Equipment testing method and device, computer equipment and storage medium
CN113946427A (en) Task processing method, processor and storage medium for multi-operating system
CN114489863A (en) System parameter configuration method and device, computer equipment and storage medium
CN113965538B (en) Equipment state message processing method, device and storage medium
CN115086347A (en) Data synchronization method and device, electronic equipment and storage medium
CN114490135A (en) Task processing method and device, electronic equipment and storage medium
CN114185691A (en) Sidecar-based UDP multicast method and system
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN112099879A (en) Configuration information management method and device, computer equipment and storage medium
CN107783852B (en) Dump file generation method and terminal
CN112463887A (en) Data processing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination