CN110493061A - A kind of management method and system of NTP cluster - Google Patents

A kind of management method and system of NTP cluster Download PDF

Info

Publication number
CN110493061A
CN110493061A CN201910812192.9A CN201910812192A CN110493061A CN 110493061 A CN110493061 A CN 110493061A CN 201910812192 A CN201910812192 A CN 201910812192A CN 110493061 A CN110493061 A CN 110493061A
Authority
CN
China
Prior art keywords
cluster
ntp
node
program
framework
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
CN201910812192.9A
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.)
Inspur Software Co Ltd
Original Assignee
Inspur Software 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 Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201910812192.9A priority Critical patent/CN110493061A/en
Publication of CN110493061A publication Critical patent/CN110493061A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses the management methods and system of a kind of NTP cluster, belong to server cluster network time synchronization administrative skill field.The management method of NTP cluster of the invention writes the program of a B/S framework by Java language, JavaScript language and html language, introduce open source component, host is remotely connected using ssh by open source component, host is operated, visual page is provided, user is operated by browser accession page, specifically includes the following steps: S1, cluster are built;The automation of S2, NTP software is installed;The visual configuration of S3, NTP cluster;The monitoring of S4, NTP synchronous regime.The management method of the NTP cluster of the invention, which can exempt, to be required to carry out a large amount of repetitive operations for each node, to reduce the burden of user, and while can be reduced manual operation may malfunction problem, have good application value.

Description

A kind of management method and system of NTP cluster
Technical field
The present invention relates to server cluster network time synchronization administrative skill fields, specifically provide a kind of pipe of NTP cluster Manage method and system.
Background technique
NTP, full name Network Time Protocol, i.e. Network Time Protocol.NTP is for keeping computer time same A kind of agreement of stepization, it can be calibrated and be synchronized with the basis of time time source of computer, and time error control is finally made In lower range, the time difference can be less than 1 millisecond in some cases.
For single computer, if can be used in national time service in the point-device situation of time requirement The time source of the authoritative departments such as heart publication synchronizes.For computer cluster, if when between node each in cluster Between the smaller situation of relative error, can choose and allow all node configurations in cluster using source at the same time, can also To choose a host as server, remaining node is using this node as time source.
Present most distributed type assemblies require the time error of each node relatively stringenter.If between each node Time error it is bigger, the service that gently then may cause the cluster is not normally functioning or operation result is chaotic, it is heavy then can Catastrophic accident can be will lead to.Therefore, this type of cluster big city carries out time synchronization using NTP or similar service, with Guarantee the normal operation of cluster.
NTP service can be disposed by manually mode and be managed to each node in cluster, and the time of cluster is made to keep same Step.But for the most cluster using (SuSE) Linux OS, due to lacking the support of GUI, simultaneously by manually dispose The operation for managing NTP service is relatively complicated, and lacks effective means and go to monitor all nodes from the level of entire cluster Situation.When the NTP service of manually dispose cluster, needs to install NTP service manually on each node, modify configuration file, hand Dynamic starting, which services, simultaneously waits for time synchronization, subsequent state, which is checked, to be also required to carry out manually, and can not system check The state of all nodes in cluster.If other node states need to be checked, respective nodes need to be switched to and operated.
Summary of the invention
Technical assignment of the invention is that in view of the above problems, providing one kind and capable of exempting needs for each node A large amount of repetitive operations are carried out, to reduce the burden of user, and while can be reduced manual operation may malfunction the NTP collection of problem The management method of group.
The further technical assignment of the present invention is to provide a kind of management system of NTP cluster.
To achieve the above object, the present invention provides the following technical scheme that
A kind of management method of NTP cluster, writes one by Java language, JavaScript language and html language The program of B/S framework introduces open source component, remotely connects host using ssh by open source component, operates, mention to host For visual page, user is operated by browser accession page, specifically includes the following steps:
S1, cluster are built;
The automation of S2, NTP software is installed;
The visual configuration of S3, NTP cluster;
The monitoring of S4, NTP synchronous regime.
Ganymed-ssh2 is introduced in the program of B/S framework freely to increase income component, it is long-range using ssh by open source component Host is connected, host is operated, which is issued using Tomcat, provides visual page, and user passes through clear Device accession page of looking at is operated.
Choosing any node in cluster, as host, the war file that the program of B/S framework is provided is carried out by Tomcat Deployment, and use browser successful access administration page.
Preferably, carrying out cluster in the program page output cluster name to be constructed of B/S framework in the building of cluster Building, obtain cluster interior joint user name and password, input user name and password in the program page of B/S framework, will save Point is added to cluster.
After the program operation of B/S framework, cluster need to be constructed when using for the first time, which is the NTP that need to be managed Cluster.
Preferably, the state that the program of B/S framework reads node NTP automatically is gone forward side by side row-column list after the completion of cluster building It shows, state of the user according to cluster interior joint and the planning to the cluster, the automation for carrying out NTP software to cluster is pacified Dress.
Preferably, NTP's is set as the corresponding configuration file of modification NTP, specially corresponding configuration file is written Program, and restart NTP and come into force;Individual node service is configured in program end, each node is issued to and executes respectively, is completed Entire cluster setting.
Check that synchronous regime instructs accordingly preferably, connecting to issue to individual node by ssh, program uses timing Task is spaced is polled to node serve state at a fixed time.
A kind of management system of NTP cluster, specifically includes with lower module:
Cluster building module, for building cluster;
NTP software automation installs module, for automating installation NTP software;
NTP cluster visual configuration module is used for visual configuration NTP cluster;
NTP synchronous regime monitoring module, for monitoring NTP synchronous regime.
The management system of the NTP cluster writes a B/S by Java language, JavaScript language and html language The program of framework introduces open source component, remotely connects host using ssh by open source component, operates to host, providing can Depending on changing the page, user is operated by browser accession page.
Preferably, cluster building module, carries out the structure of cluster in the page output cluster name to be constructed of B/S framework It builds, obtains the user name and password of cluster interior joint, input user name and password in the program page of B/S framework, node is added Add to cluster.
Preferably, the NTP software automation installation module is after the completion of cluster constructs, the program of B/S framework is automatic The state for reading node NTP is gone forward side by side row-column list displaying, and state of the user according to cluster interior joint and the planning to the cluster are right Cluster carries out the automation installation of NTP software.
Preferably, NTP's is set as the corresponding configuration file of modification NTP, tool in NTP cluster visual configuration module Body is that corresponding configuration file write-in program and is restarted NTP and come into force;Individual node service is configured in program end, under It is sent to each node to execute respectively, completes entire cluster setting.
Preferably, NTP synchronous regime monitoring module, is connected to issue to individual node by ssh and checks synchronization accordingly Status command, program use timed task, are spaced are polled to node serve state at a fixed time.
Compared with prior art, the management method of NTP cluster of the invention have it is following prominent the utility model has the advantages that
(1) it eliminates and requires a large amount of repetitive operations carried out for each node, the burden of user can be reduced;
(2) to all human operations process, which is all decomposed the instruction being mapped as inside program, is reduced The case where may malfunctioning when manual operation, ensure that the accuracy of cluster NTP service management;
(3) visualization interface is provided by browser, operations are relatively illustrated, while providing condition monitoring Function facilitates user and grasps cluster NTP state in time, and copes with emergency case.
Detailed description of the invention
Fig. 1 is the flow chart of the management method of NTP cluster of the present invention.
Specific embodiment
Below in conjunction with drawings and examples, management method and system to NTP cluster of the invention are made further detailed Explanation.
Embodiment
The management method of NTP cluster of the invention, is write by Java language, JavaScript language and html language The program of one B/S framework introduces open source component, remotely connects host using ssh by open source component, grasps to host Make, provides visual page, user is operated by browser accession page.
Ganymed-ssh2 is introduced in the program of B/S framework freely to increase income component, it is long-range using ssh by open source component Host is connected, host is operated, which is issued using Tomcat, provides visual page, and user passes through clear Device accession page of looking at is operated.
Choosing any node in cluster, as host, the war file that the program of B/S framework is provided is carried out by Tomcat Deployment, and use browser successful access administration page.
As shown in Figure 1, the management method of the NTP cluster specifically includes the following steps:
S1, cluster are built.
The building of cluster is carried out in the program page output cluster name to be constructed of B/S framework, obtains cluster interior joint User name and password, input user name and password in the program page of B/S framework, node be added to cluster.
After the program operation of B/S framework, cluster need to be constructed when using for the first time, which is the NTP that need to be managed Cluster.
When the step operates, the OpenSSH group of node system where program has used ganymed-ssh2 component and program Part, and the OpenSSH component on clustered node has been used to establish ssh connection of the program place node to node each in cluster. Ssh (SecureSHell) is the security protocol established on the basis of application layer and transport layer, is to aim at telnet session and its He provides the agreement of safety at network service.It in the present invention, is the free open source reality of ssh agreement using ssh2, OpenSSH It is existing.
After the step operates successfully, program will hold the stable ssh connection of each node in cluster, be embodied as in program Internal existing Java object example corresponding one by one can be to cluster section by the ssh connection in the Java object example Point sends and executes relevant Linux operational order.By means of the function of OpenSSH component, can where program node with And each node of cluster generates the key of relevant RSA cryptographic algorithms, by the key, can be destroyed in Java object example and It after ssh connection closed, generates effective ssh again as needed and connects and authenticate and pass through, continue Java pairs that holds the node As and execute order.
The automation of S2, NTP software is installed.
Cluster building after the completion of, the state that the program of B/S framework reads node NTP automatically go forward side by side row-column list displaying, use State of the person according to cluster interior joint and the planning to the cluster, the automation for carrying out NTP software to cluster are installed.
If node NTP state is not install, Installation Options are had after node, clicking the option can be automatic in the node NTP service is installed.Inside program, the installation of NTP service, which is program, to be connected to issue to install accordingly to the node by ssh and refers to It enables, the Yum component of the node is called to carry out.
After NTP installation, option start and stop NTP service can be started and stopped by clicking.Inside program, NTP service Start and stop is that program is carried out by the service instruction of ssh connection control node.The function is also provided for entire cluster Unified operation.
The visual configuration of S3, NTP cluster.
The corresponding configuration file of modification NTP that is set as of NTP is laid equal stress on specially by corresponding configuration file write-in program NTP is opened to come into force;Individual node service is configured in program end, each node is issued to and executes respectively, complete entire cluster Setting.
Inside program, the setting of node serve is to carry out file behaviour by configuration file of the ssh connection to the NTP of node Make.The setting of NTP under linux system is to modify the corresponding configuration file of NTP, such as write time source, and concrete operations are then For by the IP of time source or domain name write-in/etc/ntp.cfg file, and restarts NTP service and come into force.The system of entire cluster NTP One setting is then the polymerization of the setting of individual node service, in the decomposition that program end is operated, and is issued to each node difference It executes, by the function, entire cluster can be set simultaneously.
The monitoring of S4, NTP synchronous regime.
It connects to issue to individual node by ssh and checks that synchronous regime instructs accordingly, program uses timed task, solid Fixed time interval is polled node serve state.
The management system of the management system of NTP cluster of the invention, the NTP cluster passes through Java language, JavaScript Language and html language write the program of a B/S framework, introduce open source component, are remotely connected by open source component using ssh Host is connect, host is operated, visual page is provided, user is operated by browser accession page.Specific packet It includes with lower module:
Cluster building module, for building cluster.Cluster is carried out in the page output cluster name to be constructed of B/S framework Building, obtain cluster interior joint user name and password, input user name and password in the program page of B/S framework, will save Point is added to cluster.
NTP software automation installs module, for automating installation NTP software.The NTP software automation installs module Cluster building after the completion of, the state that the program of B/S framework reads node NTP automatically go forward side by side row-column list displaying, user according to The state of cluster interior joint and planning to the cluster, the automation for carrying out NTP software to cluster are installed.
NTP cluster visual configuration module is used for visual configuration NTP cluster.NTP be set as modification NTP it is corresponding Configuration file specially by corresponding configuration file write-in program, and restarts NTP and comes into force;In program end to individual node service It is configured, is issued to each node and executes respectively, complete entire cluster setting.
NTP synchronous regime monitoring module, for monitoring NTP synchronous regime.It is connected by ssh to individual node and is issued accordingly Check synchronous regime instruct, program use timed task, be spaced at a fixed time and node serve state be polled.
Embodiment described above, the only present invention more preferably specific embodiment, those skilled in the art is at this The usual variations and alternatives carried out within the scope of inventive technique scheme should be all included within the scope of the present invention.

Claims (10)

1. a kind of management method of NTP cluster, it is characterised in that: this method by Java language, JavaScript language and Html language writes the program of a B/S framework, introduces open source component, remotely connects host using ssh by open source component, right Host is operated, and visual page is provided, and user is operated by browser accession page, specifically includes following step It is rapid:
S1, cluster are built;
The automation of S2, NTP software is installed;
The visual configuration of S3, NTP cluster;
The monitoring of S4, NTP synchronous regime.
2. the management method of NTP cluster according to claim 1, it is characterised in that: in the building of cluster, in B/S framework The cluster name to be constructed of program page output carry out the building of cluster, obtain the user name and password of cluster interior joint, In The program page of B/S framework inputs user name and password, and node is added to cluster.
3. the management method of NTP cluster according to claim 2, it is characterised in that: after the completion of cluster building, B/S framework Program read automatically node NTP state go forward side by side row-column list displaying, user is according to the state of cluster interior joint and to the collection The planning of group, the automation for carrying out NTP software to cluster are installed.
4. the management method of NTP cluster according to claim 3, it is characterised in that: the modification NTP that is set as of NTP is corresponded to Configuration file, specially by corresponding configuration file write-in program, and restart NTP and come into force;Individual node is taken in program end Business is configured, and is issued to each node and is executed respectively, and entire cluster setting is completed.
5. the management method of NTP cluster according to claim 4, it is characterised in that: connected under individual node by ssh Hair checks that synchronous regime instructs accordingly, and program uses timed task, is spaced carries out to node serve state at a fixed time Poll.
6. a kind of management system of NTP cluster, it is characterised in that: specifically include with lower module:
Cluster building module, for building cluster;
NTP software automation installs module, for automating installation NTP software;
NTP cluster visual configuration module is used for visual configuration NTP cluster;
NTP synchronous regime monitoring module, for monitoring NTP synchronous regime.
7. the management system of NTP cluster according to claim 6, it is characterised in that: cluster building module, in B/S framework The cluster name to be constructed of page output carry out the building of cluster, the user name and password of cluster interior joint are obtained, in B/S frame The program page of structure inputs user name and password, and node is added to cluster.
8. the management system of NTP cluster according to claim 7, it is characterised in that: the NTP software automation installs mould Block cluster construct after the completion of, the state that the program of B/S framework reads node NTP automatically go forward side by side row-column list displaying, user's root State according to cluster interior joint and the planning to the cluster, the automation for carrying out NTP software to cluster are installed.
9. the management system of NTP cluster according to claim 8, it is characterised in that: NTP cluster visual configuration module In, NTP's is set as the corresponding configuration file of modification NTP, specially by corresponding configuration file write-in program, and restarts NTP It comes into force;Individual node service is configured in program end, each node is issued to and executes respectively, completes entire cluster setting.
10. the management system of NTP cluster according to claim 9, it is characterised in that: NTP synchronous regime monitoring module leads to Cross ssh connect to individual node issue accordingly check synchronous regime instruct, program use timed task, at a fixed time between It is polled every to node serve state.
CN201910812192.9A 2019-08-30 2019-08-30 A kind of management method and system of NTP cluster Pending CN110493061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910812192.9A CN110493061A (en) 2019-08-30 2019-08-30 A kind of management method and system of NTP cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910812192.9A CN110493061A (en) 2019-08-30 2019-08-30 A kind of management method and system of NTP cluster

Publications (1)

Publication Number Publication Date
CN110493061A true CN110493061A (en) 2019-11-22

Family

ID=68555366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910812192.9A Pending CN110493061A (en) 2019-08-30 2019-08-30 A kind of management method and system of NTP cluster

Country Status (1)

Country Link
CN (1) CN110493061A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995496A (en) * 2019-12-15 2020-04-10 苏州浪潮智能科技有限公司 Method and device for synchronizing time of white box switch in batches
CN111769896A (en) * 2020-06-12 2020-10-13 苏州浪潮智能科技有限公司 BMC (baseboard management controller) clustered management time synchronization method and system
CN112287017A (en) * 2020-11-05 2021-01-29 浪潮云信息技术股份公司 OpenSSH-based Impala cluster visual management method
CN113742001A (en) * 2021-09-02 2021-12-03 刘忠琪 Tomcat cluster visual unified management system
CN114281580A (en) * 2021-11-30 2022-04-05 苏州浪潮智能科技有限公司 Method and system for polling HBase cluster network time

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607462A (en) * 2013-11-22 2014-02-26 曙光信息产业股份有限公司 Cluster NAS deployment system and deployment method thereof
CN105681109A (en) * 2016-03-15 2016-06-15 山东超越数控电子有限公司 Implementation method and framework of high availability cluster management system
CN106254121A (en) * 2016-08-11 2016-12-21 浪潮软件股份有限公司 A kind of automatization disposes and the method for management large data sets group
CN109379425A (en) * 2018-10-16 2019-02-22 浪潮软件集团有限公司 Distributed cluster deployment management method and device
CN110134564A (en) * 2019-03-29 2019-08-16 山东浪潮云信息技术有限公司 A kind of visual Kafka cluster monitoring method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607462A (en) * 2013-11-22 2014-02-26 曙光信息产业股份有限公司 Cluster NAS deployment system and deployment method thereof
CN105681109A (en) * 2016-03-15 2016-06-15 山东超越数控电子有限公司 Implementation method and framework of high availability cluster management system
CN106254121A (en) * 2016-08-11 2016-12-21 浪潮软件股份有限公司 A kind of automatization disposes and the method for management large data sets group
CN109379425A (en) * 2018-10-16 2019-02-22 浪潮软件集团有限公司 Distributed cluster deployment management method and device
CN110134564A (en) * 2019-03-29 2019-08-16 山东浪潮云信息技术有限公司 A kind of visual Kafka cluster monitoring method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995496A (en) * 2019-12-15 2020-04-10 苏州浪潮智能科技有限公司 Method and device for synchronizing time of white box switch in batches
CN110995496B (en) * 2019-12-15 2022-05-13 苏州浪潮智能科技有限公司 Method and device for synchronizing time of white box switch in batches
CN111769896A (en) * 2020-06-12 2020-10-13 苏州浪潮智能科技有限公司 BMC (baseboard management controller) clustered management time synchronization method and system
CN111769896B (en) * 2020-06-12 2022-12-20 苏州浪潮智能科技有限公司 BMC (baseboard management controller) clustered management time synchronization method and system
CN112287017A (en) * 2020-11-05 2021-01-29 浪潮云信息技术股份公司 OpenSSH-based Impala cluster visual management method
CN113742001A (en) * 2021-09-02 2021-12-03 刘忠琪 Tomcat cluster visual unified management system
CN114281580A (en) * 2021-11-30 2022-04-05 苏州浪潮智能科技有限公司 Method and system for polling HBase cluster network time
CN114281580B (en) * 2021-11-30 2024-05-31 苏州浪潮智能科技有限公司 Method and system for carrying out inspection on HBase cluster network time

Similar Documents

Publication Publication Date Title
CN110493061A (en) A kind of management method and system of NTP cluster
CN106790595B (en) Docker container active load balancing device and method
US20050262233A1 (en) Methods and systems for history analysis for access paths in networks
US20090083405A1 (en) Maximizing application availability during automated enterprise deployments
CN104363117A (en) IPMI (intelligent platform management interface) based method for serial port redirection
US11489729B2 (en) Agentless access control system for profile management
CN110941665A (en) Data synchronization method, data synchronization device and data synchronization equipment between nodes
CN109067599A (en) A kind of method and device for disposing cluster
CN103036934A (en) Wide area network clustered deployment system and method based on mirror image
CN111258880A (en) System and method for configuration verification on live devices
CN112152843B (en) Cluster node deployment method, device and system and electronic equipment
CN111966465A (en) Method, system, equipment and medium for modifying configuration parameters of host machine in real time
US20070044077A1 (en) Infrastructure for verifying configuration and health of a multi-node computer system
CN103490945A (en) Method for detecting maximum telnet user quantity
CN102970376A (en) Cluster configuration method and device
CN111769979A (en) Cloud resource arranging method, system, terminal and storage medium
US10841171B2 (en) Method and system for virtual network service activation
CN111641521A (en) Ambari-based method for deploying big data clusters on cloud
CN112291081B (en) Method, system and storage medium for auditing controller cluster data by cloud management platform
Pieper et al. Distributed co-simulation for software-in-the-loop testing of networked railway systems
DE102021107655A1 (en) LOG MANAGEMENT FOR A MULTI-NODE DATA PROCESSING SYSTEM
US20210258266A1 (en) Orchestrating apparatus, vnfm apparatus, managing method and program
US11575679B2 (en) Agentless access control system for dynamic calibration of software permissions
Lovrek et al. Improving software maintenance by using agent-based remote maintenance shell
Cisco Troubleshooting CiscoWorks 2000

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191122