CN109450688A - A kind of switching method and relevant apparatus of server - Google Patents
A kind of switching method and relevant apparatus of server Download PDFInfo
- Publication number
- CN109450688A CN109450688A CN201811352548.7A CN201811352548A CN109450688A CN 109450688 A CN109450688 A CN 109450688A CN 201811352548 A CN201811352548 A CN 201811352548A CN 109450688 A CN109450688 A CN 109450688A
- Authority
- CN
- China
- Prior art keywords
- server
- service function
- service
- primary server
- primary
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
Abstract
Whether the invention discloses a kind of switching method of server and relevant apparatus, stop from the service function of server detection primary server;If detecting that the service function of the primary server stops from server, the starting service function from server.The present invention can be when the service function for detecting primary server stops, service function of the automatic starting from server, personnel monitoring and operation are not needed, the duration and reliability of service function is ensure that while reducing cost of labor, brings good user experience.
Description
Technical field
The present invention relates to data service technology field, the switching method and relevant apparatus of specially a kind of server.
Background technique
Enterprise Resources Plan (Enterprise Resource Planning, ERP) system be for materials and equipment resources management,
The integrated production management system of enterprise of human resource management, financial resources management, the management of information resources.ERP system one
As use two server framework, two servers are mutually backups, if a server fail, can not continue as user and mention
For service, then another server generation can be switched to for failed server, user's offer service is provided.
Existing server switching method is that the storage resource of the primary server of failure is being automatically switched to active service
After device, the service function for manually booting standby server continues as offering customers service device.Since ERP system can only realize storage
The allotment of the hardware resources such as resource, so having to operator manually boots standby server service function, this just needs to grasp
Make personnel's moment and pay close attention to server conditions, to guarantee the service function of starting standby server in time, needs to consume higher people
Power resources costs, and reliability is poor by the way of artificial monitoring server, once operator in primary server failure
Fail to start standby server in time, cause to service out of stock, customer experience will be seriously affected, or even cause to service provider
Economic loss.
Summary of the invention
The present invention provides a kind of switching method of server and relevant apparatus, can solve in the prior art due to needs
The problem of manually booting at high cost, poor reliability caused by the service function of standby server.
In order to achieve the above objectives, the present invention provides the following technical scheme that
A kind of switching method of server, comprising:
Whether stop from the service function of server detection primary server;
If described detect that the service function of the primary server stops from server, the starting clothes from server
Business function;
Wherein, it is described from the service function of server and the service function of the primary server be identical service function.
Optionally, the service function started described in the starting from server, comprising:
Call the service function started described in service starting script startup from server.
Optionally, described to be used to call storage resource when the primary server breaks down from server, it is described to deposit
The storage resource that storage resource uses when providing service function for the primary server.
Optionally, it is described from the service function of server include ABAP central service example ASCS and database instance DB.
A kind of switching method of server, comprising:
Whether primary server detection book server breaks down;
If the primary server detects that book server breaks down, stop the service function of the primary server.
Optionally, the service function for stopping the primary server, comprising:
Service stopping script is called to stop the service function of the primary server.
Optionally, the service function of the primary server includes ABAP central service example ASCS and database instance DB.
One kind is from server, comprising:
Whether first detection unit, the service function for detecting primary server stop;
Start unit, for when the service function for detecting the primary server stops, starting to be described from server
Service function;
Wherein, it is described from the service function of server and the service function of the primary server be identical service function.
Optionally, the start unit, for calling the service function started described in service starting script startup from server
Energy.
Optionally, described to be used to call storage resource, the storage when the primary server breaks down from server
The storage resource that resource uses when providing service function for the primary server.
A kind of primary server, comprising:
Second detection unit, for detecting whether book server breaks down;
Stop unit, for stopping the service function of the primary server when detecting that book server breaks down.
Optionally, the stop unit, for calling service stopping script to stop the service function of the primary server.
As can be seen from the above technical solutions, the invention discloses a kind of switching method of server and relevant apparatus, from clothes
If business device detects that the service function of the primary server stops, the starting service function from server.Energy of the present invention
Enough when the service function for detecting primary server stops, automatic starting does not need personnel monitoring from the service function of server
And operation, it ensure that the duration and reliability of service function while reducing cost of labor, bring good user's body
It tests.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the switching method of server disclosed by the embodiments of the present invention;
Fig. 2 is the flow chart of the switching method of another server disclosed by the embodiments of the present invention;
Fig. 3 is the configuration diagram of ERP system;
Fig. 4 is a kind of schematic diagram from server disclosed by the embodiments of the present invention;
Fig. 5 is a kind of schematic diagram of primary server disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The present invention provides a kind of switching method of server and device, can solve manual due to needing in the prior art
The problem of starting at high cost, poor reliability caused by the service function of standby server.
As shown in Figure 1, the embodiment of the invention discloses a kind of switching methods of server, comprising the following steps:
S101, whether stop from the service function of server detection primary server.
Optionally, as shown in Fig. 2, being the configuration diagram of ERP system.Main clothes can be detected by heartbeat from server
Whether the service function of business device stops, and is connected between server and primary server by a radical center wire jumper.Under normal circumstances,
It is equipped with two pieces of network interface cards on the server, one of communication dedicated between two-server, two-server can be with
By heartbeat come the operating status of real-time monitoring other side.
Wherein, two optical fiber switch by optical fiber connect primary server, from server and storage resource, as main service
Device and approach from server calls storage resource.
If S102, the service function stopping for detecting the primary server from server, starting are described from service
The service function of device.
It should be noted that once providing the primary server of service function because of various hardware faults, as power supply loses
Effect, main component failure or boot disk failure etc. lead to system jam, and heartbeat can be by the information of primary server failure
It is reflected to as spare from server.Heartbeat can also be to the service from server reflection primary server in the present embodiment
The information of function stop can start when the service function for detecting primary server stops from server automatically from server
Service function continues as user and provides service.
In step s 102, it is described from the service function of server and the service function of the primary server be identical clothes
Business function.Therefore, primary server is when service can not be provided for user by breaking down, the slave server with same services function
The work that primary server can be taken over continues as user and provides identical service, improves the service experience of user.
Optionally, it is described from the service function of server include ABAP central service example (ABAP Central
Services Instance, ASCS) and database instance (DataBase instance, DB).
It optionally, is SAP ASCS clothes from the service function of server if being SAP ERP system from the system of server
Function of being engaged in and SAP DB service function.
It should be noted that ASCS service function and DB service function are the core resources of SAP ERP system, dispose respectively
In failover group corresponding with primary server, switched over when primary server breaks down, with guarantee continue to
Family provides service.
Optionally, a kind of embodiment of the service function started described in the starting in step S102 from server, comprising:
Call the service function started described in service starting script startup from server.
Specifically, service starting script is also classified into two kinds due to including two kinds of service functions from server, one is
For starting the appstart.sh script of SAP ASCS service function, content for script is as follows:
if[-d"/usr/sap/PRD/ASCS00"];then
su-prdadm-c“startsap r3ASCS00”
fi
exit 0。
Another kind is the dbstart.sh script for starting SAP DB service function, and content for script is as follows:
if[-d"/oracle/PRD/11204"];then
su-oraprd-c“lsnrctl start”
su-prdadm-c“startdb”
fi
exit 0。
Optionally, described to be used to call storage resource, the storage when the primary server breaks down from server
The storage resource that resource uses when providing service function for the primary server.
It should be noted that the storage resource is primary server and the shared storage resource from server, primary server
With can be called from server in operation service function storage resource be user service.
In addition, can be from the time of server calls storage resource in the service function for detecting primary server from server
When can stop, it is also possible to other times, or meets preset condition, specifically can according to need sets itself.
A kind of switching method of server disclosed in the present embodiment, if detecting the service of the primary server from server
Function stop, then from the service function of server described in starting.The present invention can stop in the service function for detecting primary server
When only, automatic starting does not need personnel monitoring and operation, guarantee while reducing cost of labor from the service function of server
The duration and reliability of service function, brings good user experience.
As shown in figure 3, the embodiment of the invention discloses the switching methods of another server, comprising the following steps:
Whether S301, primary server detection book server break down.
If S302, the primary server detect that book server breaks down, stop the service function of the primary server
Energy.
It should be noted that the fault condition of primary server is broadly divided into two kinds in the present embodiment, one is primary servers
Because failure causes service function to stop, or directly power off, in this case heartbeat can directly reflect primary server can not
Execute service function;Another kind is primary server failure, but still runs service function, and primary server can be automatically stopped at this time
Its service function, enable heartbeat to reflect from server primary server service function stop situation.
Optionally, the service function of the primary server includes ABAP central service example (ABAP Central
Services Instance, ASCS) and database instance (DataBase instance, DB)
Optionally, if the system of primary server is SAP ERP system, the service function of primary server is SAP ASCS clothes
Function of being engaged in and SAP DB service function.
It should be noted that ASCS service function and DB service function are the core resources of SAP ERP system, dispose respectively
In failover group corresponding with primary server, switched over when primary server breaks down, with guarantee continue to
Family provides service.
Optionally, stop a kind of embodiment of the service function of the primary server in step S302, comprising:
Service stopping script is called to stop the service function of the primary server.
Specifically, service stopping script is also classified into two kinds since primary server includes two kinds of service functions, one is
For stopping the appstop.sh script of SAP ASCS service function, content for script is as follows:
if[-d"/usr/sap/PRD/ASCS00"];then
su-prdadm-c“stopsap r3ASCS00”
su-prdadm-c“sapcontrol-nr 00-function StopService”
su-prdadm-c“cleanipc 00remove”
slibclean
fi
exit 0。
Another kind is the dbstop.sh script for stopping SAP DB service function, and content for script is as follows:
if[-d"/oracle/PRD/11204"];then
su-prdadm-c“stopdb”
su-oraadm-c“lsnrctl stop”
fi
exit 0。
Present embodiment discloses the switching methods of another server, if primary server detects that event occurs in book server
Barrier, then stop the service function of the primary server.Primary server can stop automatically when detecting faults itself in the present invention
Only service function does not need personnel monitoring and operation, ensure that while reducing cost of labor service function duration and
Reliability brings good user experience.
Based on the switching method of two kinds of servers disclosed in the embodiments of the present invention, Fig. 4 is specifically disclosed using first
The slave server of the switching method of kind server, Fig. 5 specifically disclose the main service of the switching method using second of server
Device.
As shown in figure 4, another embodiment of the present invention discloses one kind from server, comprising:
Whether first detection unit 401, the service function for detecting primary server stop.
Start unit 402, for when the service function for detecting the primary server stops, starting to be described from server
Service function.
Wherein, it is described from the service function of server and the service function of the primary server be identical service function.
Optionally, the start unit 402, for calling the service started described in service starting script startup from server
Function.
Optionally, described to be used to call storage resource, the storage when the primary server breaks down from server
The storage resource that resource uses when providing service function for the primary server.
The first detection unit 401 and start unit 402 disclosed by the embodiments of the present invention from server is specific above
The course of work, reference can be made to the corresponding content in the switching method of the first server disclosed in the above embodiment of the present invention, here
No longer repeated.
The present embodiment is disclosed from server, can be when the service function for detecting the primary server stops, starting
The service function from server.The present invention can when the service function for detecting primary server stops, automatic starting from
The service function of server, does not need personnel monitoring and operation, ensure that holding for service function while reducing cost of labor
Continuous property and reliability, bring good user experience.
As shown in figure 5, another embodiment of the present invention discloses a kind of primary server, comprising:
Second detection unit 501, for detecting whether book server breaks down.
Stop unit 502, for stopping the service function of the primary server when detecting that book server breaks down
Energy.
Optionally, the stop unit 502, for calling service stopping script to stop the service function of the primary server
Energy.
Second detection unit 501 and stop unit 502 in the above primary server disclosed by the embodiments of the present invention it is specific
The course of work, reference can be made to the corresponding content in product marketing forecast method disclosed in the above embodiment of the present invention, here no longer into
Row repeats.
Primary server disclosed in the present embodiment stops the primary server when detecting that book server breaks down
Service function.Primary server can be automatically stopped service function when detecting faults itself in the present invention, not need personnel's prison
Control and operation, ensure that the duration and reliability of service function, bring good user while reducing cost of labor
Experience.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (12)
1. a kind of switching method of server characterized by comprising
Whether stop from the service function of server detection primary server;
If described detect that the service function of the primary server stops from server, the starting service function from server
Energy;
Wherein, it is described from the service function of server and the service function of the primary server be identical service function.
2. switching method according to claim 1, which is characterized in that the service function started described in the starting from server
It can, comprising:
Call the service function started described in service starting script startup from server.
3. switching method according to claim 1, which is characterized in that described to be used for from server in the primary server
Storage resource is called when failure, the storage money that the storage resource uses when providing service function for the primary server
Source.
4. switching method according to any one of claim 1-3, which is characterized in that the service function from server
Including ABAP central service example ASCS and database instance DB.
5. a kind of switching method of server characterized by comprising
Whether primary server detection book server breaks down;
If the primary server detects that book server breaks down, stop the service function of the primary server.
6. switching method according to claim 5, which is characterized in that the service function for stopping the primary server,
Include:
Service stopping script is called to stop the service function of the primary server.
7. the switching method according to any one of claim 5-6, which is characterized in that the service function of the primary server
Including ABAP central service example ASCS and database instance DB.
8. a kind of from server characterized by comprising
Whether first detection unit, the service function for detecting primary server stop;
Start unit, for starting the service from server when the service function for detecting the primary server stops
Function;
Wherein, it is described from the service function of server and the service function of the primary server be identical service function.
9. according to claim 8 from server, which is characterized in that the start unit, for calling service starting foot
This starting service function started from server.
10. according to claim 8 from server, which is characterized in that described to be used for from server in the primary server
Storage resource is called when failure, the storage money that the storage resource uses when providing service function for the primary server
Source.
11. a kind of primary server characterized by comprising
Second detection unit, for detecting whether book server breaks down;
Stop unit, for stopping the service function of the primary server when detecting that book server breaks down.
12. primary server according to claim 11, which is characterized in that the stop unit, for calling service stopping
Script stops the service function of the primary server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811352548.7A CN109450688A (en) | 2018-11-14 | 2018-11-14 | A kind of switching method and relevant apparatus of server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811352548.7A CN109450688A (en) | 2018-11-14 | 2018-11-14 | A kind of switching method and relevant apparatus of server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109450688A true CN109450688A (en) | 2019-03-08 |
Family
ID=65553385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811352548.7A Pending CN109450688A (en) | 2018-11-14 | 2018-11-14 | A kind of switching method and relevant apparatus of server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109450688A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756171A (en) * | 2004-09-29 | 2006-04-05 | 周亚格 | Digital media advertising system and its method |
CN103618788A (en) * | 2013-11-26 | 2014-03-05 | 曙光信息产业股份有限公司 | System high-availability method supporting B/S structure |
CN104158693A (en) * | 2014-08-27 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | A method and a system for disaster recovery backup of data service |
US20150113187A1 (en) * | 2013-10-22 | 2015-04-23 | Inventec Corporation | Server System |
CN104699497A (en) * | 2013-12-09 | 2015-06-10 | 联想(新加坡)私人有限公司 | Service processor for configuring servers joining peer to peer network |
CN107911238A (en) * | 2017-11-13 | 2018-04-13 | 郑州云海信息技术有限公司 | One kind is based on IPSAN servers two unit standby method and system |
-
2018
- 2018-11-14 CN CN201811352548.7A patent/CN109450688A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756171A (en) * | 2004-09-29 | 2006-04-05 | 周亚格 | Digital media advertising system and its method |
US20150113187A1 (en) * | 2013-10-22 | 2015-04-23 | Inventec Corporation | Server System |
CN103618788A (en) * | 2013-11-26 | 2014-03-05 | 曙光信息产业股份有限公司 | System high-availability method supporting B/S structure |
CN104699497A (en) * | 2013-12-09 | 2015-06-10 | 联想(新加坡)私人有限公司 | Service processor for configuring servers joining peer to peer network |
CN104158693A (en) * | 2014-08-27 | 2014-11-19 | 乐视网信息技术(北京)股份有限公司 | A method and a system for disaster recovery backup of data service |
CN107911238A (en) * | 2017-11-13 | 2018-04-13 | 郑州云海信息技术有限公司 | One kind is based on IPSAN servers two unit standby method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI746512B (en) | Physical machine fault classification processing method and device, and virtual machine recovery method and system | |
CN103607297B (en) | Fault processing method of computer cluster system | |
Bailis et al. | The network is reliable: An informal survey of real-world communications failures | |
CN108632057A (en) | A kind of fault recovery method of cloud computing server, device and management system | |
Bauer et al. | Reliability and availability of cloud computing | |
Pertet et al. | Causes of failure in web applications | |
US7818621B2 (en) | Data center boot order control | |
CN108616404A (en) | A kind of client service method, management platform, storage medium and system | |
CN104408071A (en) | Distributive database high-availability method and system based on cluster manager | |
CN111209110B (en) | Task scheduling management method, system and storage medium for realizing load balancing | |
CN100421390C (en) | Client service emergency system and its realizing method | |
CN105306272A (en) | Method and system for collecting fault scene information of information system | |
CN103064860A (en) | Database high availability implementation method and device | |
CN106789306A (en) | Restoration methods and system are collected in communication equipment software fault detect | |
CN109245966A (en) | The monitoring method and device of the service state of cloud platform | |
CN109600264A (en) | CloudStack cloud platform | |
WO2024113780A1 (en) | Fc link management method, apparatus and device, and readable storage medium | |
CN108762886A (en) | The fault detect restoration methods and system of virtual machine | |
CN111224819A (en) | Distributed messaging system | |
CN106598767B (en) | Intelligent substation monitoring service console implementation method based on watchdog technique | |
JP2020129184A (en) | Cluster system, control method thereof, server, and program | |
CN101686261A (en) | RAC-based redundant server system | |
CN109450688A (en) | A kind of switching method and relevant apparatus of server | |
CN110224880A (en) | A kind of heartbeat inspecting method and monitoring device | |
CN104199866B (en) | A kind of offer machine abnormality eliminating method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |