CN109871267B - One-key start-stop method and system for base priority - Google Patents

One-key start-stop method and system for base priority Download PDF

Info

Publication number
CN109871267B
CN109871267B CN201811596897.3A CN201811596897A CN109871267B CN 109871267 B CN109871267 B CN 109871267B CN 201811596897 A CN201811596897 A CN 201811596897A CN 109871267 B CN109871267 B CN 109871267B
Authority
CN
China
Prior art keywords
service
equipment
stop
priority
script
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
CN201811596897.3A
Other languages
Chinese (zh)
Other versions
CN109871267A (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.)
State Grid Gansu Electric Power Co Ltd
Nari Information and Communication Technology Co
Information and Telecommunication Branch of State Grid Gansu Electric Power Co Ltd
Original Assignee
State Grid Gansu Electric Power Co Ltd
Nari Information and Communication Technology Co
Information and Telecommunication Branch of State Grid Gansu Electric Power 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 State Grid Gansu Electric Power Co Ltd, Nari Information and Communication Technology Co, Information and Telecommunication Branch of State Grid Gansu Electric Power Co Ltd filed Critical State Grid Gansu Electric Power Co Ltd
Priority to CN201811596897.3A priority Critical patent/CN109871267B/en
Publication of CN109871267A publication Critical patent/CN109871267A/en
Application granted granted Critical
Publication of CN109871267B publication Critical patent/CN109871267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a one-key start-stop method and a one-key start-stop system of a base priority, which comprise the steps of establishing a hardware equipment resource library; establishing a universal service script; establishing a system information base, and establishing topological relations of a system, a service script and hardware equipment resources according to the equipment resource base and the system information base; the method and the system realize the one-key start-stop of the system, provide a feasible technical scheme for the automatic operation and maintenance of the information system and equipment resources, effectively solve the problems of start-stop and shutdown of the information system and equipment resources in emergency, and effectively prevent the failure of the application level of the server and the problem of difficult recovery of the system caused by the failure.

Description

One-key start-stop method and system for base priority
Technical Field
The invention belongs to the technical field of operation and maintenance of service systems, and particularly relates to a single-phase high-resistance ground fault detection method for a power distribution network.
Background
With the development of enterprise informatization, business systems required by enterprises are continuously increased, the related software and hardware environments are gradually enlarged, the service time of basic equipment is increased, and faults of the infrastructure in operation are gradually increased, such as faults of a precise air conditioner, hidden power supply hazards caused by switching off in power failure and the like. When the infrastructure of the machine room has power failure and air conditioner faults, emergency measures need to be immediately developed to shut down the server. Because the data center servers are numerous, the traditional server shutdown mode needs to log in the system one by one and perform shutdown operation, and the system is involved in a plurality of people, complicated in shutdown, long in duration and poor in emergency effect, and when the temperature of a machine room rapidly rises to reach the critical point of downtime of the server, the server is not normally shutdown, so that the failure of the application level of the server is caused, and the system is not easy to recover.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a one-key start-stop method of a base priority, which can finish the start-stop of a system and equipment resources under an emergency condition.
The technical problems of the invention are mainly solved by the following technical proposal:
a priority-based one-touch start-stop method, comprising:
establishing a hardware equipment resource library;
establishing a universal service script;
establishing a system information base, and establishing topological relations of a system, a service script and hardware equipment resources according to the equipment resource base and the system information base;
generating a one-key start-stop topology relation tree according to the topology relation, and performing start-stop operation of the system and the equipment according to the relation tree and the priority of the service and the equipment, wherein the method specifically comprises the following steps:
generating a start-stop operation topology tree according to the topology relation;
performing authority control auditing on the operation;
performing start-stop operation on the service of each system according to the priority of the service, and updating the states of the system and the service after the operation is completed;
checking the operation authority of the equipment;
and closing the equipment according to the priority of the equipment, and updating the equipment state after the operation is completed.
Further, the hardware equipment resource library comprises equipment names, equipment classifications, equipment IPs, a machine room, a cabinet number and equipment responsible person information.
Further, the system information includes a system name, a system priority, and a system request address.
Further, the establishing the topological relation among the system, the service script and the hardware equipment resource comprises the following steps: and establishing a corresponding relation between the system and the service, a corresponding relation between the service script and the service and a corresponding relation between the service script and the equipment.
A priority-based one-touch start-stop system, comprising:
a topology establishment module:
the method is used for establishing a hardware equipment resource library;
establishing a universal service script;
establishing a system information base, and establishing topological relations of a system, a service script and hardware equipment resources according to the equipment resource base and the system information base;
and a start-stop module: the method is used for generating a one-key start-stop topology relation tree according to the topology relation, and performing start-stop operation on the system and the equipment according to the relation tree and the priority of the service and the equipment.
Furthermore, the start-stop operation is executed in parallel in a multithread mode based on the mode of the activeqmessage middleware.
Further, the start-stop operations all provide operation log queries.
The beneficial effects of the invention are as follows: the invention provides an information system start-stop method based on priority control, realizes one-key start-stop of the system, provides a feasible technical scheme for automatic operation and maintenance of information system and equipment resources, effectively solves the problems of start-stop and shutdown of the information system and the equipment resources in emergency, and effectively prevents the problems of failure of server application level and difficult recovery of the system.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a one-touch start-stop method of base priority according to the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making clear and defining the scope of the present invention.
The invention aims to provide a simple, efficient and reliable method based on priority control, which is used for realizing one-key start-stop and shutdown of each information system and equipment resources based on priority control under emergency conditions, effectively influencing equipment resources and information systems by machine room infrastructure faults, and simultaneously preventing unordered start-stop operation from influencing the information systems, so that the problems of losing and damaging information such as data and information, or incapability of starting service processes and the like are solved. Meanwhile, an information base of a data center information system, a service operation script and equipment resources is built, and unified and normative management is realized. And can realize the independent start-stop and shutdown operations of specific information systems, services or equipment.
As shown in fig. 1, the one-key start-stop method of the base priority provided by the invention comprises the following steps:
1. establishing unified hardware equipment resource library
And carrying out unified standard management on all equipment resources of the data center, wherein the equipment resource information comprises equipment resource names, resource classification, equipment IP, a machine room, a cabinet number, equipment responsibility people and the like. The equipment information can be conveniently and accurately maintained through the equipment resource library.
2. Establishing a standard general service script;
providing a universal script library with unified specification, and carrying out centralized unified management on the script library, wherein the content comprises the following steps: start-stop object, script name, operation type, execution script, return identifier, version information, execution protocol, operation risk level, description information, etc.
The start-stop object refers to an operation object corresponding to a script, and comprises a system service (such as httpd service, snmpd service and the like), a database service (such as Oracle, mysql, mongoDB service process), a middleware service (such as Weblogic, tomcat, activeMQ service process), an application program (Java/C/C++ developed application program process), an operating system (Windows, linux, aix, HP-UNIX and the like) and the like.
The operation types include a start script, a stop script, a restart script, and a state acquisition script.
The execution protocol refers to protocol information used to perform script operations, such as SSH, SSH_NET, ZMQ/saltstack, http protocol, etc.
The execution script is specific content information, and the start-stop operation of the start-stop object is performed based on the script. The templated script content is provided based on different start-stop service objects, and variable information in the templated script content is identified, such as path information of the service, database instance ID, a saltstack client ID and the like. When in use, the variable part is instantiated according to specific conditions.
3. And establishing an information base of the service system, establishing topological relations of the system, the service script and the hardware equipment resources according to the equipment resource base and the system information base, and associating the service system information, the service script information and the equipment resources based on actual services. The business system information comprises a system name, a system priority and a system request address; the service information corresponding to the service system information comprises a service type, a service name, a start script, a stop script, a restart script, a state acquisition script and a service priority; and associating the service script with the corresponding equipment resource, and realizing the organic concatenation from the service system information and the service script to the equipment resource.
4. Generating a one-key start-stop topological relation tree according to the topological relation, then performing start-stop and shutdown operations of the information system and the equipment based on the priority, performing authority control and operation audit on the start-stop operations before the start-stop execution of the information system, and preventing misoperation through a password verification mode.
The priority-based information system is used for one-key start-stop and equipment shutdown operation, and is embodied in two aspects of service priority and equipment priority.
One of the service priorities is embodied by the type of start-stop object, such as starting in the order of system service, database service, middleware service, application for start-up operations, and operating in the reverse order for stop operations. In addition, if the sequence requirement exists for a plurality of the same type of start-stop objects, the start-stop sequence of each service object can be defined for control.
The device priority refers to that, after the shutdown operation of each information system is completed, each virtual machine is first shut down and then the physical host is shut down for the shutdown operation of the device resource.
In addition, the system also supports individual start-stop and shut-down operations for a certain service or device.
The invention provides a priority-based one-key start-stop system, which comprises:
a topology establishment module:
the method is used for establishing a hardware equipment resource library;
establishing a universal service script;
establishing a system information base, and establishing topological relations of a system, a service script and hardware equipment resources according to the equipment resource base and the system information base;
and a start-stop module: the method is used for generating a one-key start-stop topology relation tree according to the topology relation, and performing start-stop operation on the system and the equipment according to the relation tree and the priority of the service and the equipment.
Because of the large number of information systems in a data center, the number of involved equipment resources is large, and a large number of information systems and equipment resources need to be closed in a short time in an emergency, so that a one-key start-stop system must have parallel execution capability. The invention adopts the mode based on the activemq message middleware to realize the multithread parallel execution. The execution efficiency of the system is improved through the parallel execution of the multithreading, and the execution time of the system is greatly shortened.
In the processes of information system start-stop and equipment resource shutdown operation, the execution condition of each information system and equipment needs to be checked dynamically in real time. The log information generated in the execution process of the system is stored in the shared memory, and the foreground directly reads the log execution information from the shared memory to display, so that frequent operation on a database is reduced, and more efficient execution capacity is achieved.
The foregoing is merely illustrative of specific embodiments of the present invention, and the scope of the invention is not limited thereto, but any changes or substitutions that do not undergo the inventive effort should be construed as falling within the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope defined by the claims.

Claims (4)

1. A priority-based one-touch start-stop method, comprising:
establishing a hardware equipment resource library;
the hardware equipment resource library comprises equipment names, equipment classification, equipment IP, a machine room, a cabinet number and equipment responsible person information;
establishing a universal service script;
the general service script comprises a start-stop object, a script name, an operation type, an execution script, a return identifier, version information, an execution protocol, an operation risk level and description information;
establishing a system information base, and establishing topological relations of a system, a service script and hardware equipment resources according to the equipment resource base and the system information base, wherein the method specifically comprises the following steps: establishing a corresponding relation between a system and a service, a corresponding relation between a service script and the service, and a corresponding relation between the service script and equipment;
the system information comprises a system name, a system priority and a system request address;
generating a one-key start-stop topology relation tree according to the topology relation, and performing start-stop operation of the system and the equipment according to the relation tree and the priority of the service and the equipment, wherein the method specifically comprises the following steps: generating a start-stop operation topology tree according to the topology relation;
performing authority control auditing on the operation;
performing start-stop operation on the service of each system according to the priority of the service, and updating the states of the system and the service after the operation is completed;
checking the operation authority of the equipment;
performing closing operation of the equipment according to the priority of the equipment, and updating the equipment state after the operation is completed;
service priority means that for start operation, starting is performed in the order of system service, database service, middleware service, and application program, and for stop operation, operation is performed in the reverse order;
the device priority refers to that after the shutdown operation of each information system is completed, each virtual machine is first shut down for the shutdown operation of the device resource, and then the physical host is shut down.
2. A priority-based one-touch start-stop system, comprising:
a topology establishment module:
the method is used for establishing a hardware equipment resource library; the hardware equipment resource library comprises equipment names, equipment classification, equipment IP, a machine room, a cabinet number and equipment responsible person information;
establishing a universal service script; the general service script comprises a start-stop object, a script name, an operation type, an execution script, a return identifier, version information, an execution protocol, an operation risk level and description information;
establishing a system information base, and establishing topological relations of a system, a service script and hardware equipment resources according to the equipment resource base and the system information base, wherein the method specifically comprises the following steps: establishing a corresponding relation between a system and a service, a corresponding relation between a service script and the service, and a corresponding relation between the service script and equipment;
the system information comprises a system name, a system priority and a system request address;
and a start-stop module: the method is used for generating a one-key start-stop topology relation tree according to the topology relation, and carrying out start-stop operation of the system and the equipment according to the relation tree and the priority of the service and the equipment, and specifically comprises the following steps: generating a start-stop operation topology tree according to the topology relation;
performing authority control auditing on the operation;
performing start-stop operation on the service of each system according to the priority of the service, and updating the states of the system and the service after the operation is completed;
checking the operation authority of the equipment;
performing closing operation of the equipment according to the priority of the equipment, and updating the equipment state after the operation is completed;
service priority means that for start operation, starting is performed in the order of system service, database service, middleware service, and application program, and for stop operation, operation is performed in the reverse order;
the device priority refers to that after the shutdown operation of each information system is completed, each virtual machine is first shut down for the shutdown operation of the device resource, and then the physical host is shut down.
3. The priority-based one-touch start-stop system of claim 2, wherein start-stop operations are performed in parallel in a multithreaded manner based on activemq message middleware.
4. The priority-based one-touch start-stop system of claim 2 wherein start-stop operations each provide an operation log query.
CN201811596897.3A 2018-12-26 2018-12-26 One-key start-stop method and system for base priority Active CN109871267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811596897.3A CN109871267B (en) 2018-12-26 2018-12-26 One-key start-stop method and system for base priority

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811596897.3A CN109871267B (en) 2018-12-26 2018-12-26 One-key start-stop method and system for base priority

Publications (2)

Publication Number Publication Date
CN109871267A CN109871267A (en) 2019-06-11
CN109871267B true CN109871267B (en) 2023-05-09

Family

ID=66917127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811596897.3A Active CN109871267B (en) 2018-12-26 2018-12-26 One-key start-stop method and system for base priority

Country Status (1)

Country Link
CN (1) CN109871267B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769709A (en) * 2012-06-25 2012-11-07 百度在线网络技术(北京)有限公司 Method and device for supplying service contact information to users
CN103401896A (en) * 2013-07-15 2013-11-20 四川公用信息产业有限责任公司 Multi-Android-client service sharing method and system
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN105653401A (en) * 2015-12-28 2016-06-08 中国民生银行股份有限公司 Method and device for scheduling disaster recovery, operation and maintenance, monitoring and emergency start-stop of application systems
CN106254534A (en) * 2016-09-22 2016-12-21 南京中新赛克科技有限责任公司 Distributed type assemblies monitoring agent based on mixed architecture and method
CN107124292A (en) * 2017-03-13 2017-09-01 国网江苏省电力公司信息通信分公司 A kind of information system method of operation incidence relation dynamic creation method
CN107659423A (en) * 2016-07-25 2018-02-02 南京中兴新软件有限责任公司 Method for processing business and device
CN107995286A (en) * 2017-11-30 2018-05-04 平安科技(深圳)有限公司 Service automatic start-stop method, server and storage medium based on dubbo platforms
CN108509566A (en) * 2018-03-26 2018-09-07 国家电网公司客户服务中心 One kind is based on 95598 data publication service operation system network topology method for visualizing on cloud

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307291A1 (en) * 2010-06-14 2011-12-15 Jerome Rolia Creating a capacity planning scenario

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102769709A (en) * 2012-06-25 2012-11-07 百度在线网络技术(北京)有限公司 Method and device for supplying service contact information to users
CN103401896A (en) * 2013-07-15 2013-11-20 四川公用信息产业有限责任公司 Multi-Android-client service sharing method and system
CN103888287A (en) * 2013-12-18 2014-06-25 北京首都国际机场股份有限公司 Information system integrated operation and maintenance monitoring service early warning platform and realization method thereof
CN105653401A (en) * 2015-12-28 2016-06-08 中国民生银行股份有限公司 Method and device for scheduling disaster recovery, operation and maintenance, monitoring and emergency start-stop of application systems
CN107659423A (en) * 2016-07-25 2018-02-02 南京中兴新软件有限责任公司 Method for processing business and device
CN106254534A (en) * 2016-09-22 2016-12-21 南京中新赛克科技有限责任公司 Distributed type assemblies monitoring agent based on mixed architecture and method
CN107124292A (en) * 2017-03-13 2017-09-01 国网江苏省电力公司信息通信分公司 A kind of information system method of operation incidence relation dynamic creation method
CN107995286A (en) * 2017-11-30 2018-05-04 平安科技(深圳)有限公司 Service automatic start-stop method, server and storage medium based on dubbo platforms
CN108509566A (en) * 2018-03-26 2018-09-07 国家电网公司客户服务中心 One kind is based on 95598 data publication service operation system network topology method for visualizing on cloud

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
电网信息系统智能运维监控云平台的应用;赵静等;《大众用电》;20161225;全文 *

Also Published As

Publication number Publication date
CN109871267A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
CN108600029B (en) Configuration file updating method and device, terminal equipment and storage medium
CN109495308B (en) Automatic operation and maintenance system based on management information system
US9979608B2 (en) Context graph generation
CN109857613B (en) Automatic operation and maintenance system based on collection cluster
EP2675127B1 (en) Method and device for automatically migrating system configuration item
US9450700B1 (en) Efficient network fleet monitoring
CN109800160B (en) Cluster server fault testing method and related device in machine learning system
CN109992350B (en) Migration method and device for virtual machines in resource pool of cloud computing system
CN108200111B (en) Resource configuration information updating method and device and resource interface equipment
CN110825420A (en) Configuration parameter updating method, device, equipment and storage medium for distributed cluster
WO2021203979A1 (en) Operation and maintenance processing method and apparatus, and computer device
WO2020228276A1 (en) Network alert method and device
CN102497427A (en) Method and device for realizing data acquisition services of renewable energy source monitoring system
US20170279660A1 (en) Context graph augmentation
US10089167B2 (en) Log file reduction according to problem-space network topology
US20200210293A1 (en) Application health monitoring and automatic remediation
CN111651319A (en) Synchronous start-stop method for monitoring system application service
US9922539B1 (en) System and method of telecommunication network infrastructure alarms queuing and multi-threading
CN106487598B (en) The more examples of isomery redundancy Snmp agreements realize system and its implementation
CN111224819A (en) Distributed messaging system
CN109871267B (en) One-key start-stop method and system for base priority
CN110162312B (en) BeeGFS configuration method and device based on IML
CN109144676A (en) A kind of self-starting detection method, device and the server of application program
CN108154343B (en) Emergency processing method and system for enterprise-level information system
CN111162938A (en) Data processing system and method

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