CN113364122B - Power grid monitoring system channel distribution method based on server instance expansion - Google Patents

Power grid monitoring system channel distribution method based on server instance expansion Download PDF

Info

Publication number
CN113364122B
CN113364122B CN202110626808.0A CN202110626808A CN113364122B CN 113364122 B CN113364122 B CN 113364122B CN 202110626808 A CN202110626808 A CN 202110626808A CN 113364122 B CN113364122 B CN 113364122B
Authority
CN
China
Prior art keywords
server instance
remote terminal
terminal unit
channel
server
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
CN202110626808.0A
Other languages
Chinese (zh)
Other versions
CN113364122A (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.)
Guangdong Power Grid Co Ltd
Zhuhai Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Zhuhai Power Supply Bureau of Guangdong Power Grid 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 Guangdong Power Grid Co Ltd, Zhuhai Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202110626808.0A priority Critical patent/CN113364122B/en
Publication of CN113364122A publication Critical patent/CN113364122A/en
Application granted granted Critical
Publication of CN113364122B publication Critical patent/CN113364122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00004Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by the power network being locally controlled

Abstract

The application relates to a power grid monitoring system channel distribution method based on server instance capacity expansion, which comprises the following steps: in response to a capacity expansion request sent by a first server instance, determining a first remote terminal unit connected with the first server instance; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel; obtaining access information from a third server instance, and determining whether the third server instance is accessed successfully according to the access information; when the access is successful, a new first standby channel is established between the first remote terminal unit and the third server instance, and the first standby channel between the first remote terminal unit and the first server instance is closed, so that the automatic reasonable scheduling of a data transmission channel is realized, the scheduling efficiency is improved, the operation is simplified, and the operation is more intelligent and simple.

Description

Power grid monitoring system channel distribution method based on server instance expansion
Technical Field
The present application relates to the field of digital power grid technologies, and in particular, to a method and an apparatus for allocating channels of a power grid monitoring system based on server instance capacity expansion, a power grid monitoring system, a computer device, and a storage medium.
Background
For a front-end system for data acquisition in a digital power grid, the front-end system often includes a plurality of Remote Terminal Units (RTUs) and a plurality of server instances, where the RTUs are responsible for acquiring and transmitting data to the server instances, and for each RTU, in order to prevent data loss, a main channel and a standby channel are often set at the same time, where each RTU is connected to different server instances through the main channel and the standby channel.
However, when the server instance needs to be extended, all data transmission channels are often required to be scheduled manually, and the operation is cumbersome.
Disclosure of Invention
Therefore, in order to solve the technical problem, it is necessary to provide a power grid monitoring system channel allocation method and apparatus based on server instance capacity expansion, a power grid monitoring system, a computer device, and a storage medium.
A power grid monitoring system channel distribution method based on server instance capacity expansion is applied to a scheduling unit in a power grid monitoring system, the power grid monitoring system comprises a plurality of remote terminal units and a plurality of server instances, and the method comprises the following steps:
in response to a capacity expansion request sent by a first server instance, determining a first remote terminal unit connected with the first server instance; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel;
obtaining access information from a third server instance, and determining whether the third server instance is accessed successfully according to the access information;
when the access is successful, a new first backup path is established between the first remote terminal unit and the third server instance, and the first backup path between the first remote terminal unit and the first server instance is closed.
In one embodiment, a plurality of first remote terminal units are connected to the first server instance,
said establishing a new first backup path between said first remote terminal unit and said third server instance and closing said first backup path between said first remote terminal unit and said first server instance when said access is successful, comprising:
when the access is successful, determining the current overload corresponding to the first server instance; the overload capacity is the load capacity of the current load capacity of the first server example exceeding the preset load capacity;
determining a target first remote terminal unit matched with the overload capacity according to the data volume to be sent of each first remote terminal unit;
establishing a new first standby channel between the target first remote terminal unit and the third server instance, and closing the first standby channel between the target first remote terminal unit and the first server instance, so that the current load capacity does not exceed the preset load capacity.
In one embodiment, the method further comprises the following steps:
obtaining an access request of a second remote terminal unit;
in response to the access request, a second primary channel is established between the second remote terminal unit and the third server instance, and a second backup channel is established between the second remote terminal unit and the second server instance.
In one embodiment, the method further comprises the following steps:
obtaining an access request of a second remote terminal unit;
in response to the access request, a second primary channel is established between the second remote terminal unit and the second server instance, and a second backup channel is established between the second remote terminal unit and the third server instance.
A power grid monitoring system channel distribution device based on server instance expansion is applied to a scheduling unit in a power grid monitoring system, the power grid monitoring system comprises a plurality of remote terminal units and a plurality of server instances, and the device comprises:
the system comprises a capacity expansion request receiving module, a capacity expansion request receiving module and a capacity expansion request sending module, wherein the capacity expansion request receiving module is used for responding to a capacity expansion request sent by a first server instance and determining a first remote terminal unit connected with the first server instance; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel;
the access information acquisition module is used for acquiring access information from a third server instance and determining whether the third server instance is successfully accessed according to the access information;
a channel allocation module, configured to, when access is successful, establish a new first backup channel between the first remote terminal unit and the third server instance, and close the first backup channel between the first remote terminal unit and the first server instance.
In one embodiment, the first server instance has a plurality of first remote terminal units connected thereto, and the channel assignment module comprises:
an overload capacity determining submodule, configured to determine, when access is successful, a current overload capacity corresponding to the first server instance; the overload capacity is the load capacity of the current load capacity of the first server example exceeding the preset load capacity;
the target first remote terminal unit determining submodule is used for determining a target first remote terminal unit matched with the overload capacity according to the data volume to be sent of each first remote terminal unit;
a channel establishing submodule, configured to establish a new first backup channel between the target first remote terminal unit and the third server instance, and close the first backup channel between the target first remote terminal unit and the first server instance, so that the current load does not exceed the preset load.
In one embodiment, the method further comprises the following steps:
a first access request acquisition module for acquiring an access request of a second remote terminal unit;
a first access request responding module, configured to, in response to the access request, establish a second active channel between the second remote terminal unit and the third server instance, and establish a second standby channel between the second remote terminal unit and the second server instance.
A power grid monitoring system, the system comprising:
a plurality of server instances including a first server instance and a second server instance;
a plurality of remote terminal units, including a first remote terminal unit, connected to the first server instance via a first standby channel and connected to a second server instance via a first active channel;
the scheduling unit responds to a capacity expansion request sent by a first server instance, determines a first remote terminal unit connected with the first server instance, acquires access information from a third server instance, determines whether the third server instance is successfully accessed according to the access information, establishes a new first standby channel between the first remote terminal unit and the third server instance when the access is successful, and closes the first standby channel between the first remote terminal unit and the first server instance.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method as claimed in any one of the above when the computer program is executed.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of the preceding claims.
The above power grid monitoring system channel allocation method, apparatus, power grid monitoring system, computer device and storage medium based on server instance capacity expansion may determine, in response to a capacity expansion request sent by a first server instance, a first remote terminal unit connected to the first server instance, obtain access information from a third server instance, determine, according to the access information, that the third server instance is successfully accessed, and may further respond to the capacity expansion request, establish a new first backup channel between the first remote terminal unit and the third server instance, and close the first backup channel between the first remote terminal unit and the first server instance, thereby implementing automatic and rational scheduling of data transmission channels, when the first server instance needs capacity expansion, the first backup channel of the first remote terminal unit can be switched from the first server instance to the third server instance in time, the dispatching efficiency is improved, the operation is simplified, and the operation is more intelligent and simpler.
Drawings
Fig. 1 is an application environment diagram of a power grid monitoring system channel allocation method based on server instance capacity expansion in an embodiment;
fig. 2 is a schematic flowchart of a method for allocating channels of a power grid monitoring system based on server instance expansion in an embodiment;
FIG. 3 is a schematic diagram of a change of a grid monitoring system before channel allocation and before channel allocation in one embodiment;
FIG. 4 is a schematic diagram of a variation of the embodiment before and after access to a second remote terminal unit;
FIG. 5 is a schematic diagram of a variation of the embodiment before and after access to a second remote terminal unit;
fig. 6 is a block diagram illustrating a structure of a channel allocation apparatus of a power grid monitoring system based on capacity expansion of a server instance in an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The power grid monitoring system channel allocation method based on server instance capacity expansion provided by the present application may be applied to the power grid monitoring system shown in fig. 1, and in the system, the system may include a scheduling Unit, a plurality of Remote Terminal Units (RTUs) and a plurality of server instances. The scheduling unit can be connected with a plurality of server instances; the remote terminal unit can collect data in the digital power grid and transmit the data to the server instance, for each RTU, in order to prevent data loss, a main channel and a standby channel can be set simultaneously, and the RTU can be connected to different server instances through the main channel and the standby channel.
In an embodiment, as shown in fig. 2, a power grid monitoring system channel allocation method based on server instance capacity expansion is provided, and the method is applied to the scheduling unit in fig. 1 as an example for description, and may include the following steps:
step 201, in response to a capacity expansion request sent by a first server instance, a first remote terminal unit connected to the first server instance is determined.
The first remote terminal unit is connected with the first server instance through a first standby channel and connected with the second server instance through a first main channel.
As an example, the remote terminal unit may be a device for collecting state quantities or data quantities corresponding to the power grid devices or the power network, for example, the remote terminal unit may be used for collecting voltage, current, power grid device state, and the like.
In practice, the first remote terminal unit may be connected to the first server instance via a first backup channel. When the first server detects a capacity expansion event, a capacity expansion request may be generated and sent to the scheduling unit, where as an example, the capacity expansion event may include detecting a capacity expansion instruction of a user, or detecting that a current load capacity of the first server instance exceeds a preset load capacity.
After receiving the capacity expansion request sent by the first server instance, the scheduling unit may determine, in response to the capacity expansion request, a first remote terminal unit connected to the first server instance, where the first remote terminal unit is connected to the first server instance through a first standby channel and connected to the second server instance through a first main channel.
Specifically, when generating the capacity expansion request, the first server instance may determine the first remote terminal unit currently connected to the first server instance through the standby channel, obtain a remote terminal unit identifier corresponding to the first remote terminal unit, and generate the capacity expansion request including the remote terminal unit identifier. And then when receiving the capacity expansion request, the scheduling unit can quickly determine the first remote terminal unit connected with the first server instance through the standby channel according to the remote terminal unit identification in the capacity expansion request.
Alternatively, the storage module corresponding to the scheduling unit may store the connection relationship between each server instance and the remote terminal unit in advance, and the remote terminal unit connected to each server instance through the main channel or the standby channel may be determined according to the connection relationship. After receiving the capacity expansion request, the scheduling unit may query the connection relationship, and determine a second remote terminal connected to the first server instance through the backup channel.
Step 202, obtaining access information from a third server instance, and determining whether the third server instance is successfully accessed according to the access information.
As an example, the third server instance may be an instance of a server that is not connected to the third remote terminal unit and the first remote terminal unit.
In practical applications, the third server instance may establish a connection with the scheduling unit and send the access information to the scheduling unit. After receiving the access information from the third server instance, the scheduling unit may determine whether the third server instance is successfully accessed according to the access information, for example, when the access is successful, the third server instance may send the access information including the access success information, and if the access is failed, the scheduling unit generates the access information including the access failure.
Specifically, the access information may further include a server instance identifier corresponding to the third server instance, and after receiving the access information, the scheduling unit may determine the third server that is successfully accessed according to the server instance identifier in the access information.
Step 203, when the access is successful, establishing a new first standby channel between the first remote terminal unit and the third server instance, and closing the first standby channel between the first remote terminal unit and the first server instance.
After determining that the third server access is successful, the scheduling unit may establish a new first backup path between the first remote terminal unit and the third server instance and close the first backup path between the first remote terminal unit and the first server instance in response to the expansion request.
As shown in fig. 3, the first remote terminal unit may be connected to the first server instance through the first standby channel and connected to the second server instance through the first main channel; the first server instance may be further connected to a third remote terminal unit through a third main channel, and the third remote terminal unit may be further connected to the second server instance through a third standby channel.
After the dispatching unit obtains the capacity expansion request from the first server instance, the dispatching unit can access the third server instance, establish a new first standby channel between the first remote terminal unit and the third server instance according to the capacity expansion request, close the first standby channel between the first remote terminal unit and the first server instance, thereby being capable of switching the first standby channel of the first remote terminal unit from the first server instance to the third server instance in time,
in this embodiment, in response to a capacity expansion request sent by a first server instance, a first remote terminal unit connected to the first server instance may be determined, access information from a third server instance is obtained, it is determined that the third server instance is successfully accessed according to the access information, and then, in response to the capacity expansion request, a new first backup channel is established between the first remote terminal unit and the third server instance, and the first backup channel between the first remote terminal unit and the first server instance is closed, so that automatic and reasonable scheduling of a data transmission channel is achieved.
In one embodiment, a plurality of first remote terminal units may be connected to a first server instance, and when the access is successful, a new first backup path is established between the first remote terminal unit and the third server instance, and the first backup path between the first remote terminal unit and the first server instance is closed, the method may include the following steps:
when the access is successful, determining the current overload corresponding to the first server instance; determining a target first remote terminal unit matched with the overload capacity according to the data volume to be sent of each first remote terminal unit; establishing a new first standby channel between the target first remote terminal unit and the third server instance, and closing the first standby channel between the target first remote terminal unit and the first server instance, so that the current load capacity does not exceed the preset load capacity.
As an example, the current overload amount may be an amount of load of the first server instance at which the current load amount exceeds a preset load amount; the current load amount may be determined based on a data amount to be sent of a remote terminal unit connected to the current load amount, and the data amount to be sent may be a data amount corresponding to data to be sent to a server instance by the remote terminal unit.
In practical application, a preset load may be set for each server instance, where the preset load may be a maximum load of the server instance, and may also be determined based on the maximum load and a preset duty ratio. After the preset load amount is determined, the first server may obtain the current load amount according to a preset time interval, and compare the current load amount with the preset load amount.
When the current load capacity of the first server instance is greater than the preset load capacity, the first server instance may generate a capacity expansion request. After receiving the capacity expansion request, the scheduling unit may respond to the capacity expansion request to determine a current excess capacity corresponding to the first server instance, for example, may obtain current excess capacity information added by the first server instance from the capacity expansion request, thereby obtaining the current excess capacity; for another example, the scheduling unit may determine the current overload amount according to the current load amount of the first server instance and a preset load amount.
After the current overload capacity is determined, the scheduling unit may determine the data volume to be sent of each first remote terminal unit, and determine a target first remote terminal unit corresponding to the data volume to be sent and matched with the current overload capacity from the plurality of first remote terminal units. After the target first remote terminal unit is determined, a new first standby channel may be established between the target first remote terminal unit and the third server instance, and the first standby channel between the target first remote terminal unit and the first server instance may be closed, so that the current load capacity of the first server instance does not exceed the preset load capacity.
In this embodiment, in response to the capacity expansion request, the scheduling unit may determine a current overload amount corresponding to the first server instance, determine, according to the amount of data to be sent by each first remote terminal unit, a target first remote terminal unit matched with the overload amount, establish a new first backup channel between the target first remote terminal unit and the third server instance, and close the first backup channel between the target first remote terminal unit and the first server instance, so that the current load amount does not exceed the preset load amount, and thus, it is not necessary to perform transfer switching on the first backup channels of all the first remote terminal units, and it is only necessary to perform transfer switching on the first backup channels of a part of the first remote terminal units corresponding to the overload amount, which is flexible and simple to operate.
In one embodiment, the method may further comprise the steps of:
obtaining an access request of a second remote terminal unit; in response to the access request, a second primary channel is established between the second remote terminal unit and the third server instance, and a second backup channel is established between the second remote terminal unit and the second server instance.
As an example, the second remote terminal unit may be a newly added remote terminal unit.
In practice, when the second remote terminal unit is to establish a communication connection with the server instance, the second remote terminal unit may generate an access request and send the access request to the scheduling unit. After acquiring the access request sent by the second remote terminal unit, in response to the access request, the scheduling unit may determine, from the multiple server instances, a server instance used for connection with the second remote terminal unit.
Specifically, the scheduling unit may determine a plurality of server instances that are not currently performing capacity expansion, for example, may determine a server instance that does not send a capacity expansion request. In this embodiment, the scheduling unit may determine a second server instance and a third server instance from the plurality of server instances, establish a second primary channel between the second remote terminal unit and the third server instance, and establish a second standby channel between the second remote terminal unit and the second server instance. Fig. 4 is a schematic diagram of a variation before and after accessing a second remote terminal unit provided by an embodiment of the present application, as shown in fig. 4.
In this embodiment, a second main channel may be established between the second remote terminal unit and the third server instance according to the access request, and a second standby channel may be established between the second remote terminal unit and the second server instance, so that the newly accessed second remote terminal unit can be reasonably allocated in time.
In another embodiment, the method may further comprise the steps of:
obtaining an access request of a second remote terminal unit; in response to the access request, a second primary channel is established between the second remote terminal unit and the second server instance, and a second backup channel is established between the second remote terminal unit and the third server instance.
In practice, when the second remote terminal unit is to establish a communication connection with the server instance, the second remote terminal unit may generate an access request and send the access request to the scheduling unit. After acquiring the access request sent by the second remote terminal unit, in response to the access request, the scheduling unit may determine, from the multiple server instances, a server instance to be used for connecting to the second remote terminal unit.
Specifically, the scheduling unit may determine a plurality of server instances that are not currently performing capacity expansion, for example, may determine a server instance that does not send a capacity expansion request. In this embodiment, the scheduling unit may determine a second server instance and a third server instance from the plurality of server instances, establish a second primary channel between the second remote terminal unit and the second server instance, and establish a second standby channel between the second remote terminal unit and the third server instance. As shown in fig. 5, fig. 5 is a schematic diagram of a variation before and after accessing a second remote terminal unit provided by an embodiment of the present application.
In this embodiment, a second main channel may be established between the second remote terminal unit and the second server instance according to the access request, and a second standby channel may be established between the second remote terminal unit and the third server instance, so that the newly accessed second remote terminal unit can be reasonably allocated in time.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In an embodiment, as shown in fig. 6, a power grid monitoring system channel allocation apparatus based on server instance expansion is provided, which may be applied to a scheduling unit in a power grid monitoring system, where the power grid monitoring system includes a plurality of remote terminal units and a plurality of server instances, and the apparatus may include:
a capacity expansion request receiving module 601, configured to determine, in response to a capacity expansion request sent by a first server instance, a first remote terminal unit connected to the first server instance; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel;
an access information obtaining module 602, configured to obtain access information from a third server instance, and determine whether the third server instance is successfully accessed according to the access information;
a channel allocating module 603, configured to, when the access is successful, establish a new first standby channel between the first remote terminal unit and the third server instance, and close the first standby channel between the first remote terminal unit and the first server instance.
In one embodiment, the first server instance has a plurality of first remote terminal units connected thereto, and the channel assignment module includes:
an overload capacity determining submodule, configured to determine, when access is successful, a current overload capacity corresponding to the first server instance; the overload capacity is the load capacity of the current load capacity of the first server example exceeding the preset load capacity;
the target first remote terminal unit determining submodule is used for determining a target first remote terminal unit matched with the overload capacity according to the data volume to be sent of each first remote terminal unit;
a channel establishing submodule, configured to establish a new first standby channel between the target first remote terminal unit and the third server instance, and close the first standby channel between the target first remote terminal unit and the first server instance, so that the current load does not exceed the preset load.
In one embodiment, further comprising:
a first access request acquisition module for acquiring an access request of a second remote terminal unit;
a first access request responding module, configured to, in response to the access request, establish a second active channel between the second remote terminal unit and the third server instance, and establish a second standby channel between the second remote terminal unit and the second server instance.
In another embodiment, the method further comprises:
a second access request acquisition module for acquiring an access request of a second remote terminal unit;
a second access request responding module, configured to, in response to the access request, establish a second active channel between the second remote terminal unit and the second server instance, and establish a second standby channel between the second remote terminal unit and the third server instance.
For specific limitations of the power grid monitoring system channel allocation apparatus based on server instance expansion, refer to the above limitations of the power grid monitoring system channel allocation method based on server instance expansion, which are not described herein again. All modules in the power grid monitoring system channel distribution device based on server instance expansion can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, there is provided a power grid monitoring system, the system comprising:
a plurality of server instances including a first server instance and a second server instance;
a plurality of remote terminal units, including a first remote terminal unit, connected to the first server instance via a first standby channel and connected to a second server instance via a first active channel;
the scheduling unit responds to a capacity expansion request sent by a first server instance, determines a first remote terminal unit connected with the first server instance, acquires access information from a third server instance, determines whether the third server instance is successfully accessed according to the access information, establishes a new first standby channel between the first remote terminal unit and the third server instance when the access is successful, and closes the first standby channel between the first remote terminal unit and the first server instance.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the association relationship between the server instance and the remote terminal unit. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a power grid monitoring system channel distribution method based on server instance capacity expansion.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
in response to a capacity expansion request sent by a first server instance, determining a first remote terminal unit connected with the first server instance; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel;
obtaining access information from a third server instance, and determining whether the third server instance is accessed successfully according to the access information;
when the access is successful, a new first backup path is established between the first remote terminal unit and the third server instance, and the first backup path between the first remote terminal unit and the first server instance is closed.
In one embodiment, the steps in the other embodiments described above are also implemented when the computer program is executed by a processor.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
the method comprises the steps that in response to a capacity expansion request sent by a first server instance, a first remote terminal unit connected with the first server instance is determined; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel;
obtaining access information from a third server instance, and determining whether the third server instance is accessed successfully according to the access information;
when the access is successful, a new first backup path is established between the first remote terminal unit and the third server instance, and the first backup path between the first remote terminal unit and the first server instance is closed.
In one embodiment, the computer program when executed by the processor also performs the steps in the other embodiments described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A power grid monitoring system channel distribution method based on server instance capacity expansion is characterized in that the method is applied to a scheduling unit in a power grid monitoring system, the power grid monitoring system comprises a plurality of remote terminal units and a plurality of server instances, and the method comprises the following steps:
in response to a capacity expansion request sent by a first server instance, determining a plurality of first remote terminal units connected with the first server instance; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel;
obtaining access information from a third server instance, and determining whether the third server instance is accessed successfully according to the access information;
when the access is successful, determining the current overload corresponding to the first server instance; the overload capacity is the load capacity of the current load capacity of the first server example exceeding the preset load capacity;
determining a target first remote terminal unit matched with the overload capacity according to the data volume to be sent of each first remote terminal unit;
establishing a new first standby channel between the target first remote terminal unit and the third server instance, and closing the first standby channel between the target first remote terminal unit and the first server instance, so that the current load capacity does not exceed the preset load capacity.
2. The method of claim 1, wherein determining a plurality of first remote terminal units connected to the first server instance in response to the capacity expansion request sent by the first server instance comprises:
responding to a capacity expansion request sent by a first server instance, and acquiring a remote terminal unit identifier from the capacity expansion request;
determining a plurality of first remote terminal units connected to the first server instance based on the remote terminal unit identification.
3. The method of claim 1, further comprising:
obtaining an access request of a second remote terminal unit;
in response to the access request, a second primary channel is established between the second remote terminal unit and the third server instance, and a second backup channel is established between the second remote terminal unit and the second server instance.
4. The method of claim 1, further comprising:
obtaining an access request of a second remote terminal unit;
in response to the access request, a second primary channel is established between the second remote terminal unit and the second server instance, and a second backup channel is established between the second remote terminal unit and the third server instance.
5. The utility model provides a power grid monitoring system passageway distribution device based on server example dilatation which is characterized in that, is applied to the dispatch unit in the power grid monitoring system, the power grid monitoring system includes a plurality of remote terminal unit and a plurality of server examples, the device includes:
the system comprises a capacity expansion request receiving module, a capacity expansion request receiving module and a capacity expansion request sending module, wherein the capacity expansion request receiving module is used for responding to a capacity expansion request sent by a first server instance and determining a plurality of first remote terminal units connected with the first server instance; the first remote terminal unit is connected with the first server instance through a first standby channel and connected with a second server instance through a first main channel;
the access information acquisition module is used for acquiring access information from a third server instance and determining whether the third server instance is successfully accessed according to the access information;
an overload capacity determining submodule, configured to determine, when access is successful, a current overload capacity corresponding to the first server instance; the overload capacity is the load capacity of the current load capacity of the first server example exceeding the preset load capacity;
the target first remote terminal unit determining submodule is used for determining a target first remote terminal unit matched with the overload capacity according to the data volume to be sent of each first remote terminal unit;
a channel establishing submodule, configured to establish a new first standby channel between the target first remote terminal unit and the third server instance, and close the first standby channel between the target first remote terminal unit and the first server instance, so that the current load does not exceed the preset load.
6. The apparatus of claim 5, further comprising:
a first access request acquisition module for acquiring an access request of a second remote terminal unit;
a first access request responding module, configured to, in response to the access request, establish a second active channel between the second remote terminal unit and the third server instance, and establish a second standby channel between the second remote terminal unit and the second server instance.
7. The apparatus of claim 5, further comprising:
a second access request acquisition module for acquiring an access request of a second remote terminal unit;
a second access request responding module, configured to, in response to the access request, establish a second active channel between the second remote terminal unit and the second server instance, and establish a second standby channel between the second remote terminal unit and the third server instance.
8. A power grid monitoring system, the system comprising:
a plurality of server instances including a first server instance and a second server instance;
a plurality of remote terminal units, including a plurality of first remote terminal units, connected to the first server instance via a first standby channel and connected to a second server instance via a first active channel;
the scheduling unit responds to an expansion request sent by a first server instance, determines a first remote terminal unit connected with the first server instance, acquires access information from a third server instance, determines whether the third server instance is successfully accessed according to the access information, and determines the current overload amount corresponding to the first server instance when the third server instance is successfully accessed; the overload capacity is the load capacity of the current load capacity of the first server example exceeding the preset load capacity; determining a target first remote terminal unit matched with the overload capacity according to the data volume to be sent of each first remote terminal unit; establishing a new first standby channel between the target first remote terminal unit and the third server instance, and closing the first standby channel between the target first remote terminal unit and the first server instance, so that the current load capacity does not exceed the preset load capacity.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202110626808.0A 2021-06-04 2021-06-04 Power grid monitoring system channel distribution method based on server instance expansion Active CN113364122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110626808.0A CN113364122B (en) 2021-06-04 2021-06-04 Power grid monitoring system channel distribution method based on server instance expansion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110626808.0A CN113364122B (en) 2021-06-04 2021-06-04 Power grid monitoring system channel distribution method based on server instance expansion

Publications (2)

Publication Number Publication Date
CN113364122A CN113364122A (en) 2021-09-07
CN113364122B true CN113364122B (en) 2022-06-24

Family

ID=77532451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110626808.0A Active CN113364122B (en) 2021-06-04 2021-06-04 Power grid monitoring system channel distribution method based on server instance expansion

Country Status (1)

Country Link
CN (1) CN113364122B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213523A (en) * 2019-04-25 2019-09-06 浙江华创视讯科技有限公司 Video conference processing method, system, device, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102164116B (en) * 2010-03-30 2013-11-13 青岛海信传媒网络技术有限公司 Method, system and corresponding device for balancing load
CN101982920A (en) * 2010-11-12 2011-03-02 国网电力科学研究院 Method for realizing power-distribution open-type communication platform
CN105162859B (en) * 2015-08-20 2019-04-12 湖南亿谷科技发展股份有限公司 Server dynamic capacity-expanding system and method
CN107105427B (en) * 2017-04-28 2020-03-06 天津泰岳小漫科技有限公司 Communication method and device based on channel SIM card
CN112333015B (en) * 2020-10-28 2022-11-01 重庆紫光华山智安科技有限公司 Media data storage method, device, system, electronic equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213523A (en) * 2019-04-25 2019-09-06 浙江华创视讯科技有限公司 Video conference processing method, system, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113364122A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
US9532359B2 (en) Resource allocation method and device
CN112685148A (en) Asynchronous communication method and device of mass terminals, computer equipment and storage medium
CN110933178B (en) Method for adjusting node configuration in cluster system and server
CN113364122B (en) Power grid monitoring system channel distribution method based on server instance expansion
CN104601376A (en) Heartbeat message sending method and device
CN113258679B (en) Power grid monitoring system channel distribution method based on server instance capacity reduction
CN116302580B (en) Method and device for scheduling calculation force resources of nano relay
CN110049350B (en) Video transcoding processing method and device, computer equipment and storage medium
CN116031965B (en) Charging method, device, power adapter and storage medium
CN213876703U (en) Resource pool management system
CN113411265B (en) Power grid monitoring system preposition service channel dynamic adjusting method based on risk prediction
CN113362196B (en) Low-delay addressing method for pre-dispatching service of power grid monitoring system
CN111556126A (en) Model management method, system, computer device and storage medium
CN113347692B (en) Power utilization system, method and equipment, and computer-readable storage medium
CN115848203B (en) Charging power expansion allocation method and device
CN113688008B (en) Clustering algorithm technology-based power grid monitoring system pre-service fault processing method
CN113489154B (en) Power grid monitoring system data loss prevention method based on main and standby channel switching technology
CN113709715B (en) Slice resource allocation method, apparatus, computer device and storage medium
CN114584625B (en) Message processing method and device, electronic equipment and storage medium
CN110831089B (en) Channel switching method and device
Van de Vyver et al. The need for a distributed algorithm for control of the electrical power infrastructure
CN117806543A (en) Method and device for managing and processing capacity of persistent volume
CN116634588A (en) Network resource scheduling method, device and storage medium
CN115421917A (en) Embedded system multiprocessor module load balancing method
CN112686548A (en) Energy storage system operation method and device, electronic 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
GR01 Patent grant
GR01 Patent grant