CN111506328A - Service upgrading method and device, electronic equipment and storage medium - Google Patents

Service upgrading method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111506328A
CN111506328A CN202010303440.XA CN202010303440A CN111506328A CN 111506328 A CN111506328 A CN 111506328A CN 202010303440 A CN202010303440 A CN 202010303440A CN 111506328 A CN111506328 A CN 111506328A
Authority
CN
China
Prior art keywords
electronic device
electronic equipment
upgrade
electronic
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.)
Pending
Application number
CN202010303440.XA
Other languages
Chinese (zh)
Inventor
冯士乘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010303440.XA priority Critical patent/CN111506328A/en
Publication of CN111506328A publication Critical patent/CN111506328A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The embodiment of the invention provides a service upgrading method and device, electronic equipment and a storage medium. The service upgrading method specifically comprises the following steps: the method comprises the steps that first electronic equipment receives upgrade data sent by second electronic equipment through preset network connection, wherein the preset network connection is established between the second electronic equipment and an operation and maintenance tool deployed at a preset port of the first electronic equipment; the method comprises the steps that a first electronic device receives an upgrading instruction sent by a second electronic device through a preset network connection; and the first electronic equipment upgrades at least one third electronic equipment according to the upgrade data. By implementing the embodiment of the invention, the first electronic equipment and the second electronic equipment can ensure that the upgrading deployment service of the third electronic equipment is remotely realized, and the first electronic equipment can send the upgrading data to each third electronic equipment in batches, so that the efficiency of the upgrading service is improved.

Description

Service upgrading method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a service upgrade method and apparatus, an electronic device, and a storage medium.
Background
In the current era of rapid technological development, the iterative updating of the technology is changing day by day, and the technology is specific to the actual production environment, especially the privatization environment, such as tax bureau, bank, etc. Taking the tax bureau as an example, only one external machine room is provided, and when the equipment needs to be upgraded and updated, the equipment can only be upgraded by manually going to the machine room of the tax bureau. Further, when there are many apparatuses in an actual production environment, it is necessary to operate the apparatuses one by one.
The existing service upgrading method has the disadvantages that the operation efficiency is not high enough due to the privacy of the actual production environment, the number of devices is large, and the operation process is complicated, so that the efficiency is urgently improved by the service upgrading method.
Disclosure of Invention
The embodiment of the invention provides a service upgrading method, a service upgrading device, electronic equipment and a medium, and aims to improve the efficiency of upgrading services.
The embodiment of the invention provides a service upgrading method, which comprises the following steps:
the method comprises the steps that first electronic equipment receives upgrade data sent by second electronic equipment through a preset network connection, wherein the preset network connection is established between the second electronic equipment and an operation and maintenance tool deployed at a preset port of the first electronic equipment;
the first electronic equipment receives an upgrading instruction sent by the second electronic equipment through a preset network connection;
and the first electronic equipment upgrades at least one third electronic equipment according to the upgrade data.
The embodiment of the invention provides a service upgrading device which has the function of realizing the data processing method. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving upgrading data sent by second electronic equipment through a preset network connection, and the preset network connection is established between the second electronic equipment and an operation and maintenance tool deployed at a preset port of the first electronic equipment;
the receiving module is also used for receiving an upgrading instruction sent by the second electronic equipment through a preset network connection;
and the processing module is used for upgrading at least one third electronic device according to the upgrading data.
In one implementation, the service upgrade apparatus further includes: the device comprises an acquisition module and a backup module.
The acquisition module is used for acquiring a pre-configured script through the preset network connection before the receiving module receives the upgrade data sent by the second electronic equipment through the preset network connection;
and the backup module is used for backing up the business data of the at least one third electronic device according to the script, wherein the business data comprises the historical version data of the at least one third electronic device.
In one implementation, the service upgrade apparatus further includes: and a monitoring module.
The monitoring module is used for monitoring the service state of the at least one third electronic device within a preset time period;
if the service states of all the third electronic devices in the at least one third electronic device are normal, the processing module determines that the at least one third electronic device is upgraded successfully.
In one implementation manner, after the monitoring module monitors the service status of the at least one third electronic device within a preset time period, the processing module further includes:
and if the service state of any one of the at least one third electronic device is abnormal, replacing the upgrade data with the service data.
In one implementation, the upgrading at least one third electronic device by the processing module according to the upgrade data includes:
and sending the upgrading data to the at least one third electronic device in batch to enable the at least one third electronic device to complete upgrading operation.
In one implementation, the service upgrade apparatus further includes: and a sending module.
In one implementation, the at least one third electronic device includes: a master device and at least one backup device;
the processing module upgrades at least one third electronic device according to the upgrade data, and the upgrading method comprises the following steps:
when the load of the main equipment is higher than a preset threshold value, determining that the main equipment is in a busy service state;
and the sending module is used for sending the upgrading data to the at least one standby device in batches so as to enable the at least one standby device to complete upgrading operation.
In one implementation, the upgrading at least one third electronic device by the processing module according to the upgrade data includes:
determining at least one third electronic device contained in a blockchain network to which the first electronic device belongs;
and the sending module sends the upgrading data to at least one determined third electronic device so as to upgrade each third electronic device according to the upgrading data.
An embodiment of the present invention provides an electronic device, which includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to perform operations related to the service upgrade method.
An embodiment of the present invention provides a computer-readable storage medium for storing computer program instructions for a terminal device, which includes a program for executing the service upgrade method.
By implementing the embodiment of the invention, the first electronic device and the third electronic device are in a production environment, the second electronic device is in a standby environment, the operation and maintenance tool deployed at the preset port of the first electronic device is connected with the second electronic device through the preset network for data transmission, the upgrade deployment service for the third electronic device can be remotely realized, the first electronic device can send the upgrade data to each third electronic device in batches, and the upgrade service efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a system architecture diagram of a service upgrade provided by an embodiment of the present invention;
FIG. 2 is a system architecture diagram of another service upgrade provided by an embodiment of the present invention;
fig. 3 is a schematic flowchart of a service upgrade method according to an embodiment of the present invention;
FIG. 4 is a table diagram illustrating a correspondence between a service scenario and a monitoring duration;
fig. 5 is a schematic flow chart of another service upgrading method provided by the embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service upgrade apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in the current era of rapid development of technology, the technology is updated day by day, and product upgrading is to regularly and continuously distribute updated product content to provide users with latest functions, performances and services, which are extremely important functions of products for both mobile terminals and PC terminals. Upgrading the service is the most important in each service. The upgrade service, for example, a product developed by an electronic device, has been released with version V1.0, and since a defect is found, the version of the service needs to be upgraded to provide a better service.
For practical production environments, especially privatized environments, such as tax authorities, banks, etc. Taking the tax bureau as an example, only one external machine room is provided, and when the equipment needs to be upgraded and updated, the equipment can only be upgraded by manually going to the machine room of the tax bureau. Further, when there are many apparatuses in an actual production environment, it is necessary to operate the apparatuses one by one. The existing service upgrading method has the disadvantages that the operation efficiency is not high enough due to the privacy of the actual production environment, the number of devices is large, and the operation process is complicated, so that the efficiency is urgently improved by the service upgrading method.
Based on the above description, embodiments of the present invention provide a service upgrade method, device, and medium. The service upgrading method specifically comprises the following steps: the method comprises the steps that first electronic equipment receives upgrade data sent by second electronic equipment through a preset network connection, wherein the preset network connection is established between the second electronic equipment and an operation and maintenance tool deployed at a preset port of the first electronic equipment; the method comprises the steps that a first electronic device receives an upgrading instruction sent by a second electronic device through a preset network connection; and the first electronic equipment upgrades at least one third electronic equipment according to the upgrade data. By this method, the efficiency of upgrading the service can be improved.
The service upgrading method provided by the embodiment of the application can be applied to the following scenes: service upgrading of private production environments such as tax authorities and banks, service upgrading of block chain node equipment in a block chain network, and the like can be applied to any closed network system. By implementing the embodiment of the invention, before the service is upgraded, the remote operation and maintenance system is set up in advance and is provided with a standby environment, and the first electronic equipment receives the upgrade data sent by the second electronic equipment through the preset network connection. The preset network connection is established between the second electronic device and an operation and maintenance tool deployed at a preset port of the first electronic device, and after the first electronic device receives an upgrade instruction sent by the second electronic device through the preset network connection, the first electronic device upgrades at least one third electronic device according to upgrade data. By the method, the efficiency of service upgrading can be improved, and the aims of remote deployment and batch upgrading are fulfilled.
Referring to fig. 1, fig. 1 is a system architecture diagram of a service upgrade according to an embodiment of the present invention. The system architecture diagram includes: the electronic device comprises a first electronic device 110, a second electronic device 120, at least one third electronic device 130, a preset port 140 and a preset network 150. Wherein the first electronic device 110 and the at least one third electronic device 130 are in a production environment and the second electronic device 120 is in a standby environment. It should be noted that the production environment provided by the embodiment of the present invention is composed of one first electronic device 110 and two third electronic devices 130, which are only used as examples, in other feasible production environments, the number of the third electronic devices 130 may be 5, 100, and the like, and the number of the third electronic devices 130 is not limited by the present invention.
The first electronic device 110, the second electronic device 120, and the third electronic device 130 may be an access terminal, a User Equipment (UE), a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile terminal, a user terminal, a wireless communication device, a user agent, or a user equipment.
The predetermined port 140 may be considered as an outlet of the first electronic device 110 for communicating with the outside. There may be registers in the interface circuit that are used to store data information, control information, and status information, respectively, and the corresponding ports are referred to as data ports, control ports, and status ports, respectively. The default port 140 in this embodiment of the present invention is a dedicated physical interface that connects the production environment with the standby environment.
The default network 150 is a network connection established between the operation and maintenance tool deployed at the default port 140 of the first electronic device 110 and the second electronic device 120, and the network connection is a proprietary network and is a bridge connecting the production environment and the standby environment.
Referring to fig. 2, fig. 2 is a system architecture diagram of another service upgrade provided by the embodiment of the present invention. The system architecture diagram includes a first block link point device 210 (which may correspond to the first electronic device in fig. 1), at least one second block link point device 230 (which may correspond to the third electronic device in fig. 1), and an electronic device 220 (which may correspond to the second electronic device in fig. 1). The first block link point device 210 and the at least one second block link point device 230 form a block chain network, and the electronic device 220 does not belong to a device within the block chain network. The system architecture diagram can be applied to service upgrade of private networks in a block chain network.
In one implementation, the first block link point device 210 is a block link point device selected by all block link point devices in the block chain network according to a consensus algorithm, which includes, but is not limited to, a Proof of Work (PoW) algorithm, a Proof of rights (PoS) algorithm, a granted Proof of rights (DPoS) algorithm, a Practical Byzantine Fault Tolerance (PBFT) algorithm, and the like. Second block link point device 230 is the other block link point device in the block chain network that excludes first block link point device 210. The first block link point device 210 may be obtained by periodic election through a consensus algorithm, and the first block link point devices obtained by periodic election in different periods may be the same or different. It should be noted that the block chain network shown in the embodiment of the present invention is composed of three block chain node devices, i.e., a first block chain node device 210 and two second block chain node devices 230, which are only used for illustration and are not limited to the embodiment of the present invention. For example, in another example, a blockchain network may consist of six blockchain node devices, one first blockchain node device 210, five second blockchain node devices 230.
In one implementation, the first block link point device 210 receives upgrade data sent from the electronic device 220, the first block link point device 210 performs block chain consensus on the upgrade data, that is, the first block link point device 210 sends the upgrade data to each second block link point device 230, the first block link point device 210 receives a check result of each second block link point device 230, when the check result is that the number of successful checks is greater than a preset number threshold, the first block link point device 210 determines that the block chain consensus passes, and the first block link point device 210 performs upgrade operation on each second block link point device 230 according to the upgrade data.
In one implementation, the electronic device 220 sends the upgrade data to the first block link point device 210 closest to the electronic device 220, and after the first block link point device 210 passes the identification of the upgrade data block chain, the upgrade operation is performed on each second block link point device 230 according to the upgrade data.
In one implementation, the electronic device 220 sends the upgrade data to the first block-link-point device 210 with the best communication quality with the electronic device 220, and after the first block-link-point device 210 passes the recognition of the upgrade data block chain, the upgrade operation is performed on each second block-link-point device 230 according to the upgrade data.
It should be understood that the block chain system described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not constitute a limitation to the technical solution provided in the embodiment of the present invention, and as a person having ordinary skill in the art knows that along with the evolution of the system architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems.
Based on the above system architecture diagram, please refer to fig. 3, and fig. 3 is a flowchart illustrating a service upgrading method according to an embodiment of the present invention. The method may be executed by an electronic device, and the upgrade service method described in this embodiment includes the following steps S310 to S330:
step S310: the method comprises the steps that first electronic equipment receives upgrade data sent by second electronic equipment through preset network connection, wherein the preset network connection is established between the second electronic equipment and an operation and maintenance tool deployed at a preset port of the first electronic equipment.
In particular, the upgrade data may include an upgrade package, an upgrade file, and the like. The upgrade data is upgrade data of at least one third electronic device, and the upgrade data of each third electronic device may be the same or different.
For example, the upgrade data includes that the upgrade data of the first third electronic device is upgrade package 1, the upgrade data of the second third electronic device is upgrade package 2, and the upgrade data of the third electronic device is upgrade package 3. Or the upgrade data includes that the upgrade data of the first third electronic device is an upgrade file 1, the upgrade data of the second third electronic device is an upgrade file 2, and the upgrade data of the third electronic device is an upgrade file 3. Or, the upgrade data includes that the upgrade data of the first third electronic device is upgrade package 1, the upgrade data of the second third electronic device is upgrade package 1, and the upgrade data of the third electronic device is upgrade package 1.
In one implementation manner, before the first electronic device receives upgrade data sent by the second electronic device through a preset network connection, the first electronic device obtains a pre-configured script through the preset network connection, and the first electronic device backs up service data of the at least one third electronic device according to the script, where the service data includes historical version data of the at least one third electronic device. The preset network is a network connection established between an operation and maintenance tool deployed at a preset port of the first electronic device and the second electronic device, and the network connection is a proprietary network and is a bridge for connecting a production environment and a standby environment. It should be noted that the service data may include the version data being executed and the versions of the data before the third electronic device is executed.
For example, before the first electronic device receives upgrade data sent by the second electronic device through the preset network connection, a set of standby environment is prepared in advance, a needed upgrade package, an upgrade file and the like are placed in the standby environment, the first electronic device obtains a pre-configured script through the preset network connection, and the first electronic device executes the script, that is, the first electronic device backs up a file of a formal environment in which at least one third electronic device is running. Taking the tax bureau as an example, the terminal equipment of the tax bureau receives the upgrade package sent by the server through the private network connection so as to complete the operation of updating and upgrading each machine equipment in the tax bureau.
In an implementation manner, a first electronic device monitors a service state of the at least one third electronic device within a preset time period, and if the service states of all third electronic devices in the at least one third electronic device are normal, the first electronic device determines that the at least one third electronic device is successfully upgraded. It should be noted that the preset time period is set in advance, and may be set manually by a user or automatically set by the first electronic device system.
For example, taking the tax bureau as an example, the terminal device of the tax bureau (i.e., the first electronic device) receives the upgrade package sent by the server (i.e., the second electronic device) through the private network connection, the terminal device of the tax bureau sends the upgrade package to all the machine devices of the tax bureau in batch (i.e., the third electronic device), and the terminal device of the tax bureau continuously monitors the service states of all the machine devices of the tax bureau within one hour. And if the service states of all the machine equipment are normal, the terminal equipment of the tax bureau determines that all the machine equipment of the tax bureau are successfully upgraded.
In one implementation mode, the terminal device of the tax office receives an upgrade package sent by the server through a private network connection, the terminal device of the tax office sends the upgrade package to all the machine devices of the tax office in batches, and the terminal device of the tax office continuously monitors the service states of all the machine devices of the tax office within one hour. And if the service state of any one of all the machine equipment is abnormal, the terminal equipment of the tax bureau replaces the historical version data with the upgrading data immediately. By the method, all the machine equipment in the tax bureau can normally operate, and the normal operation of the tax bureau service is not influenced.
In one implementation mode, the terminal device of the tax office receives an upgrade package sent by the server through a private network connection, the terminal device of the tax office sends the upgrade package to all the machine devices of the tax office in batches, and the terminal device of the tax office continuously monitors the service states of all the machine devices of the tax office within one hour. If the service state of any one of all the machine equipment is abnormal, the terminal equipment of the tax bureau changes the upgrading data of the machine equipment with the abnormal service state into historical version data, continuously monitors the service state of the machine equipment within one hour, and if the service state of the machine equipment is normal, the terminal equipment of the tax bureau carries out upgrading operation on the rest machine equipment; and if the service state of the machine equipment is abnormal, replacing the upgrading data with the historical version data of the machine equipment of all tax offices by the terminal equipment of the tax office. By the method, the service operation of the machine equipment which can be successfully upgraded is not influenced by the service state of the machine equipment which is not successfully upgraded partially in the upgrading process, the efficiency of upgrading operation is improved in the maximum mode, and the normal service operation of the machine equipment is not influenced.
In one implementation manner, the first electronic device sends the upgrade data to the at least one third electronic device in batch, so that the at least one third electronic device completes upgrade operation.
In one implementation manner, the first electronic device sends the upgrade data to the at least one third electronic device in batch, so that the first electronic device updates the preset time period after the upgrade operation is completed by the at least one third electronic device. Different service scenes can correspond to different monitoring durations because the number of devices and the difficulty coefficient of upgrading the service are different.
In an implementation manner, the first electronic device sends the upgrade data to the at least one third electronic device in batch, so that after the at least one third electronic device completes the upgrade operation, the first electronic device obtains the monitoring duration corresponding to the service scene according to a preset relationship. The representation form of the preset relationship may include a form such as a table, a linear list, and the like. As shown in fig. 4, fig. 4 is a table diagram illustrating a correspondence relationship between a service scenario and a monitoring duration.
For example, after the terminal device of the tax office sends the upgrade package or the upgrade file to all the machine devices of the tax office in batch, and the terminal device of the tax office continuously monitors the service states of all the machine devices within a preset time period, when the service states of all the machine devices are normal, the first electronic device obtains the monitoring duration of the service scene 2 as two hours according to the table, and if the scene 2 is a service scene for bank service upgrade, the first electronic device changes the preset time period into two hours.
Step S320: and the first electronic equipment receives an upgrading instruction sent by the second electronic equipment through a preset network connection.
In specific implementation, after the first electronic device receives the upgrade instruction sent by the second electronic device through the preset network connection, the first electronic device sends the upgrade data to at least one third electronic device in batch.
In one implementation manner, the at least one third electronic device includes a main device and at least one standby device, when a load of the main device is higher than a preset threshold, it is determined that the main device is in a busy traffic state, and the first electronic device sends the upgrade data to the at least one standby device in batch, so that the at least one standby device completes an upgrade operation. The preset threshold may include expressions such as percentage, positive integer, and the like.
For example, taking a business scenario of banks as an example, each bank has a head office and a plurality of branches, and it is assumed that a chinese bank needs to upgrade the financial systems of all banks in the chinese bank. The financial system of the China bank receives upgrade data sent by electronic equipment deployed by the remote operation and maintenance system through a preset network connection, when the financial system load of the Beijing branch of the China bank is higher than a preset threshold value by 90%, the financial system of the Beijing branch of the China bank is determined to be in a busy service state, and the financial system of the China bank sends the upgrade data to all the China bank branches except the Beijing branch of the China bank in batches, so that all the China bank branches complete upgrade operation. By adopting the mode, the standby equipment can be ensured not to be influenced by the main equipment even when the main equipment is out of condition, and the upgrading operation can be normally finished.
Step S330: and the first electronic equipment upgrades at least one third electronic equipment according to the upgrade data.
The number of the third electronic devices may be one or more. For example, when the number of the third electronic devices is one, the first electronic device upgrades only one third electronic device according to the upgrade data to implement remote deployment. When the number of the third electronic devices is multiple, the first electronic device upgrades the multiple third electronic devices according to the upgrade data, and the first electronic device sends the upgrade data to the multiple third electronic devices in batches so as to achieve automatic distribution and remote deployment.
According to the method provided by the embodiment of the invention, for a privatized production environment, the first electronic equipment performs data transmission through the preset network connection established between the operation and maintenance tool deployed by the preset port and the second electronic equipment, the first electronic equipment and each third electronic equipment needing to be upgraded are in an actual production environment, and the second electronic equipment is in a backup environment. The method and the device avoid the need of manual operation of upgrading service to the machine room in the prior art, avoid adverse effects caused by time and region, ensure remote upgrading deployment service of the third electronic equipment, overcome the complex steps of upgrading service by one in the prior art, send upgrading data to each third electronic equipment in batches by the first electronic equipment, and improve the efficiency of upgrading service.
Referring to fig. 5, fig. 5 is a schematic flow chart of another service upgrading method according to an embodiment of the present invention. The method may be executed by a first block link point device, and the upgrade service method described in this embodiment includes the following steps S510 to S560:
step S510: the first block chain link point device receives upgrade data sent by the electronic device.
In particular, the upgrade data may include an upgrade package, an upgrade file, and the like.
In one implementation manner, before a first block link point device receives upgrade data sent by an electronic device through a preset network connection, the first block link point device obtains a pre-configured script through the preset network connection, and the first block link point device backs up service data of at least one second block link point device according to the script, where the service data includes historical version data of the at least one second block link point device.
In one implementation, the first block link point device and each second block link point device form a block chain network, and the electronic device is a device outside the block chain network. The embodiment of the invention can be applied to the method for upgrading the service of the private network block chain. Taking the first block link point device applied to the school educational administration system as an example, the electronic device may be an educational department of a local government department, and the second block link point device is each educational subsystem corresponding to the school educational administration system, that is, an online education module, a score inquiry module, a school introduction module, an educational administration application module, and the like.
For example, a Chongqing post and telecommunications university educational administration system may receive upgrade data sent by a local department of education. The upgrade data may be data about update and upgrade services of a Chongqing post and telecommunications university educational administration system, and specifically may be an upgrade package, an upgrade file, and an update version file compression package.
In one mode, after the first block link point device receives upgrade data sent by the electronic device through a preset network connection, the first block link point device acquires identity information of the electronic device, the first block link point device verifies the identity of the electronic device according to the identity information, and if the verification is passed, the first block link point device is triggered to send the upgrade data to each second block link point device.
In one implementation, a first block link point device obtains a digital certificate of an electronic device through a Certificate Authority (CA), and the first block link point device determines whether the digital certificate exists in a first preset database, and if the first block link point device determines that the digital certificate exists in the first preset database, the first block link point device determines that identity information of a second block link point device passes verification, and triggers the first block link point device to send upgrade data to each second block link point device.
The manner of determining whether the digital certificate exists in the first preset database by the first block link point device may be an image recognition algorithm and a keyword recognition algorithm, for example, when the first block link point device obtains the digital certificate of the electronic device through a CA mechanism, assuming that the electronic device is a Chongqing education department, the first block link point device acquires the official seal and the keywords in the digital certificate of the Chongqing education department through an image recognition algorithm and a keyword recognition algorithm, and judges that the Chongqing, the education department and the official seal exist in a first preset database if the keywords are Chongqing, the education department and government, the first block link point device determines that the identity information of the Chongqing education department passes the verification, and the first block link point device is triggered to send the upgrade data to each second block link point device.
Step S520: and the first block chain node equipment sends the upgrading data to each second block chain node equipment.
In one implementation, after the first block link point device determines that the identity information of the electronic device passes the verification, the first block link point device sends the upgrade data to each second block link point device.
Step S530: and the first block chain node point equipment receives the verification results sent by each second block chain node point equipment.
Step S540: the first block link point device determines that the block chain consensus passes.
During specific implementation, the first block chain node point device receives verification results about the upgrade data sent by the second block chain node point devices, and when the verification results show that the number of successful verification is larger than a preset number threshold, the first block chain node point device determines that the upgrade data block chain is commonly identified and passed. The expression form of the preset number threshold may be a percentage or a positive integer.
For example, assuming that the preset number threshold is 17 and the number of the second block link point devices is 20, if the number of the second block link point devices successfully verified as a result of the first block link point device receiving the verification is 18, the first block link point device compares the successfully verified number 18 with the preset number threshold 17, and if the number of the second block link point devices successfully verified 18 is greater than the preset number threshold 17, the first block link point device determines that the block chains pass through the common identification, and then the first block link point device is triggered to execute the step of upgrading the second block link point devices according to the upgrade data. If the number of the second block link point devices successfully verified is 16 as a result of the first block link point device receiving verification, the first block link point device compares the successfully verified number 16 with a preset number threshold 17, and the number of the second block link point devices successfully verified 16 is smaller than the preset number threshold 17, the first block link point device determines that the block chain consensus fails, and the step of upgrading each second block link point device by the first block link point device according to the upgrading data is not executed.
Step S550: the first block chain link point device receives an upgrading instruction sent by the electronic device through a preset network connection.
For example, a Chongqing post and telecommunications university educational administration system may receive an upgrade instruction sent by a local department of education. Wherein the upgrading instruction instructs the Chongqing post and telecommunications university teaching affair system to update and upgrade the service of each sub-module.
Step S560: and the first block chain node point equipment upgrades each second block chain node point equipment according to the upgrading data.
In one implementation manner, a first block link point device determines at least one second block link point device included in a block chain network to which the first block link point device belongs, and the first block link point device sends upgrade data to the determined at least one second block link point device in batch, so that each second block link point device is upgraded according to the upgrade data.
In one implementation, after a first block link point device sends upgrade data to at least one determined second block link point device in batch, the first block link point device monitors a service state of the at least one second block link point device within a preset time period, and if the service states of all second block link point devices in the at least one second block link point device are normal, the first block link point device determines that the upgrade of the at least one second block link point device is successful. It should be noted that the preset time period is set in advance, and may be set manually by a user or automatically set by the first block link point equipment system.
For example, after the Chongqing post and telecommunications university teaching system sends the upgrade data to each sub-module in the Chongqing post and telecommunications university teaching system in batch, such as an online education module, a score query module, a school introduction module, a teaching application module and the like, the Chongqing post and telecommunications university teaching system continuously monitors the service state of each sub-module in one hour, such as the online education module, the score query module, the school introduction module, the teaching application module and the like, and if all sub-modules in each sub-module operate normally, the Chongqing post and telecommunications university teaching system determines that each sub-module is upgraded successfully.
In one implementation, the first block link point device sends the upgrade data to at least one second block link point device in batch, so that after the at least one second block link point device completes the upgrade operation, the first block link point device updates the preset monitoring duration.
For example, after the Chongqing post and telecommunications university educational administration system sends the upgrade data to each determined submodule in the Chongqing post and telecommunications university educational administration system in batch, the Chongqing post and telecommunications university educational administration system continuously monitors the service states of each submodule, such as the online education module, the score query module, the school introduction module, the educational administration application module and the like, within one hour, and if all submodules in each submodule operate normally, the Chongqing post and telecommunications university educational administration system determines that the upgrade of each submodule is successful. After the Chongqing post and electronic university teaching system receives the upgrading data sent by the Chongqing education department again, the Chongqing post and electronic university teaching system sends the upgrading data to each sub-module in the Chongqing post and electronic university teaching system in batches, the Chongqing post and electronic university teaching system continuously monitors the service states of each sub-module such as the online education module, the score inquiry module, the school introduction module and the teaching application module within two hours, and if all the sub-modules in each sub-module run normally, the Chongqing post and electronic university teaching system determines that each sub-module is upgraded again successfully.
The method provided by the embodiment of the invention mainly aims at the operation of upgrading service of the private blockchain network, such as schools, government departments and the like, the operation of upgrading service of the private blockchain network is carried out in the blockchain network, and the upgrading data has public trust after the witness of each blockchain link point device, and meanwhile, the operation efficiency is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a service upgrading apparatus according to an embodiment of the present invention. The service upgrade apparatus is configured to perform steps performed by the first electronic device in the method embodiment corresponding to fig. 3 and the first block link point device in the method embodiment corresponding to fig. 5, and the service upgrade apparatus may include:
a receiving module 610, configured to receive upgrade data sent by a second electronic device through a preset network connection, where the preset network connection is a network connection established between the second electronic device and an operation and maintenance tool deployed at a preset port of the first electronic device;
the receiving module 610 is further configured to receive an upgrade instruction sent by the second electronic device through a preset network connection;
the processing module 620 is configured to upgrade at least one third electronic device according to the upgrade data.
In one implementation, the service upgrade apparatus further includes: an acquisition module 630 and a backup module 640.
An obtaining module 630, configured to obtain a pre-configured script through a preset network connection before the receiving module 610 receives upgrade data sent by a second electronic device through the preset network connection;
the backup module 640 is configured to backup service data of the at least one third electronic device according to the script, where the service data includes historical version data of the at least one third electronic device.
In one implementation, the service upgrade apparatus further includes: a monitoring module 650.
The monitoring module 650 is configured to monitor a service state of the at least one third electronic device within a preset time period;
if the service statuses of all the third electronic devices in the at least one third electronic device are normal, the processing module 620 determines that the upgrade of the at least one third electronic device is successful.
In one implementation, after the monitoring module 650 monitors the traffic status of the at least one third electronic device within a preset time period, the processing module 620 further includes:
and if the service state of any one of the at least one third electronic device is abnormal, replacing the upgrade data with the service data.
In one implementation, the upgrading of the at least one third electronic device by the processing module 620 according to the upgrade data includes:
and sending the upgrading data to the at least one third electronic device in batch to enable the at least one third electronic device to complete upgrading operation.
In one implementation, the service upgrade apparatus further includes: a sending module 660.
In one implementation, the at least one third electronic device includes: a master device and at least one backup device;
the processing module 620 upgrades at least one third electronic device according to the upgrade data, including:
when the load of the main equipment is higher than a preset threshold value, determining that the main equipment is in a busy service state;
a sending module 660, configured to send the upgrade data to the at least one standby device in batch, so that the at least one standby device completes an upgrade operation.
In one implementation, the upgrading of the at least one third electronic device by the processing module 620 according to the upgrade data includes:
determining at least one third electronic device contained in a blockchain network to which the first electronic device belongs;
the sending module 660 sends the upgrade data to the determined at least one third electronic device, so that each third electronic device is upgraded according to the upgrade data.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, the electronic device is configured to execute steps executed by a first electronic device in the method embodiment corresponding to fig. 3 and a first block link point device in the method embodiment corresponding to fig. 5, and the electronic device includes: one or more processors 710; one or more input devices 720, one or more output devices 730, and memory 740. The processor 710, the input device 720, the output device 730, and the memory 740 are connected by a bus 750. The memory 720 is used for storing a computer program comprising program instructions, and the processor 710, the input device 720, and the output device 730 are used for executing the program instructions stored in the memory 740, and performing the following operations:
the input device 720 receives upgrade data sent by a second electronic device through a preset network connection, where the preset network connection is established between the second electronic device and an operation and maintenance tool deployed at a preset port of the first electronic device;
the input device 720 receives an upgrade instruction sent by the second electronic device through a preset network connection;
the processor 710 upgrades at least one third electronic device according to the upgrade data.
In one implementation manner, before the input device 720 receives the upgrade data sent by the second electronic device through the preset network connection, the method further includes:
the input device 720 obtains a pre-configured script through the preset network connection;
the processor 710 backs up the business data of the at least one third electronic device according to the script, wherein the business data comprises the historical version data of the at least one third electronic device.
In one implementation, the processor 710 upgrades at least one third electronic device according to the upgrade data, and further includes:
monitoring the service state of the at least one third electronic device within a preset time period;
if the service statuses of all the third electronic devices in the at least one third electronic device are normal, the processor 710 determines that the upgrade of the at least one third electronic device is successful.
In one implementation, after the processor 710 monitors the traffic status of the at least one third electronic device for a preset time period, the method further includes:
if the service status of any one of the at least one third electronic device is not normal, the processor 710 replaces the upgrade data with the service data.
In one implementation, the processor 710 upgrades at least one third electronic device according to the upgrade data, including:
the output device 730 sends the upgrade data to the at least one third electronic device in batch, so that the at least one third electronic device completes the upgrade operation.
In one implementation, the at least one third electronic device includes: a master device and at least one backup device;
the processor 710 upgrades at least one third electronic device according to the upgrade data, including:
when the load of the main equipment is higher than a preset threshold value, determining that the main equipment is in a busy service state;
the output device 730 sends the upgrade data to the at least one standby device in batch, so that the at least one standby device completes the upgrade operation.
In one implementation, the processor 710 upgrades at least one third electronic device according to the upgrade data, including:
determining at least one third electronic device contained in a blockchain network to which the first electronic device belongs;
the output device 730 sends the upgrade data to at least one determined third electronic device, so that each third electronic device is upgraded according to the upgrade data.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and when the program instructions are executed by a processor, the steps performed in the foregoing embodiments may be performed.
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 a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for upgrading a service, the method comprising:
the method comprises the steps that first electronic equipment receives upgrade data sent by second electronic equipment through a preset network connection, wherein the preset network connection is established between the second electronic equipment and an operation and maintenance tool deployed at a preset port of the first electronic equipment;
the first electronic equipment receives an upgrading instruction sent by the second electronic equipment through a preset network connection;
and the first electronic equipment upgrades at least one third electronic equipment according to the upgrade data.
2. The method of claim 1, wherein before the first electronic device receives the upgrade data sent by the second electronic device through the preset network connection, the method further comprises:
the first electronic equipment acquires a pre-configured script through the preset network connection;
and the first electronic equipment backs up the business data of the at least one third electronic equipment according to the script, wherein the business data comprises the historical version data of the at least one third electronic equipment.
3. The method of claim 2, wherein the first electronic device upgrades at least one third electronic device according to the upgrade data, further comprising:
the first electronic equipment monitors the service state of the at least one third electronic equipment within a preset time period;
if the service states of all the third electronic devices in the at least one third electronic device are normal, the first electronic device determines that the upgrade of the at least one third electronic device is successful.
4. The method of claim 3, wherein after the first electronic device monitors the traffic status of the at least one third electronic device for a preset period of time, the method further comprises:
and if the service state of any one of the at least one third electronic device is abnormal, the first electronic device changes the upgrade data into the service data.
5. The method of claim 1, wherein the first electronic device upgrades at least one third electronic device according to the upgrade data, comprising:
and the first electronic equipment sends the upgrading data to the at least one third electronic equipment in batch so as to enable the at least one third electronic equipment to finish upgrading operation.
6. The method of claim 1, wherein the at least one third electronic device comprises: a master device and at least one backup device;
the first electronic device upgrades at least one third electronic device according to the upgrade data, including:
when the load of the main equipment is higher than a preset threshold value, determining that the main equipment is in a busy service state;
and the first electronic equipment sends the upgrade data to the at least one standby equipment in batch so as to enable the at least one standby equipment to complete upgrade operation.
7. The method of claim 1, wherein the first electronic device upgrades at least one third electronic device according to the upgrade data, comprising:
the first electronic equipment determines at least one third electronic equipment contained in a block chain network to which the first electronic equipment belongs;
and the first electronic equipment sends the upgrading data to at least one determined third electronic equipment so as to upgrade each third electronic equipment according to the upgrading data.
8. A service upgrade apparatus, comprising:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving upgrading data sent by second electronic equipment through a preset network connection by first electronic equipment, and the preset network connection is established between the second electronic equipment and an operation and maintenance tool deployed at a preset port of the first electronic equipment;
the receiving module is further used for the first electronic equipment to receive an upgrading instruction sent by the second electronic equipment through a preset network connection;
and the processing module is used for upgrading at least one third electronic device by the first electronic device according to the upgrading data.
9. An electronic device, comprising a memory and a processor, wherein the memory stores a set of program codes, and the processor calls the program codes stored in the memory to execute any one of operations 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 7.
CN202010303440.XA 2020-04-17 2020-04-17 Service upgrading method and device, electronic equipment and storage medium Pending CN111506328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010303440.XA CN111506328A (en) 2020-04-17 2020-04-17 Service upgrading method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010303440.XA CN111506328A (en) 2020-04-17 2020-04-17 Service upgrading method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111506328A true CN111506328A (en) 2020-08-07

Family

ID=71876178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010303440.XA Pending CN111506328A (en) 2020-04-17 2020-04-17 Service upgrading method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111506328A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052021A (en) * 2020-08-12 2020-12-08 中钞信用卡产业发展有限公司杭州区块链技术研究院 Method, device, equipment and storage medium for upgrading block chain of alliance

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052021A (en) * 2020-08-12 2020-12-08 中钞信用卡产业发展有限公司杭州区块链技术研究院 Method, device, equipment and storage medium for upgrading block chain of alliance

Similar Documents

Publication Publication Date Title
CA3155718A1 (en) Grayscale publishing method and device, routing equipment and storage medium
CN113453213B (en) Authentication data synchronization method and device
CN113778623B (en) Resource processing method and device, electronic equipment and storage medium
US20220283822A1 (en) State machine processing method, state processing method, electronic device, and storage medium
CN111885043B (en) Internet account login method, system, equipment and storage medium
CN110162322A (en) A kind of upgrade method and device
CN112714158A (en) Transaction processing method, relay network, cross-link gateway, system, medium, and device
US11374814B2 (en) Network device configuration update using rank and health
CN115373861A (en) GPU resource scheduling method and device, electronic equipment and storage medium
CN111506328A (en) Service upgrading method and device, electronic equipment and storage medium
US11734057B2 (en) Method and apparatus for processing a service of an abnormal server
CN109104292B (en) Update deployment processing method, related device, and computer-readable storage medium
CN110381329B (en) Data processing method and equipment
CN111241200A (en) sSQLite database-based main and standby synchronous processing method and device
CN112738153B (en) Gateway selection method, system, device, server and medium in service system
CN114679295A (en) Firewall security configuration method and device
CN114490135A (en) Task processing method and device, electronic equipment and storage medium
CN113360172A (en) Application deployment method and device, computer equipment and storage medium
CN112732526A (en) Remote management method and system for terminal equipment
CN114173382A (en) Method and device for realizing flow control of virtual number provider based on random algorithm
CN113449035B (en) Data synchronization method, device, computer equipment and readable storage medium
CN118013565A (en) Multi-terminal interaction method, device, electronic equipment and readable storage medium
CN115589610A (en) Network-level disaster recovery drilling method and device, electronic equipment and medium
CN116367204A (en) User equipment service processing method, electronic equipment, storage medium and system
Mbali Establishment of a wan link redundancy solution for the High-availability of internet

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