CN117032888A - Time zone synchronization method and device, nonvolatile storage medium and electronic equipment - Google Patents

Time zone synchronization method and device, nonvolatile storage medium and electronic equipment Download PDF

Info

Publication number
CN117032888A
CN117032888A CN202310993687.2A CN202310993687A CN117032888A CN 117032888 A CN117032888 A CN 117032888A CN 202310993687 A CN202310993687 A CN 202310993687A CN 117032888 A CN117032888 A CN 117032888A
Authority
CN
China
Prior art keywords
time zone
information
node
cluster
target
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
CN202310993687.2A
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.)
China Telecom Intelligent Network Technology Co ltd
Original Assignee
China Telecom Intelligent Network Technology 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 China Telecom Intelligent Network Technology Co ltd filed Critical China Telecom Intelligent Network Technology Co ltd
Priority to CN202310993687.2A priority Critical patent/CN117032888A/en
Publication of CN117032888A publication Critical patent/CN117032888A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application discloses a time zone synchronization method and device, a nonvolatile storage medium and electronic equipment. Wherein the method comprises the following steps: determining target time zone information of a cluster; transmitting time zone synchronization indication information carrying target time zone information to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes into time zones corresponding to the target time zone information; after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update the time zone. The application solves the technical problem that the time zone of each node can not be ensured to be consistent under the condition that a large number of nodes are contained in the cluster because the time zone of each node can only be manually modified in the related art.

Description

Time zone synchronization method and device, nonvolatile storage medium and electronic equipment
Technical Field
The present application relates to the field of distributed computing, and in particular, to a time zone synchronization method, a time zone synchronization device, a nonvolatile storage medium, and an electronic device.
Background
At present, when the time of the nodes in the cluster is synchronized, the time zones of different nodes in the cluster may be different, so that the time of the nodes in the cluster is inconsistent. In addition, the time zone of each node can only be manually modified in the related art, so that the time zone of each node can not be ensured to be consistent under the condition that a large number of nodes exist in the cluster.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a time zone synchronization method, a time zone synchronization device, a nonvolatile storage medium and electronic equipment, which at least solve the technical problem that the time zone of each node cannot be ensured to be consistent under the condition that a large number of nodes are contained in a cluster because the time zone of the node can only be manually modified in the related technology.
According to an aspect of an embodiment of the present application, there is provided a time zone synchronization method including: determining target time zone information of a cluster; transmitting time zone synchronization indication information carrying target time zone information to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes into time zones corresponding to the target time zone information; after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update the time zone.
Optionally, the step of sending time zone synchronization indication information carrying the target time zone information to the nodes in the cluster includes: determining a target node in the cluster as a time zone synchronization server; the indication time zone synchronization server is used for sending time zone synchronization indication information to nodes except the target node in the cluster.
Optionally, the step of determining the target time zone information of the target time zone includes: the method comprises the steps that a time zone synchronization server is indicated to receive target time zone information configured and sent by an external time zone server, wherein the external time zone server is a server which is not contained by a cluster, and in the cluster, only the time zone synchronization server is connected with the external time zone server; or configuring target time zone information in the time zone synchronization server, wherein any node in the cluster is not connected with electronic equipment outside the node.
Optionally, after the step of sending the time zone synchronization indication information carrying the target time zone information to the nodes in the cluster, the time zone synchronization method further includes: sending time zone information feedback instructions to each node, and obtaining node time zone information fed back by each node according to the time zone information feedback instructions; comparing the node time zone information with the target time zone information, and determining abnormal time zone information from the node time zone information fed back by each node, wherein the abnormal time zone information is inconsistent with the node time zone information; determining the node corresponding to the abnormal time zone information as an abnormal node, and sending time zone synchronization indication information to the abnormal node again.
Optionally, after the step of determining that the node corresponding to the abnormal time zone information is an abnormal node, the time zone synchronization method further includes: acquiring identification information of an abnormal node; generating fault error reporting information according to the identification information, wherein the fault error reporting information carries the identification information of the abnormal node and the fault type of the abnormal node.
Optionally, after the step of generating the fault error reporting information according to the identification information, the time zone synchronization method further includes: determining the position information of the abnormal node according to the identification information; and determining the operation and maintenance equipment corresponding to the position information, and sending fault error reporting information to the operation and maintenance equipment.
Optionally, the step of determining the target time zone information includes: determining a standard time zone, wherein the standard time zone is a time zone of any area; determining deviation information, wherein the deviation information comprises a time deviation value between a target time zone indicated by the target time zone information and a standard time zone; and generating target time zone information according to the standard time zone and the deviation information.
According to another aspect of the embodiment of the present application, there is also provided a time zone synchronizing device including: the first processing module is used for determining target time zone information of the cluster; the second processing module is used for sending time zone synchronization indication information carrying target time zone information to the nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update the time zone of the nodes to the target time zone; and the third processing module is used for sending time zone updating indication information to each node in the cluster after sending the time zone synchronization indication information and after updating the target time zone information, wherein the time zone updating indication information is used for indicating each node to update the time zone.
According to another aspect of the embodiment of the present application, there is also provided a nonvolatile storage medium, in which a program is stored, wherein the device in which the nonvolatile storage medium is controlled to execute the time zone synchronization method when the program runs.
According to another aspect of the embodiment of the present application, there is also provided an electronic device, including: the system comprises a memory and a processor for running a program stored in the memory, wherein the program executes a time zone synchronization method.
In the embodiment of the application, the target time zone information of the cluster is determined; transmitting time zone synchronization indication information carrying target time zone information to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes into time zones corresponding to the target time zone information; after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update the time zone.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a schematic structural view of a computer terminal (mobile terminal) according to an embodiment of the present application;
FIG. 2 is a flow chart of a time zone synchronization method provided in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a time zone synchronization system within a cluster according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a time zone synchronizing device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to better understand the embodiments of the present application, technical terms related to the embodiments of the present application are explained as follows:
clustering: a cluster is a computer service system that uses a high-speed communication network to model a large number of computers or systems, each of which is considered a node in the cluster, and each of which is independent of and can communicate with each other to collectively accomplish a specified task.
NTP: NTP (Network Time Protoccol, network time protocol) is a protocol for synchronizing the time of individual nodes in a cluster. The NTP protocol converts the time of the node into UTC (Coordinated Universal Time ) time when synchronizing the node time, so the NTP protocol cannot find whether the time zones of the respective nodes are consistent.
As the amount of traffic handled by the cluster increases, the nodes within the cluster need to have a uniform time to cooperatively handle various types of traffic. In the prior art, when node time is unified, a common method is to synchronize the time of each node by adopting an NTP protocol. However, the system version of each node is inconsistent, the region and manufacturer are inconsistent when the system is deployed for the first time, and the time zones of different nodes are inconsistent due to different reasons such as different summer time and winter time of the places where the nodes are located. When the NTP protocol is adopted, the time of each node is converted into UTC time, so that the problem of inconsistent time zones of the nodes cannot be solved. If the time zone of each node is selected to be modified to keep the node time zones consistent, the modification efficiency is too low because the related art can only manually modify the time zone information of each node, and the method has no feasibility when a plurality of nodes are contained in a cluster. And when the time zone of a certain node is modified, other nodes cannot sense that the time zone of the node is changed, and the problem that new time is not synchronous in the time zone modification process can be caused.
In order to solve the above problems, related solutions are provided in the embodiments of the present application, and are described in detail below.
According to an embodiment of the present application, there is provided a method embodiment of a time zone synchronization method, it being noted that the steps shown in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
The method embodiment provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or similar computing device in a cluster. Fig. 1 shows a block diagram of a hardware configuration of a computer terminal (or mobile device) for implementing a time zone synchronization method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more processors 102 (shown as 102a, 102b, … …,102 n) which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuits described above may be referred to generally herein as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated, in whole or in part, into any of the other elements in the computer terminal 10 (or mobile device). As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the time zone synchronization method in the embodiment of the present application, and the processor 102 executes the software programs and modules stored in the memory 104 to perform various functional applications and data processing, i.e., implement the time zone synchronization method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
In the above operating environment, the embodiment of the present application provides a time zone synchronization method, as shown in fig. 2, which includes the following steps:
step S202, determining target time zone information of a cluster;
in the technical solution provided in step S202, the step of determining the target time zone information includes: determining a standard time zone, wherein the standard time zone is a time zone of any area; determining deviation information, wherein the deviation information comprises a time deviation value between a target time zone indicated by the target time zone information and a standard time zone; and generating target time zone information according to the standard time zone and the deviation information.
Specifically, the target time zone may be regarded as a time zone set up for each node in the cluster and dedicated to the same node time, and the time zone may be set by the user completely according to the user's own needs, and is not necessarily a certain time zone existing in reality. In order to facilitate each node to determine how to adjust the node time zone to the target time zone when setting the target time zone, a standard time zone, which may be an already existing time zone such as an eastern eight zone, and a time deviation value between the target time zone and the standard time zone may be written in the target time zone information. Thus, the node can determine how to convert the node time zone into the target time zone according to the difference between the node time zone and the standard time zone and the deviation value.
As an alternative implementation mode, the time zone configuration file of the target time zone can also be directly sent to each node, the node does not need to calculate to change the time zone by itself, and the time zone synchronization can be completed only after the time zone configuration file is operated.
By additionally setting a time zone for the nodes in the cluster, the problem that when a time zone which exists in reality is designated as a time zone commonly used by the nodes in the cluster, time zones of some nodes possibly caused by different time zone files in different nodes or missing time zone files in partial areas cannot be set as the selected time zone can be avoided.
The accuracy of the time offset value may be set by the user himself, for example, to the minute or second.
Step S204, time zone synchronization indication information carrying target time zone information is sent to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes into time zones corresponding to the target time zone information;
in the technical solution provided in step S204, the step of sending time zone synchronization indication information carrying target time zone information to the nodes in the cluster includes: determining a target node in the cluster as a time zone synchronization server; the indication time zone synchronization server is used for sending time zone synchronization indication information to nodes except the target node in the cluster.
As an alternative embodiment, since the cluster has certain requirements for confidentiality and security, typically the nodes in the cluster will not be connected to the nodes outside the cluster, or only the nodes that are time zone synchronization servers in the cluster will be connected to external time zone servers. Therefore, when determining the target time zone information of the target time zone, the target time zone information can be directly configured in the time zone synchronization server in the node, and the target time zone file can be configured in the external time zone server connected with the time zone synchronization server. Specifically, the time zone synchronization server may be instructed to receive the target time zone information configured and sent by the external time zone server, where the external time zone server is a server not included in the cluster, and in the cluster, only the time zone synchronization server is connected with the external time zone server; or configuring target time zone information in the time zone synchronization server, wherein any node in the cluster is not connected with electronic equipment outside the node.
Specifically, the architecture of the time zone synchronization system in the cluster provided by the embodiment of the present application is shown in fig. 3, and the architecture includes an NTP server and a plurality of NTP clients, where the NTP server is a target server in the cluster, and can determine whether to connect with an external NTP server according to a user setting, and the NTP clients are set in nodes in the cluster except for the target server, and are configured to receive time zone synchronization indication information or time zone update indication information sent by the target server, and adjust time zones in each node according to the received time zone synchronization indication information or time zone update indication information.
After the target time zone information is determined, when the time zone server in the cluster sends the target time zone information to each node in the cluster, the target time zone can be synchronized into each node in the cluster by adopting an NTP technology.
In some embodiments of the present application, after the step of sending the time zone synchronization indication information carrying the target time zone information to the nodes in the cluster, the time zone synchronization method further includes: sending time zone information feedback instructions to each node, and obtaining node time zone information fed back by each node according to the time zone information feedback instructions; comparing the node time zone information with the target time zone information, and determining abnormal time zone information from the node time zone information fed back by each node, wherein the abnormal time zone information is inconsistent with the node time zone information; determining the node corresponding to the abnormal time zone information as an abnormal node, and sending time zone synchronization indication information to the abnormal node again.
As an optional implementation manner, after the step of determining that the node corresponding to the abnormal time zone information is the abnormal node, the time zone synchronization method further includes: acquiring identification information of an abnormal node; generating fault error reporting information according to the identification information, wherein the fault error reporting information carries the identification information of the abnormal node and the fault type of the abnormal node.
Specifically, after the step of generating the fault reporting information according to the identification information, the position information of the abnormal node may be determined according to the identification information, then the operation and maintenance device corresponding to the position information is determined, and the fault reporting information is sent to the operation and maintenance device.
Specifically, the identification information of the node, the location information corresponding to the identification information, the hardware resource information of the node and the operation and maintenance equipment information corresponding to each location information are stored in a database, so that the time zone server can conveniently inquire.
The operation and maintenance equipment can be communication equipment, and the operation and maintenance equipment is used for determining operation and maintenance personnel capable of maintaining the abnormal node according to the scheduling information of the operation and maintenance personnel stored in the operation and maintenance equipment after receiving the fault error reporting information, and then generating a maintenance work order according to the fault error reporting information and sending the maintenance work order to the terminal equipment of the operation and maintenance personnel.
Step S206, after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update the time zone.
In the technical scheme provided in step S206, after the target time zone is set, the user may update the target time zone according to his own needs. After the user updates the target time zone information, the time zone server may generate time zone update indication information according to an update operation of the user, wherein the time zone update indication information includes content in which the updated time zone information changes compared with the time zone information before the update, for example, a time offset value between the updated time zone and the time zone before the update.
Determining target time zone information of a cluster; transmitting time zone synchronization indication information carrying target time zone information to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes into time zones corresponding to the target time zone information; after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update the time zone.
An embodiment of the present application provides a time zone synchronization device, and fig. 4 is a schematic structural diagram of the device, as shown in fig. 4, where the device includes: a first processing module 40, configured to determine target time zone information of the cluster; a second processing module 42, configured to send time zone synchronization indication information carrying target time zone information to nodes in the cluster, where the time zone synchronization indication information is used to instruct the nodes to update time zones of the nodes to the target time zone; the third processing module 44 is configured to send time zone update indication information to each node in the cluster after sending the time zone synchronization indication information, where the time zone update indication information is used to indicate each node to update a time zone.
In some embodiments of the present application, the step of the first processing module 40 determining the target time zone information includes: determining a standard time zone, wherein the standard time zone is a time zone of any area; determining deviation information, wherein the deviation information comprises a time deviation value between a target time zone indicated by the target time zone information and a standard time zone; and generating target time zone information according to the standard time zone and the deviation information.
In some embodiments of the present application, the step of the second processing module 42 sending time zone synchronization indication information carrying the target time zone information to the nodes in the cluster includes: determining a target node in the cluster as a time zone synchronization server; the indication time zone synchronization server is used for sending time zone synchronization indication information to nodes except the target node in the cluster.
In some embodiments of the present application, the step of the first processing module 40 determining the target time zone information for the target time zone includes: the method comprises the steps that a time zone synchronization server is indicated to receive target time zone information configured and sent by an external time zone server, wherein the external time zone server is a server which is not contained by a cluster, and in the cluster, only the time zone synchronization server is connected with the external time zone server; or configuring target time zone information in the time zone synchronization server, wherein any node in the cluster is not connected with electronic equipment outside the node.
In some embodiments of the present application, after the step of sending the time zone synchronization indication information carrying the target time zone information to the nodes in the cluster, the time zone synchronization device is further configured to: sending time zone information feedback instructions to each node, and obtaining node time zone information fed back by each node according to the time zone information feedback instructions; comparing the node time zone information with the target time zone information, and determining abnormal time zone information from the node time zone information fed back by each node, wherein the abnormal time zone information is inconsistent with the node time zone information; determining the node corresponding to the abnormal time zone information as an abnormal node, and sending time zone synchronization indication information to the abnormal node again.
In some embodiments of the present application, after the step of determining the node corresponding to the abnormal time zone information as the abnormal node, the time zone synchronization apparatus is further configured to: acquiring identification information of an abnormal node; generating fault error reporting information according to the identification information, wherein the fault error reporting information carries the identification information of the abnormal node and the fault type of the abnormal node.
In some embodiments of the application, after the step of generating fault-reporting information from the identification information, the time zone synchronization device is further configured to: determining the position information of the abnormal node according to the identification information; and determining the operation and maintenance equipment corresponding to the position information, and sending fault error reporting information to the operation and maintenance equipment.
According to an embodiment of the present application, there is also provided a nonvolatile storage medium in which a program is stored, wherein when the program runs, a device in which the nonvolatile storage medium is controlled to execute the following time zone synchronization method: determining target time zone information of a cluster; transmitting time zone synchronization indication information carrying target time zone information to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes into time zones corresponding to the target time zone information; after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update the time zone.
According to an embodiment of the present application, there is also provided an electronic device including a memory and a processor for running a program stored in the memory, wherein the program is run to perform the following time zone synchronization method: determining target time zone information of a cluster; transmitting time zone synchronization indication information carrying target time zone information to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes into time zones corresponding to the target time zone information; after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update the time zone.
It should be noted that each module in the time zone synchronization device may be a program module (for example, a set of program instructions for implementing a specific function) or may be a hardware module, and for the latter, it may be represented by the following form, but is not limited thereto: the expression forms of the modules are all a processor, or the functions of the modules are realized by one processor.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the related art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for time zone synchronization comprising:
determining target time zone information of a cluster;
transmitting time zone synchronization indication information carrying the target time zone information to nodes in a cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update time zones of the nodes to time zones corresponding to the target time zone information;
after the time zone synchronization indication information is sent, after the target time zone information is updated, time zone update indication information is sent to each node in the cluster, wherein the time zone update indication information is used for indicating each node to update a time zone.
2. The time zone synchronization method according to claim 1, wherein the step of transmitting time zone synchronization indication information carrying the target time zone information to the nodes in the cluster comprises:
determining a target node in the cluster as a time zone synchronization server;
and the time zone synchronization indication server is used for sending the time zone synchronization indication information to nodes except the target node in the cluster.
3. The time zone synchronizing method according to claim 2, wherein the step of determining target time zone information of the target time zone comprises:
the time zone synchronization server is instructed to receive the target time zone information configured and sent by an external time zone server, wherein the external time zone server is a server which is not contained by the cluster, and only the time zone synchronization server is connected with the external time zone server in the cluster; or,
and configuring the target time zone information in the time zone synchronization server, wherein any node in the cluster is not connected with electronic equipment outside the node.
4. The time zone synchronization method according to claim 1, wherein after the step of transmitting time zone synchronization instruction information carrying the target time zone information to the nodes in the cluster, the time zone synchronization method further comprises:
transmitting time zone information feedback instructions to each node, and acquiring node time zone information fed back by each node according to the time zone information feedback instructions;
comparing the node time zone information with the target time zone information, and determining abnormal time zone information from the node time zone information fed back by each node, wherein the abnormal time zone information is inconsistent with the node time zone information;
determining the node corresponding to the abnormal time zone information as an abnormal node, and sending the time zone synchronization indication information to the abnormal node again.
5. The time zone synchronization method according to claim 4, wherein after the step of determining that the node corresponding to the abnormal time zone information is an abnormal node, the time zone synchronization method further comprises:
acquiring the identification information of the abnormal node;
generating fault error reporting information according to the identification information, wherein the fault error reporting information carries the identification information of the abnormal node and the fault type of the abnormal node.
6. The time zone synchronization method according to claim 5, wherein after the step of generating fault error information from the identification information, the time zone synchronization method further comprises:
determining the position information of the abnormal node according to the identification information;
and determining the operation and maintenance equipment corresponding to the position information, and sending the fault error reporting information to the operation and maintenance equipment.
7. The time zone synchronization method of claim 1, wherein the step of determining the target time zone information comprises:
determining a standard time zone, wherein the standard time zone is a time zone of any region;
determining deviation information, wherein the deviation information comprises a time deviation value between a target time zone indicated by the target time zone information and the standard time zone;
and generating the target time zone information according to the standard time zone and the deviation information.
8. A time zone synchronizing device, comprising:
the first processing module is used for determining target time zone information of the cluster;
the second processing module is used for sending time zone synchronization indication information carrying the target time zone information to nodes in the cluster, wherein the time zone synchronization indication information is used for indicating the nodes to update the time zone of the nodes to the target time zone;
and the third processing module is used for sending time zone update indication information to each node in the cluster after sending the time zone synchronization indication information and after updating the target time zone information, wherein the time zone update indication information is used for indicating each node to update a time zone.
9. A non-volatile storage medium, wherein a program is stored in the non-volatile storage medium, and wherein the program, when executed, controls a device in which the non-volatile storage medium is located to perform the time zone synchronization method of any one of claims 1 to 7.
10. An electronic device, comprising: a memory and a processor for executing a program stored in the memory, wherein the program is executed to perform the time zone synchronization method of any one of claims 1 to 7.
CN202310993687.2A 2023-08-07 2023-08-07 Time zone synchronization method and device, nonvolatile storage medium and electronic equipment Pending CN117032888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310993687.2A CN117032888A (en) 2023-08-07 2023-08-07 Time zone synchronization method and device, nonvolatile storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310993687.2A CN117032888A (en) 2023-08-07 2023-08-07 Time zone synchronization method and device, nonvolatile storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117032888A true CN117032888A (en) 2023-11-10

Family

ID=88634740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310993687.2A Pending CN117032888A (en) 2023-08-07 2023-08-07 Time zone synchronization method and device, nonvolatile storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117032888A (en)

Similar Documents

Publication Publication Date Title
CN109451021B (en) Internet of things edge side multi-heterogeneous network access system and method
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN105099761A (en) Method and system for concentratedly managing configuration information of client
CN109120444B (en) Cloud resource management method, processor and storage medium
CN110688146A (en) Method, device and storage medium for dynamically configuring monitoring system
CN110825772A (en) Method and device for synchronizing memory data of multiple service instances and storage medium
CN111008026A (en) Cluster management method, device and system
CN112417255A (en) Method and device for receiving online state, storage medium and electronic device
CN115562757A (en) Data processing method, configuration center system, electronic device, and storage medium
WO2016074412A1 (en) Compatibility administration method based on network configuration protocol, storage medium and device
CN102082652B (en) Method, device and system for acquiring network clock topological structure
CN112291081B (en) Method, system and storage medium for auditing controller cluster data by cloud management platform
CN117032888A (en) Time zone synchronization method and device, nonvolatile storage medium and electronic equipment
CN110958287B (en) Operation object data synchronization method, device and system
CN104426644A (en) Equipment time synchronization method and device
CN112650815B (en) Method and device for synchronizing environment data, storage medium and electronic device
CN116346834A (en) Session synchronization method, device, computing equipment and computer storage medium
US8527612B2 (en) Methods, devices and computer program products for configuring network-enabled devices
CN115208905A (en) Device information synchronization method, device, system, electronic device and storage medium
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN114416245B (en) Method, device and storage medium for updating user interface
CN112714035A (en) Monitoring method and system
CN115189994B (en) Data synchronization method and device and computer readable storage medium
CN117729220A (en) Data synchronization method, device and system and nonvolatile storage medium
CN110120881B (en) Data synchronization 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