CN114024833B - EMS back-end server switching method, system, equipment and storage medium - Google Patents

EMS back-end server switching method, system, equipment and storage medium Download PDF

Info

Publication number
CN114024833B
CN114024833B CN202210007449.5A CN202210007449A CN114024833B CN 114024833 B CN114024833 B CN 114024833B CN 202210007449 A CN202210007449 A CN 202210007449A CN 114024833 B CN114024833 B CN 114024833B
Authority
CN
China
Prior art keywords
migration
nth
ems
service system
data
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.)
Active
Application number
CN202210007449.5A
Other languages
Chinese (zh)
Other versions
CN114024833A (en
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.)
Shenzhen NYY Technology Co Ltd
Original Assignee
Shenzhen NYY Technology 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 Shenzhen NYY Technology Co Ltd filed Critical Shenzhen NYY Technology Co Ltd
Priority to CN202210007449.5A priority Critical patent/CN114024833B/en
Publication of CN114024833A publication Critical patent/CN114024833A/en
Application granted granted Critical
Publication of CN114024833B publication Critical patent/CN114024833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention relates to the field of server switching, and discloses a method, a system, equipment and a storage medium for switching a back-end server of an EMS (enhanced message service). The method comprises the following steps: the migration service system sends a system migration instruction to the EMS system; the EMS system uploads heartbeat signals to the main service system and the migration service system; the migration service system sends an Nth migration control instruction to the EMS system; the EMS system transmits the Nth migration data to the migration service system and the main service system; the main service system deletes the information data of the Nth control device; the migration service system adds the information data of the Nth control device according to the Nth migration data, and marks the Nth control device in the migration control table as a migration state; judging whether the control devices in the migration control table are all in a migration state; if not, assigning the value of N +1 to N, and resending the Nth migration control instruction to the EMS system; if yes, sending a switching instruction to the EMS system; the EMS system stops uploading the heartbeat signal to the main service system.

Description

EMS back-end server switching method, system, equipment and storage medium
Technical Field
The present invention relates to the field of server switching, and in particular, to a method, a system, a device, and a storage medium for switching a backend server of an EMS.
Background
The EMS system is a modern power grid dispatching automation system, and different EMS energy management systems can be supported by a background server. The background servers are upgraded sometimes, and in order to maintain the operation of the EMS energy management system, different background servers are switched to perform resource maintenance and electric energy allocation control on the EMS energy management system.
However, the EMS energy management system has many additional control devices, and if the switching is performed directly, some additional control devices may lose control sometimes, and at this time, manual work is needed to assist in reactivation on site, and the switching process is not very smooth. Therefore, a technology is needed to solve the technical problem that the additional control device is lost during the switching process of the backend server of the current EMS system.
Disclosure of Invention
The invention mainly aims to solve the technical problem that an additional control device is lost in the switching process of a back-end server of the current EMS system.
A first aspect of the present invention provides a method for switching a backend server of an EMS, where the method for switching the backend server of the EMS is applied to a system for switching the backend server of the EMS, and the system for switching the backend server of the EMS includes: the EMS system is monitored by the master service system, and the back-end server switching method of the EMS comprises the following steps:
the migration service system sends a system migration instruction to the EMS system;
the EMS system receives the system migration instruction and uploads a heartbeat signal to the main service system and the migration service system;
the migration service system receives the heartbeat signal, and sends an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table according to the heartbeat signal, wherein N is a positive integer;
the EMS system receives the Nth migration control instruction and transmits Nth migration data corresponding to the Nth control device of the Nth migration control instruction to the migration service system and the main service system;
the main service system receives the Nth migration data and deletes the information data of the Nth control device according to the Nth migration data;
the migration service system receives the Nth state information, adds the information data of the Nth control device according to the Nth migration data, and marks the Nth control device in the migration control table as a migration state;
judging whether the control devices in the migration control table are all in a migration state;
if the unevenness is in a migration state, assigning the value of N +1 to N, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table again;
if the states are the transition states, a switching instruction is sent to the EMS system;
and the EMS system receives the switching instruction and stops uploading heartbeat signals to the main service system.
Optionally, in a first implementation manner of the first aspect of the present invention, the receiving, by the EMS system, the nth migration control instruction, and transmitting, to the migration service system and the main service system, nth migration data of an nth control device corresponding to the nth migration control instruction includes:
the EMS system receives the Nth migration control instruction;
judging whether an Nth control device corresponding to the Nth migration control instruction exists or not;
and if the data does not exist, sending the Nth migration data with empty entity data to the migration service system and the main service system.
Optionally, in a second implementation manner of the first aspect of the present invention, the determining whether all the control devices in the migration control table are in the migration state includes:
reading device state data corresponding to the control device in the migration control table to obtain a device state data set;
matching the device state data set according to a preset migration identifier to obtain a matching value set;
and judging whether the matching value sets are all the matching values corresponding to the migration state.
Optionally, in a third implementation manner of the first aspect of the present invention, the determining whether the matching value sets are all matching values corresponding to the migration status includes:
combining the data in the matching value set to obtain a matching total value;
and judging whether the matching total value is a preset migration total value or not.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the sending an nth migration control instruction to the EMS system based on an nth control device in a preset migration control table includes:
and assigning N to be 1, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the deleting, according to the nth migration data, information data of the nth control device includes:
reading a server identification set in the Nth migration data, and matching the server identification set according to a preset main service identification to obtain a first matching identification set;
and executing an instruction corresponding to the first matching identifier in the first matching identifier set so as to delete the information data of the Nth control device.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the adding information data of the nth control device according to the nth migration data, and marking the nth control device as a migration state includes:
reading a server identification set in the Nth migration data, and matching the server identification set according to a preset migration service identification to obtain a second matching identification set;
and executing an instruction corresponding to the second matching identifier in the second matching identifier set so as to add the information data of the Nth control device.
A second aspect of the present invention provides a back-end server switching system of an EMS, the back-end server switching system of the EMS including:
the system comprises an EMS system, a main service system and a migration service system, wherein the EMS system is monitored by the main service system;
the migration service system is used for sending a system migration instruction to the EMS system;
the EMS system is used for receiving the system migration instruction and uploading heartbeat signals to the main service system and the migration service system;
the migration service system is configured to receive the heartbeat signal, and send an nth migration control instruction to the EMS system based on an nth control device in a preset migration control table according to the heartbeat signal, where N is a positive integer;
the EMS system is used for receiving the Nth migration control instruction and transmitting the Nth migration data of the Nth control device corresponding to the Nth migration control instruction to the migration service system and the main service system;
the main service system is used for receiving the Nth migration data and deleting the information data of the Nth control device according to the Nth migration data;
the migration service system is configured to receive the nth state information, add information data of the nth control device according to the nth migration data, and mark the nth control device in the migration control table as a migration state;
judging whether the control devices in the migration control table are all in a migration state;
if the unevenness is in a migration state, assigning the value of N +1 to N, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table again;
if the states are the transition states, a switching instruction is sent to the EMS system;
and the EMS system is used for receiving the switching instruction and stopping uploading heartbeat signals to the main service system.
A third aspect of the present invention provides a backend server switching apparatus of an EMS, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor invokes the instructions in the memory to cause the backend server switching apparatus of the EMS to perform the backend server switching method of the EMS described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-described back-end server switching method of the EMS.
In the embodiment of the invention, a plurality of devices controlled by an EMS system are gradually switched to a migration service system for control, and are controlled by a main service system when the control devices are not switched yet, so that the modification and adjustment of a back-end server of the control device are gradually realized, and the server switching of the EMS system is completed after all the systems of the EMS system are modified in a background, thereby solving the technical problem that an additional control device is lost in the switching process of the back-end server of the current EMS system.
Drawings
Fig. 1 is a diagram illustrating an embodiment of a backend server switching method of EMS according to an embodiment of the present invention;
FIG. 2 is a diagram of an embodiment of a back-end server switching system of the EMS according to the embodiment of the invention;
FIG. 3 is a diagram of another embodiment of a back-end server switching system of the EMS according to the embodiment of the invention;
fig. 4 is a diagram of an embodiment of a switching device of a backend server of the EMS according to the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a device, equipment and a storage medium for switching a back-end server of an EMS (enhanced message service).
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To facilitate understanding, a detailed flow of an embodiment of the present invention is described below, with reference to fig. 1, an embodiment of a back-end server switching method of an EMS according to an embodiment of the present invention, where the back-end server switching method of the EMS is applied to a back-end server switching system of the EMS, and the back-end server switching system of the EMS includes: the EMS system is monitored by the master service system, and the back-end server switching method of the EMS comprises the following steps:
101. the migration service system sends a system migration instruction to the EMS system;
102. the EMS system receives a system migration instruction and uploads a heartbeat signal to the main service system and the migration service system;
in the step 101-102, when the migration service system does not send the migration command to the EMS system, the EMS system only transmits the heartbeat signal to the main service system. After the migration service system transmits the migration instruction to the EMS system, the EMS system uploads a heartbeat signal to the main service system and the migration service system to prepare for gradually migrating, so that the two backgrounds are ensured to be in the migration process, and the condition that the control device is not lost during the operation of the control device can be supported.
103. The migration service system receives the heartbeat signal, and sends an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table according to the heartbeat signal, wherein N is a positive integer;
in this embodiment, after receiving the heartbeat signal, the migration service system sends the device requiring migration step by step in the migration control table. The control device in the migration control table is a series of device systems such as an air conditioner, a PCS device, a controller, a BMS, an STS device, a diesel generator, an electric meter, an IO module, a sensor, and the like, and each device system is to be individually switched, and one device system is migrated at a time.
Further, at 103, the following steps are performed:
1031. and assigning N to be 1, and sending an Nth migration control instruction to the EMS system based on the Nth control device in the preset migration control table.
In this embodiment, migration is performed from the first device in the migration control table until the last migration device data, and the control device is tightly sorted in the migration control table and performs migration switching step by step.
104. The EMS system receives the Nth migration control instruction and transmits the Nth migration data corresponding to the Nth control device of the Nth migration control instruction to the migration service system and the main service system;
in the present embodiment, after the EMS system receives the nth transition control command, the nth transition control command indicates control transition of the sensor, and thereby control transition data { { a: 8, -1, -2, -3, -4, -5, -6}, { B: 8, 1, 2, 3, 4, 5, 6} }, wherein A represents a main service system, B represents a migration service system, 1 represents adding power grid capacity expansion enabling data, 2 represents adding anti-reflux control enabling data, 3 represents adding anti-overload control enabling data, 4 represents adding load imbalance compensation enabling data, 5 represents adding local power factor enabling data, 6 represents adding network protection control enabling data, the negative sign is deleting corresponding data, and 1-6 are followed by entity data.
Further, at 104, the following steps are performed:
1041. the EMS system receives an Nth migration control instruction;
1042. judging whether an Nth control device corresponding to the Nth migration control instruction exists or not;
1043. and if the data does not exist, transmitting the Nth migration data with empty entity data to the migration service system and the main service system.
In the 1041-1043 step, after receiving the nth migration control instruction, the EMS system checks whether there is a control device, i.e., a sensor, first, if there is no control device, i.e., if there is feedback data, the feedback entity data is empty, and the nth migration data is { { a: 8, 0}, { B: 8, 0 is indicated as null.
105. The main service system receives the Nth migration data and deletes the information data of the Nth control device according to the Nth migration data;
in the present embodiment, execution of { { a: 8, -1, -2, -3, -4, -5, -6}, { B: the data instruction marked by A in 8, 1, 2, 3, 4, 5, 6} }.
Further, at 105, the following steps may be performed:
1051. reading a server identification set in the Nth migration data, and matching the server identification set according to a preset main service identification to obtain a first matching identification set;
1052. and executing an instruction corresponding to the first matching identifier in the first matching identifier set so as to delete the information data of the Nth control device.
In the 1051-1052 step, the identifications of a and B are first identified, and in practice, a and B may appear alternately. After taking the server identification sets of a and B, matching the main server identification, where it should be noted that a may include a1、A2、A3、…、AnEqual number of master servers, and one example is { { A { [ A ]1:8,-1},{ A2:8,-2},{ A3:8,-3,-4},{ A4:8,-5},{ A5: 8, -6}, here recorded by different servers to the control means, obviously a1-A5The data instructions of (1) are executed to completion.
106. The migration service system receives the Nth state information, adds the information data of the Nth control device according to the Nth migration data, and marks the Nth control device in the migration control table as a migration state;
in the present embodiment, execution of { { a: 8, -1, -2, -3, -4, -5, -6}, { B: the data instruction after B mark in 8, 1, 2, 3, 4, 5, 6} }.
Further, at 106, the following steps may be performed:
1061. reading a server identification set in the Nth migration data, and matching the server identification set according to a preset migration service identification to obtain a second matching identification set;
1062. and executing an instruction corresponding to the second matching identifier in the second matching identifier set so as to add the information data of the Nth control device.
In the 1061-1062 steps, the migration service system of B may be a plurality of B1、B2、B3、…、BnThereby reading A in the Nth migration data1、A2、A3、…、AnAnd B1、B2、B3、…、BnThen match out B1、B2、B3、…、BnThen execute B1、B2、B3、…、BnAnd adding various data into the migration service system according to the corresponding data parameters.
107. Judging whether the control devices in the migration control table are all in a migration state;
in this embodiment, the control devices in the migration control table include a series of device systems such as an air conditioner, a PCS device, a controller, a BMS, an STS device, a diesel generator, an electricity meter, an IO module, and a sensor, and it is determined whether or not all of the device systems are migrated.
Further, the following steps may also be performed at 107:
1071. reading device state data corresponding to a control device in a migration control table to obtain a device state data set;
1072. matching the device state data set according to the preset migration identifier to obtain a matching value set;
1073. and judging whether the matching value sets are all the matching values corresponding to the migration states.
In step 1071-. The identification that needs to be matched is: and (4) migrating, wherein the matching success is 1, and the matching failure is 0, so as to generate a {1, 0, 0, 0, 0, 0, 0} matching value set.
The data in the {1, 0, 0, 0, 0, 0, 0, 0} matching value set is not all 1, and thus it is assumed that all migration has not been completed.
Further, the following steps may also be performed at 1073:
10731. combining the data in the matching value set to obtain a matching total value;
10732. and judging whether the matching total value is a preset migration total value or not.
In step 10731-.
108. If the unevenness is in a migration state, assigning the value of N +1 to N, and sending an Nth migration control instruction to the EMS system based on the Nth control device in the preset migration control table again;
in this embodiment, if there is not all transitions, the value of N is increased by 1, and the step of sending the nth transition control instruction to the EMS system to return to 104 is repeated again based on the nth control device in the preset transition control table, where N = N +1 may be the basis for executing the iteration.
109. If the states are the transition states, a switching instruction is sent to the EMS system;
110. the EMS system receives the switching instruction and stops uploading the heartbeat signal to the main service system.
In the step 109-110, the switching instruction indicates that the migration service system has completely added the control device of the EMS system to the registry, and both the history data of the control device and the data of the migration process are written. After receiving the switching instruction, the EMS system does not upload the heartbeat signal to the main service system any more, and the main service system completely leaves after a period of time, so that data transmission with the EMS system is avoided, and the switching of the background server is completed.
In the embodiment of the invention, a plurality of devices controlled by an EMS system are gradually switched to a migration service system for control, and are controlled by a main service system when the control devices are not switched yet, so that the modification and adjustment of a back-end server of the control device are gradually realized, and the server switching of the EMS system is completed after all the systems of the EMS system are modified in a background, thereby solving the technical problem that an additional control device is lost in the switching process of the back-end server of the current EMS system.
With reference to fig. 2, a method for switching a backend server of an EMS according to an embodiment of the present invention is described above, and a device for switching a backend server of an EMS according to an embodiment of the present invention is described below, where the system for switching a backend server of an EMS according to an embodiment of the present invention includes:
the system comprises an EMS system 201, a master service system 202 and a migration service system 203, wherein the EMS system 201 is monitored by the master service system 202;
the migration service system 203 is configured to send a system migration instruction to the EMS system;
the EMS system 201 is configured to receive the system migration instruction and upload a heartbeat signal to the main service system and the migration service system;
the migration service system 203 is configured to receive the heartbeat signal, and send an nth migration control instruction to the EMS system based on an nth control device in a preset migration control table according to the heartbeat signal, where N is a positive integer;
the EMS system 201 is configured to receive the nth migration control instruction, and transmit nth migration data, corresponding to the nth control device, of the nth migration control instruction to the migration service system and the main service system;
the main service system 202 is configured to receive the nth migration data, and delete the information data of the nth control device according to the nth migration data;
the migration service system 203 is configured to receive the nth state information, add information data of the nth control device according to the nth migration data, and mark the nth control device in the migration control table as a migration state;
judging whether the control devices in the migration control table are all in a migration state;
if the unevenness is in a migration state, assigning the value of N +1 to N, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table again;
if the states are the transition states, a switching instruction is sent to the EMS system;
the EMS system 201 is configured to receive the switching instruction and stop uploading the heartbeat signal to the main service system.
In the embodiment of the invention, a plurality of devices controlled by an EMS system are gradually switched to a migration service system for control, and are controlled by a main service system when the control devices are not switched yet, so that the modification and adjustment of a back-end server of the control device are gradually realized, and the server switching of the EMS system is completed after all the systems of the EMS system are modified in a background, thereby solving the technical problem that an additional control device is lost in the switching process of the back-end server of the current EMS system.
Referring to fig. 3, in another embodiment of a back-end server switching system of an EMS according to the embodiment of the present invention, the back-end server switching system of the EMS includes:
the system comprises an EMS system 201, a master service system 202 and a migration service system 203, wherein the EMS system 201 is monitored by the master service system 202;
the migration service system 203 is configured to send a system migration instruction to the EMS system;
the EMS system 201 is configured to receive the system migration instruction and upload a heartbeat signal to the main service system and the migration service system;
the migration service system 203 is configured to receive the heartbeat signal, and send an nth migration control instruction to the EMS system based on an nth control device in a preset migration control table according to the heartbeat signal, where N is a positive integer;
the EMS system 201 is configured to receive the nth migration control instruction, and transmit nth migration data, corresponding to the nth control device, of the nth migration control instruction to the migration service system and the main service system;
the main service system 202 is configured to receive the nth migration data, and delete the information data of the nth control device according to the nth migration data;
the migration service system 203 is configured to receive the nth state information, add information data of the nth control device according to the nth migration data, and mark the nth control device in the migration control table as a migration state;
judging whether the control devices in the migration control table are all in a migration state;
if the unevenness is in a migration state, assigning the value of N +1 to N, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table again;
if the states are the transition states, a switching instruction is sent to the EMS system;
the EMS system 201 is configured to receive the switching instruction and stop uploading the heartbeat signal to the main service system.
Wherein, the EMS system 201 is specifically configured to:
receiving the Nth migration control instruction;
judging whether an Nth control device corresponding to the Nth migration control instruction exists or not;
and if the data does not exist, sending the Nth migration data with empty entity data to the migration service system and the main service system.
Wherein the migration service system 203 comprises:
a reading unit 2031, configured to read device state data corresponding to the control device in the migration control table, to obtain a device state data set;
a matching unit 2032, configured to perform matching processing on the device state data set according to a preset migration identifier, to obtain a matching value set;
a determining unit 2033, configured to determine whether the matching value sets are all matching values corresponding to the transition state.
The determining unit 2033 is specifically configured to:
combining the data in the matching value set to obtain a matching total value;
and judging whether the matching total value is a preset migration total value or not.
The migration service system 203 is specifically configured to:
and assigning N to be 1, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table.
Wherein, the main service system 202 is specifically configured to:
reading a server identification set in the Nth migration data, and matching the server identification set according to a preset main service identification to obtain a first matching identification set;
and executing an instruction corresponding to the first matching identifier in the first matching identifier set so as to delete the information data of the Nth control device.
The migration service system 203 is specifically configured to:
reading a server identification set in the Nth migration data, and matching the server identification set according to a preset migration service identification to obtain a second matching identification set;
and executing an instruction corresponding to the second matching identifier in the second matching identifier set so as to add the information data of the Nth control device.
In the embodiment of the invention, a plurality of devices controlled by an EMS system are gradually switched to a migration service system for control, and are controlled by a main service system when the control devices are not switched yet, so that the modification and adjustment of a back-end server of the control device are gradually realized, and the server switching of the EMS system is completed after all the systems of the EMS system are modified in a background, thereby solving the technical problem that an additional control device is lost in the switching process of the back-end server of the current EMS system.
Fig. 2 and 3 above describe the backend server switching system of the EMS in the embodiment of the present invention in detail from the perspective of the modular functional entity, and the backend server switching device of the EMS in the embodiment of the present invention in detail from the perspective of hardware processing.
Fig. 4 is a schematic structural diagram of a backend server switching apparatus of an EMS according to an embodiment of the present invention, where the backend server switching apparatus 400 of the EMS may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 410 (e.g., one or more processors) and a memory 420, and one or more storage media 430 (e.g., one or more mass storage devices) storing applications 433 or data 432. Memory 420 and storage medium 430 may be, among other things, transient or persistent storage. The program stored in the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations in the backend server switching apparatus 400 of the EMS. Further, the processor 410 may be configured to communicate with the storage medium 430, and perform a series of instruction operations in the storage medium 430 on the backend server switching apparatus 400 of the EMS.
The EMS-based backend server switching apparatus 400 may also include one or more power supplies 440, one or more wired or wireless network interfaces 450, one or more input-output interfaces 460, and/or one or more operating systems 431, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the configuration of the EMS backend server switching device illustrated in fig. 4 does not constitute a limitation to EMS-based backend server switching devices, and may include more or fewer components than those illustrated, or some components in combination, or a different arrangement of components.
The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium, and may also be a volatile computer-readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the back-end server switching method of the EMS.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses, and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for switching back-end servers of an Energy Management System (EMS) is applied to a back-end server switching system of the EMS, and the back-end server switching system of the EMS comprises the following steps: the EMS system is monitored by the main service system, and the switching method of the back-end server of the energy management system EMS comprises the following steps:
the migration service system sends a system migration instruction to the EMS system;
the EMS system receives the system migration instruction and uploads a heartbeat signal to the main service system and the migration service system;
the migration service system receives the heartbeat signal, and sends an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table according to the heartbeat signal, wherein N is a positive integer;
the EMS system receives the Nth migration control instruction and transmits Nth migration data corresponding to the Nth control device of the Nth migration control instruction to the migration service system and the main service system;
the main service system receives the Nth migration data and deletes the information data of the Nth control device according to the Nth migration data;
the migration service system receives the Nth migration data, adds information data of the Nth control device according to the Nth migration data, and marks the Nth control device in the migration control table as a migration state;
judging whether the control devices in the migration control table are all in a migration state;
if the unevenness is in a migration state, assigning the value of N +1 to N, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table again;
if the states are the transition states, a switching instruction is sent to the EMS system;
and the EMS system receives the switching instruction and stops uploading heartbeat signals to the main service system.
2. The method of claim 1, wherein the receiving, by the EMS system, the nth migration control command and transmitting nth migration data corresponding to an nth control device to the migration service system and the main service system according to the nth migration control command comprises:
the EMS system receives the Nth migration control instruction;
judging whether an Nth control device corresponding to the Nth migration control instruction exists or not;
and if the data does not exist, sending the Nth migration data with empty entity data to the migration service system and the main service system.
3. The method of claim 1, wherein the determining whether the control devices in the migration control table are all in a migration state comprises:
reading device state data corresponding to the control device in the migration control table to obtain a device state data set;
matching the device state data set according to a preset migration identifier to obtain a matching value set;
and judging whether the matching value sets are all the matching values corresponding to the migration state.
4. The method of claim 3, wherein the determining whether the matching value sets are all matching values corresponding to the migration status comprises:
combining the data in the matching value set to obtain a matching total value;
and judging whether the matching total value is a preset migration total value or not.
5. The method of claim 1, wherein the sending an nth migration control command to the EMS system based on an nth control device in a preset migration control table comprises:
and assigning N to be 1, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table.
6. The method of claim 1, wherein the deleting the information data of the nth control device according to the nth migration data comprises:
reading a server identification set in the Nth migration data, and matching the server identification set according to a preset main service identification to obtain a first matching identification set;
and executing an instruction corresponding to the first matching identifier in the first matching identifier set so as to delete the information data of the Nth control device.
7. The method for switching back-end servers of EMS according to claim 1, wherein the adding the information data of the nth controlling device according to the nth migration data and marking the nth controlling device as a migration status comprises:
reading a server identification set in the Nth migration data, and matching the server identification set according to a preset migration service identification to obtain a second matching identification set;
and executing an instruction corresponding to the second matching identifier in the second matching identifier set so as to add the information data of the Nth control device.
8. A back-end server switching system of an energy management system EMS, comprising:
the system comprises an EMS system, a main service system and a migration service system, wherein the EMS system is monitored by the main service system;
the migration service system is used for sending a system migration instruction to the EMS system;
the EMS system is used for receiving the system migration instruction and uploading heartbeat signals to the main service system and the migration service system;
the migration service system is configured to receive the heartbeat signal, and send an nth migration control instruction to the EMS system based on an nth control device in a preset migration control table according to the heartbeat signal, where N is a positive integer;
the EMS system is used for receiving the Nth migration control instruction and transmitting the Nth migration data of the Nth control device corresponding to the Nth migration control instruction to the migration service system and the main service system;
the main service system is used for receiving the Nth migration data and deleting the information data of the Nth control device according to the Nth migration data;
the migration service system is configured to receive the nth migration data, add information data of the nth control device according to the nth migration data, and mark the nth control device in the migration control table as a migration state;
judging whether the control devices in the migration control table are all in a migration state;
if the unevenness is in a migration state, assigning the value of N +1 to N, and sending an Nth migration control instruction to the EMS system based on an Nth control device in a preset migration control table again;
if the states are the transition states, a switching instruction is sent to the EMS system;
and the EMS system is used for receiving the switching instruction and stopping uploading heartbeat signals to the main service system.
9. A back-end server switching device of an EMS, comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invokes the instructions in the memory to cause the backend server switching apparatus of the EMS to perform the backend server switching method of the energy management system, EMS, of any of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the back-end server switching method of an energy management system, EMS, according to any one of claims 1 to 7.
CN202210007449.5A 2022-01-06 2022-01-06 EMS back-end server switching method, system, equipment and storage medium Active CN114024833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210007449.5A CN114024833B (en) 2022-01-06 2022-01-06 EMS back-end server switching method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210007449.5A CN114024833B (en) 2022-01-06 2022-01-06 EMS back-end server switching method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114024833A CN114024833A (en) 2022-02-08
CN114024833B true CN114024833B (en) 2022-04-01

Family

ID=80069700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210007449.5A Active CN114024833B (en) 2022-01-06 2022-01-06 EMS back-end server switching method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114024833B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544555A (en) * 2013-08-22 2014-01-29 国家电网公司 Uniform resource management platform for automatic power grid dispatch system
CN103631652A (en) * 2012-08-28 2014-03-12 中兴通讯股份有限公司 Method and system for achieving virtual machine migration
CN106528786A (en) * 2016-11-08 2017-03-22 国网山东省电力公司电力科学研究院 Method and system for rapidly transferring multi-source heterogeneous power grid big data to HBase
CN110326271A (en) * 2017-02-22 2019-10-11 微软技术许可有限责任公司 Client is migrated between servers
CN110597598A (en) * 2019-09-16 2019-12-20 电子科技大学广东电子信息工程研究院 Control method for virtual machine migration in cloud environment
CN111194054A (en) * 2018-11-15 2020-05-22 中兴通讯股份有限公司 User equipment migration method, centralized unit, distributed unit and system
CN111917886A (en) * 2020-08-14 2020-11-10 深圳市欧瑞博科技股份有限公司 Intelligent device data migration method and device and intelligent device
CN111984395A (en) * 2019-05-22 2020-11-24 中移(苏州)软件技术有限公司 Data migration method and system, and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210389976A1 (en) * 2020-06-11 2021-12-16 Capital One Services, Llc Techniques to facilitate a migration process to cloud storage

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631652A (en) * 2012-08-28 2014-03-12 中兴通讯股份有限公司 Method and system for achieving virtual machine migration
CN103544555A (en) * 2013-08-22 2014-01-29 国家电网公司 Uniform resource management platform for automatic power grid dispatch system
CN106528786A (en) * 2016-11-08 2017-03-22 国网山东省电力公司电力科学研究院 Method and system for rapidly transferring multi-source heterogeneous power grid big data to HBase
CN110326271A (en) * 2017-02-22 2019-10-11 微软技术许可有限责任公司 Client is migrated between servers
CN111194054A (en) * 2018-11-15 2020-05-22 中兴通讯股份有限公司 User equipment migration method, centralized unit, distributed unit and system
CN111984395A (en) * 2019-05-22 2020-11-24 中移(苏州)软件技术有限公司 Data migration method and system, and computer readable storage medium
CN110597598A (en) * 2019-09-16 2019-12-20 电子科技大学广东电子信息工程研究院 Control method for virtual machine migration in cloud environment
CN111917886A (en) * 2020-08-14 2020-11-10 深圳市欧瑞博科技股份有限公司 Intelligent device data migration method and device and intelligent device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
海量数据库迁移与升级;楼宏良等;《计算机时代》;20120615(第06期);全文 *
电网调度自动化系统共线升级及搬迁;黄东;《电工技术》;20090210(第02期);全文 *

Also Published As

Publication number Publication date
CN114024833A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
EP3876501B1 (en) Load balanced network file accesses
CN103309946B (en) Multimedia file processing method, Apparatus and system
CN103324495A (en) Method and system for data center server boot management
DE112011101705T5 (en) Migrate virtual machines between networked servers after detecting the degradation of network connection functionality
CN106293934B (en) A kind of cluster system management optimization method and platform
CN111818159A (en) Data processing node management method, device, equipment and storage medium
CN104657150A (en) Automatic operation and maintenance method under cluster environment
CN105900068A (en) Path management system, device and method
CN114024833B (en) EMS back-end server switching method, system, equipment and storage medium
JP2018068017A (en) Communication method, central control device, and individual control device
CN105849699B (en) Method for controlling data center architecture equipment
CN110958139B (en) Network control method, orchestrator, controller, and computer-readable storage medium
CN108170490A (en) A kind of IMA system datas loading framework and loading method
CN111052011B (en) Controller, control method, and recording medium
CN105579920A (en) Programmable controller and control method for programmable controller
JPH07295943A (en) Method for updating program
JP2552907B2 (en) Cooperative distributed control method
CN113467902A (en) Task scheduling method and device combining RPA and AI, client and server
KR920004061B1 (en) A system for reconstructing i/o control system
CN103327127B (en) Distributed system drives working method and device
CN212723742U (en) Desulfurization DCS control system
JP3321359B2 (en) Processing control system
CN115509680A (en) Information processing system
JP2001051838A (en) Software distribution system
JPH10187455A (en) Software distributing method and computer network system for applying the same

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
GR01 Patent grant
GR01 Patent grant