CN106888233B - Data updating system and method - Google Patents

Data updating system and method Download PDF

Info

Publication number
CN106888233B
CN106888233B CN201510934225.9A CN201510934225A CN106888233B CN 106888233 B CN106888233 B CN 106888233B CN 201510934225 A CN201510934225 A CN 201510934225A CN 106888233 B CN106888233 B CN 106888233B
Authority
CN
China
Prior art keywords
service
server
information
module
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510934225.9A
Other languages
Chinese (zh)
Other versions
CN106888233A (en
Inventor
赵东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Feinno Communication Technology Co Ltd
Original Assignee
Beijing Feinno Communication 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 Beijing Feinno Communication Technology Co Ltd filed Critical Beijing Feinno Communication Technology Co Ltd
Priority to CN201510934225.9A priority Critical patent/CN106888233B/en
Publication of CN106888233A publication Critical patent/CN106888233A/en
Application granted granted Critical
Publication of CN106888233B publication Critical patent/CN106888233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data updating system and a data updating method, and belongs to the field of large-scale cluster system management. The system comprises: the system comprises a file server, at least one service server and a service management server; after detecting the updating instruction, the service management server forwards the updating instruction to the target service server; and after receiving the updating instruction, the target service server acquires a service module to be updated from the file server according to the service identifier, analyzes the service module to be updated, registers the obtained calling information of the new service unit to a service response module of a container in the target service server so as to replace the calling information of the old service unit which is the same as the identifier information, and directly calls the new service unit when subsequently responding to the service request. The invention can complete the updating without stopping the service, and can not affect the corresponding service request, therefore, the data updating mode can be updated in any time period, and has high flexibility, short updating time and simple and convenient steps.

Description

Data updating system and method
Technical Field
The invention relates to the field of large-scale cluster system management, in particular to a data updating system and a data updating method.
Background
The cluster system is a device group composed of a group of servers which are independent from each other and interconnected through a high-speed network, and is managed in a single system mode. When a client interacts with a cluster system, the plurality of servers in the cluster system behave as an independent server. Each server in the cluster system stores applications, i.e., service units, for processing different services, and when a new application is added or an old application needs to be modified, the cluster system needs to be updated.
In the prior art, when data update is performed on a cluster system, for example, when an application is updated, first, an old application needs to be stopped running in a server corresponding to the cluster system, that is, a service provided by the old application is stopped, then, the old application is deleted and a new application is added, and after the corresponding server is restarted, the updated new application can be run, that is, the updated service is provided, and then, the update of the data is completed.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
as the service needs to be stopped in the process of data updating and the corresponding server needs to be restarted to complete the updating, the server can provide the updated service. However, since the update is usually performed at point 0 so as not to affect the processing of the service request, the data update method is highly restrictive, requires a long update time, and is cumbersome to operate.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a data updating system and method. The technical scheme is as follows:
in a first aspect, a data updating system is provided, which includes a file server, at least one service server and a service management server;
the file server is used for storing a data packet to be updated, and the data packet to be updated comprises a service module to be updated;
the service server comprises a container and at least one service module mounted to the container, each service module comprises at least one service unit, and the container at least comprises a service response module;
the service management server is used for forwarding an update instruction to a target service server after detecting the update instruction, wherein the update instruction at least comprises a service identifier of the service module to be updated, and the target service server is used for providing service processing corresponding to the service identifier;
the target service server is used for acquiring the service module to be updated from the file server according to the service identifier after receiving the updating instruction, and analyzing the service module to be updated to obtain the identifier information, calling information and version information of a new service unit; and registering the calling information to a service response module of a container in the target service server according to the identification information of the new service unit so as to replace the calling information of the old service unit which is the same as the identification information of the new service unit, so that the new service unit is directly called when a subsequent service request is responded.
Optionally, the container and the at least one service module are both packaged using an open service gateway initiative, OSGI, specification, such that there is no coupling between the container and the at least one service module.
Optionally, the system further includes a distributed management server, where node information of the at least one service server is stored in the distributed management server, and the node information at least includes identification information of the service server, port information, identification information and version information of the container, identification information and version information of the service unit, and the number of times of calling the service unit;
after the calling information of the new service unit is registered to the service response module of the target service server, the identification information and the version information of the new service unit are registered to the distributed management server, and the identification information and the version information of the old service unit in the distributed management server are deleted.
Optionally, the target service server deletes the old service unit after detecting that the old service unit is in an un-invoked state.
Optionally, the container of the target service server further includes a service management module, where the service management module is configured to analyze a gray scale value of a service unit in the service module to be updated according to the update instruction, and the gray scale value indicates that the service unit responds to a service request corresponding to the specified number segment.
Optionally, the system further comprises a display device,
the display device is used for displaying a service monitoring page, and the service monitoring page at least shows identification information and port information of all service servers in the system, identification information and version information of a container, identification information and version information of a service unit and calling times of the service unit;
and after the calling information of the new service unit is registered to a service response module of the target service server, displaying the identification information and the version information of the new service unit on the service monitoring page.
In a second aspect, a data updating method is provided, the method comprising:
after detecting an update instruction, the service management server forwards the update instruction to a target service server, wherein the update instruction at least comprises a service identifier of a service module to be updated, and the target service server is used for providing service processing corresponding to the service identifier;
after receiving the update instruction, the target service server acquires the service module to be updated from a file server according to the service identifier, and analyzes the service module to be updated to obtain identifier information, calling information and version information of a new service unit;
and the target service server registers the calling information to a service response module of a container in the target service server according to the identification information of the new service unit so as to replace the calling information of the old service unit which is the same as the identification information, so that the new service unit is directly called when a subsequent service request is responded.
Optionally, the method further comprises:
and the target service server deletes the old service unit after detecting that the old service unit is in the state of not being called.
Optionally, the method further comprises:
and the service management module in the target service server container analyzes the gray value of the new service unit in the service module to be updated according to the updating instruction, wherein the gray value indicates that the new service unit responds to the service request corresponding to the specified number segment.
Optionally, the method further comprises:
on the service monitoring page, at least the identification information and port information of all service servers in the system, the identification information and version information of the container, the identification information and version information of the service unit and the calling times of the service unit are displayed;
and after the calling information of the new service unit is registered to a service response module of a container in the target service server, displaying the identification information and the version information of the new service unit on the service monitoring page.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
after detecting the update instruction, the service management server forwards the update instruction to a target service server, wherein the update instruction at least comprises a service identifier of a service module to be updated, and the target service server is used for providing service processing corresponding to the service identifier; after receiving the update instruction, the target service server acquires a service module to be updated from the file server according to the service identifier, and analyzes the service module to be updated to obtain identifier information, calling information and version information of a new service unit; the target service server registers the calling information to a service response module of a container in the target service server according to the identification information of the new service unit so as to replace the calling information of the old service unit which is the same as the identification information, so that the new service unit is directly called when the service request is subsequently responded. Because the updating can be completed without stopping the service when the service unit is updated, and the corresponding service request is not influenced, the data updating mode can be updated in any time period, and has high flexibility, short updating time and simple and convenient steps.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1A is a schematic structural diagram of a data updating system according to an embodiment of the present invention;
fig. 1B is a schematic diagram of an internal structure in a service server according to an embodiment of the present invention;
FIG. 1C is a schematic structural diagram of a data update system according to an embodiment of the present invention;
FIG. 2 is a flow chart of data interaction provided by an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1A is a schematic structural diagram of a data updating system according to an embodiment of the present invention. As shown in fig. 1A, the system includes: the system comprises a file server, at least one service server and a service management server.
The file server is used for storing a data packet to be updated, and the data packet to be updated comprises a service module to be updated;
the business server comprises a plurality of containers with different version information and at least one business module mounted on each container, each business module comprises at least one business unit, and each container at least comprises a business response module. The container of the service server also comprises a service management module and a context management module, the service server also comprises a service general component, and the service communication component and the service module are both in a service environment of the system. The service management module is a core function package of the container, can be a feinno-app-master component, provides external command line access control, and is used for starting other modules contained in the container one by one and registering the other modules to the context management module in the container. After the container is started, the service management module is further used for starting the service module and the service general component, and registering the service module and the service general component into a context manager in the container, wherein the service general component can be a feinno-imprs component. The context management module can be a contensentercontext component and is used for managing the context docking of the service units, namely, the calling relations of all the service units in the container are stored, the upstream service and the downstream service of each service unit are clarified, and the correct execution of the service process is ensured. In addition, the identification information and the calling information of all the service units in the container need to be registered in the service response module, so as to provide calling entries of corresponding service units for the service requests. And when data updating is carried out, the service management module is used for analyzing the gray value of the service unit in the service module to be updated according to the updating instruction, wherein the gray value indicates that the service unit responds to the service request corresponding to the specified number segment.
It should be noted that the container of the service server further includes a library module, a protocol processing module, a registration management module, a service engine module, and a synchronization module, and these five modules provide a bottom layer support for the service management module (feinno-app-master) and the context management module (contenantercontex), thereby ensuring the normal operation of each module in the service server. The library module can be a feinno-lib component and is used for storing the calling information of the function; the protocol processing module can be a feinno-common component and is used for carrying out protocol processing on the service request; the registration management module can be a feinno-ha component and is used for supporting the service management module to execute registration operation on the service module and the service unit; the business engine module can be feinno-app-engine and is used for providing support for the realization of other modules in the system; the synchronization module may be a feinno-synczk, and is used for controlling a service process in the system. Fig. 1B is a schematic diagram of the internal structure of the service server.
The service management server has the functions of configuration management, remote execution, monitoring and the like, can be realized by deploying SaltStack, provides a command line interface, and can execute the updating deployment of the system service by acquiring the command input by the administrator in the command line input window. The service management server is provided with a main control end (maser end) and a plurality of controlled ends (minus ends), and each controlled end is in butt joint with one service server. The service management server is used for sending an instruction to any controlled end through the main control end, and then any controlled end transmits the instruction to the service server connected with the controlled end. The service server receives the instruction sent by the service management server through the service management module. The service management server is further configured to forward the update instruction to a target service server after detecting the update instruction, where the update instruction at least includes a service identifier of the service module to be updated, and the target service server is configured to provide service processing corresponding to the service identifier.
The target service server, namely the service server updating the service module, is used for acquiring the service module to be updated from the file server according to the service identifier after the service management module receives the update instruction, and analyzing the service module to be updated to obtain the identifier information, the calling information and the version information of the new service unit (namely the application). The service management module registers the calling information to a service response module of a container in the target service server according to the identification information of the new service unit so as to replace the calling information of the old service unit which is the same as the identification information of the new service unit, so that the new service unit is directly called when a subsequent service request is responded, and the service response module can be an appclient. It should be noted that, after detecting that the old service unit is in the state of not being called, the target service server may delete the old service unit, so as to reduce the occupation of the memory.
It should be noted that, the system provided in the embodiment of the present invention is a cluster system, each service server in the system may include a plurality of containers, and each of the plurality of containers has different version information, and provides a capability of processing different service requests for a service module, for example, if a service request conforms to an HTTP (HyperText Transfer Protocol) Protocol specification, the request needs to call a corresponding service module for processing through a container having an HTTP Protocol processing capability. Each container and each Service module are packed by adopting an Open Service Gateway Initiative (OSGI) specification to obtain a container bundle and a Service bundle, and each bundle is loaded by an independent ClassLoader, so that any container-level bundle cannot be dependent on the Service bundle in a coding stage, and thus, when the Service module is updated, other Service modules and containers cannot be influenced, and then, after the update is completed, an old Service module can be completely deleted, the occupation of a memory is reduced, and the updating efficiency is improved.
In this embodiment of the present invention, the system further includes a distributed management server and a display device, and as shown in fig. 1C, a schematic structural diagram of a data updating system according to an embodiment of the present invention includes the distributed management server and the display device. The distributed management server can be realized by deploying a distributed coordination service zookeeper, node information of at least one service server is stored in the distributed management server, and the node information at least comprises identification information of the service server, port information, identification information and version information of a container, identification information and version information of a service unit and calling times of the service unit; when the service module is updated, after the calling information of the new service unit is registered to the service response module of the target service server, the identification information and the version information of the new service unit are registered to the distributed management server, namely to the zookeeper, the identification information and the version information of the old service unit, which are the same as the identification information of the new service unit, in the zookeeper are deleted, and the service provided by the old service unit is terminated. Therefore, since the old service unit has no node information in the zookeeper, the service request of the system interface is accessed by the new service unit. And deleting the old service unit after the calling of the old service unit in the waiting calling state or the called state is finished. And then deleting the registration information of the old service unit from the context manager contenantercontext.
The display device is used for displaying a service monitoring page, and the service monitoring page at least shows identification information and port information of all service servers in the system, identification information and version information of containers, identification information and version information of service units and calling times of the service units; and after the calling information of the new service unit is registered to a service response module of the target service server, displaying the identification information and the version information of the new service unit on a service monitoring page.
Fig. 2 is a data interaction flow chart provided in conjunction with the data update system shown in fig. 1A, fig. 1B and fig. 1C, and referring to fig. 2, a data interaction flow provided by an embodiment of the present invention includes:
201. and after detecting the updating instruction, the service management server forwards the updating instruction to the target service server.
In the embodiment of the present invention, in the process of managing the system, an original service unit in the system needs to be modified, replaced, or a new service unit needs to be added, for example, a bug occurs in the system, a service logic changes, a transmission protocol changes, a new function is added, and the like. In order to distinguish different service units and facilitate management, each service unit is generally labeled with version information, and service units having the same identification information may have different version information.
When data updating is performed, firstly, a developer needs to upload a data packet to be updated to a file server through a computer, and the data packet to be updated may include a plurality of service modules to be updated. And then, the operation and maintenance personnel can call a command line input window of the service management service through the display equipment and input an updating instruction in the command line input window, wherein the updating instruction comprises the identification information of the data packet to be updated, and the identification information of the data packet to be updated at least comprises the packet name and the storage path of the data packet to be updated. And after detecting the updating instruction, the service management server reads the corresponding data packet to be updated in the file server according to the packet name and the storage path of the data packet to be updated contained in the updating instruction. And then, analyzing the data packet to be updated to obtain the service identifications of the plurality of service modules. For the service identifier of each service module, the service management server obtains the identifier information of the target service server corresponding to the service identifier of the service module from the configuration management list, and forwards the update instruction to the target service server corresponding to the identifier information of the target service server. The configuration management list stores the corresponding relationship between the identification information of the service server and the service identification of the service module.
It should be noted that, after the service management server obtains the identification information of the target service server corresponding to the service identification, the service identification is added to the update instruction, where the service identification at least includes the storage path of the service module to be updated. And then, the service management server forwards the updating instruction to the target service server through the controlled terminal matched with the identification information of the target service server. If the service module to be updated in the data packet to be updated is a newly added service module, that is, no service module corresponding to the service identifier of the service module to be updated exists on all current service management servers, the service module to be updated may be directly added with the identifier information of the service server corresponding to the service module to be updated, or a corresponding relationship between the service identifier of the service module to be updated and the identifier information of the service server may be added in advance in the service management server.
It should be noted that, because the data packet to be updated may include a plurality of service modules to be updated, and the plurality of service modules to be updated may need to be updated to different service servers, that is, the plurality of service modules to be updated correspond to different target service servers, the embodiment of the present invention only takes the data updating process of one target service server as an example for explanation.
202. And after receiving the updating instruction, the target service server acquires the corresponding service module to be updated from the file server according to the service identifier, and analyzes the service module to be updated to obtain the identifier information, the calling information and the version information of the new service unit.
In the embodiment of the invention, the target service server receives the update instruction sent by the service management server through the service management module in the container, and downloads the corresponding service module to be updated from the file server to the target service server according to the storage path of the service module to be updated, which is indicated by the service identifier in the update instruction. And then, the service management module analyzes the service module to be updated to obtain the identification information, the calling information and the version information of the new service unit. The service module to be updated may include a plurality of new service units or may include one new service unit, which is not specifically limited in this embodiment of the present invention. The calling information of the service unit is used for providing a calling inlet of the service unit, and the version information is used for distinguishing the service units with the same identification information.
203. And the target service server registers the calling information to the service response module according to the identification information of the new service unit, and registers the identification information and the version information of the new service unit to the distributed management server.
In the embodiment of the present invention, after the service management module analyzes the service module to be updated, for each new service unit in the module to be updated, the call information of the new service unit is registered to the service response module to replace the call information of the old service unit that is the same as the identification information of the new service unit, so that the new service unit is directly called when a subsequent service request is responded. When updating is performed according to a new service unit, the service management module firstly searches in the service response module whether registration information matched with the new service unit exists, that is, whether calling information of an old service unit matched with the identification information of the new service unit exists. If the service unit exists, the calling information of the new service unit is directly replaced by the calling information of the old service unit. Because the calling information matched with the service unit is unique in the service response module, after the calling information of the new service unit is registered to the service response module, if a corresponding service request is received, the new service unit can be directly called to respond, so that the service provided by the service unit does not need to be stopped firstly in the updating process of the service unit, and then the new service is provided by restarting, and the process is not sensible to the user, and the use of the user is not influenced. The registration information stored in the service response module may be implemented by a Map function mapped one by one, or implemented in other manners, which is not specifically limited in this embodiment of the present invention.
It should be noted that, if the service management module does not find the calling information of the old service unit matching the identification information of a new service unit in the service response module, it is determined that the new service unit is a newly added service unit, and the calling information of the new service unit is directly added to the service response module.
It should be noted that, after registering a new service unit in the service response module, the target service server needs to register the new service unit in the distributed management server for distributed management of the system, that is: after registering a new service unit to a service response module, a target service server sends an adding message of the new service unit to a distributed management server, wherein the adding message at least comprises identification information and version information of the new service unit; and the distributed management server stores the identification information and the version information of the new service unit as registration information according to the received adding message.
It should be noted that, when a service unit in the system is updated, in order to ensure that a new service unit can correctly respond to a service request, the function of the new service unit may be tested first, that is, the service corresponding to the new service unit is provided to a part of users first, and after the service requests of the part of users are correctly responded, the service corresponding to the new service unit is provided to all users. In order to achieve the above requirement, an embodiment of the present invention provides a gray scale mechanism, that is, a developer may set a gray scale value of a new service unit in the new service unit, where the gray scale value may be an assigned number segment, and indicates that the new service unit only responds to a service request corresponding to the assigned number segment. And when the service management module analyzes the service module to be updated, if the new service unit contains a gray value, storing the gray value. After a service server receives a service request, if it is detected that a new service unit corresponding to the service request is set with a gray value, judging whether a number corresponding to the service request is contained in an appointed number segment indicated by the gray value, and if so, responding to the service request; and if not, not responding to the service request.
204. After the calling information of the new service unit is registered in a service response module of a container in a target service server, the display device acquires the identification information and the version information of the new service unit from the distributed management server and displays the identification information and the version information of the new service unit on a service monitoring page.
In the embodiment of the invention, in order to monitor the state of the system in real time and to better manage and maintain the system, a display device is provided, and on a service monitoring page of the display device, identification information and port information of all service servers, identification information and version information of containers, identification information and version information of service units and calling times of the service units in the system are displayed. The identification information of the service server can be a physical address of the service server; different ports used by the service server when different data transmission is carried out can be obtained through the port information of the service server; the number of times of calling of the service unit indicates the number of times of responding to the service request by the service unit, and may include the number of times of successful response and the number of times of failed response.
It should be noted that the display device may be connected to the distributed management server, and the information displayed on the service monitoring page may be obtained by reading node information of the service server stored in the distributed management server. After the calling information of the new service unit is registered in the service response module of the container in the target service server, according to step 203, it can be known that the identification information and version information of the new service unit will be registered in the distributed management server, and the display device can read the identification information and version information of the new service unit from the distributed management server and display the read information on the service monitoring page. In addition, the service monitoring page may further provide an inquiry function, and the information of the designated service server or the information of the designated service unit is obtained through the inquiry function, which is not specifically limited in the embodiment of the present invention. When the display device detects the click operation of a query button on a service monitoring page, acquiring information to be queried; the display device sends the information to be inquired to the distributed management server, and the distributed management server returns a result matched with the information to be inquired. The information to be queried may be identification information of a service unit, port information of a service server, and the like, which is not specifically limited in this embodiment of the present invention. For example, if the information to be queried is identification information of a service unit, the distributed management server returns identification information, version information, call times, and the like of the service unit that matches the identification information.
205. And the target service server deletes the old service unit after detecting that the old service unit is in the state of not being called.
In the embodiment of the present invention, after the calling information of the new service unit is registered in the service response module, the old service unit corresponding to the new service unit may still be in a called state, and at this time, in order to ensure that the service request can be normally responded, the old service unit also needs to be retained in the service server. When the service server detects that the old service unit is converted from the called state to the non-called state, the old service unit is deleted, so that the old service unit does not occupy the memory, and the phenomenon that the memory is continuously increased in the process of continuously updating the service unit, and the updating efficiency is further influenced, is avoided.
It should be noted that, after the target service server deletes the old service module, the registration information of the old service module also needs to be deleted in the distributed management server, that is to say: after deleting the old service module, the target service server sends a deletion message of the old service unit to the distributed management server, wherein the deletion message at least comprises identification information and version information of the old service unit; and after receiving the deletion message, the distributed management server deletes the registration information of the old service unit according to the identification information of the old service unit contained in the deletion message.
In the system and the method provided by the embodiment of the invention, after detecting the update instruction, the service management server forwards the update instruction to the target service server, wherein the update instruction at least comprises the service identifier of the service module to be updated, and the target service server is used for providing service processing corresponding to the service identifier; after receiving the update instruction, the target service server acquires a service module to be updated from the file server according to the service identifier, and analyzes the service module to be updated to obtain identifier information, calling information and version information of a new service unit; the target service server registers the calling information to a service response module of a container in the target service server according to the identification information of the new service unit so as to replace the calling information of the old service unit which is the same as the identification information, so that the new service unit is directly called when the service request is subsequently responded. Because the updating can be completed without stopping the service when the service unit is updated, and the corresponding service request is not influenced, the data updating mode can be updated in any time period, and has high flexibility, short updating time and simple and convenient steps.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present invention. Referring to FIG. 3, server 300 includes a processing component 322 that further includes one or more processors and memory resources, represented by memory 332, for storing instructions, such as applications, that are executable by processing component 322. The application programs stored in memory 332 may include one or more modules that each correspond to a set of instructions. Further, the processing component 322 is configured to execute instructions to perform the data update methods described above.
The server 300 may also include a power component 326 configured to perform power management of the server 300, a wired or wireless network interface 350 configured to connect the server 300 to a network, and an input/output (I/O) interface 358. The Server 300 may operate based on an operating system, such as Windows Server, stored in the memory 332TM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTMOr the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A data updating system is characterized in that the system comprises a file server, at least one service server and a service management server;
the file server is used for storing a data packet to be updated, and the data packet to be updated comprises a service module to be updated;
the service server comprises a container and at least one service module mounted to the container, each service module comprises at least one service unit, and the container at least comprises a service response module;
the service management server is used for forwarding an update instruction to a target service server after detecting the update instruction, wherein the update instruction at least comprises a service identifier of the service module to be updated, and the target service server is used for providing service processing corresponding to the service identifier;
the target service server is used for acquiring the service module to be updated from the file server according to the service identifier after receiving the updating instruction, and analyzing the service module to be updated to obtain the identifier information, calling information and version information of a new service unit; and registering the calling information to a service response module of a container in the target service server according to the identification information of the new service unit so as to replace the calling information of the old service unit which is the same as the identification information of the new service unit, so that the new service unit is directly called when a subsequent service request is responded.
2. The system of claim 1, wherein the container and the at least one traffic module are each packaged using the open services gateway protocol (OSGI) specification such that there is no coupling between the container and the at least one traffic module.
3. The system according to claim 1, wherein the system further comprises a distributed management server, the distributed management server storing therein node information of the at least one service server, the node information at least comprising identification information of the service server, port information, identification information and version information of the container, identification information and version information of the service unit, and the number of times of calling of the service unit;
after the calling information of the new service unit is registered to the service response module of the target service server, the identification information and the version information of the new service unit are registered to the distributed management server, and the identification information and the version information of the old service unit in the distributed management server are deleted.
4. The system of claim 1, wherein the target service server deletes the old service unit after detecting that the old service unit is in an un-invoked state.
5. The system according to claim 1, wherein the container of the target service server further comprises a service management module, and the service management module is configured to analyze a gray-level value of a service unit in the service module to be updated according to the update instruction, where the gray-level value is a specified number segment and indicates that the service unit responds to a service request corresponding to the specified number segment.
6. The system of claim 1, further comprising a display device,
the display device is used for displaying a service monitoring page, and the service monitoring page at least shows identification information and port information of all service servers in the system, identification information and version information of a container, identification information and version information of a service unit and calling times of the service unit;
and after the calling information of the new service unit is registered to a service response module of the target service server, displaying the identification information and the version information of the new service unit on the service monitoring page.
7. A method for updating data, the method comprising:
after detecting an update instruction, the service management server forwards the update instruction to a target service server, wherein the update instruction at least comprises a service identifier of a service module to be updated, and the target service server is used for providing service processing corresponding to the service identifier;
after receiving the update instruction, the target service server acquires the service module to be updated from a file server according to the service identifier, and analyzes the service module to be updated to obtain identifier information, calling information and version information of a new service unit;
and the target service server registers the calling information to a service response module of a container in the target service server according to the identification information of the new service unit so as to replace the calling information of the old service unit which is the same as the identification information, so that the new service unit is directly called when a subsequent service request is responded.
8. The method of claim 7, further comprising:
and the target service server deletes the old service unit after detecting that the old service unit is in the state of not being called.
9. The method of claim 7, further comprising:
and the service management module in the target service server container analyzes the gray value of the new service unit in the service module to be updated according to the updating instruction, wherein the gray value is an appointed number segment and indicates that the new service unit responds to the service request corresponding to the appointed number segment.
10. The method of claim 7, further comprising:
on the service monitoring page, at least the identification information and port information of all service servers in the system, the identification information and version information of the container, the identification information and version information of the service unit and the calling times of the service unit are displayed;
and after the calling information of the new service unit is registered to a service response module of a container in the target service server, displaying the identification information and the version information of the new service unit on the service monitoring page.
CN201510934225.9A 2015-12-15 2015-12-15 Data updating system and method Active CN106888233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510934225.9A CN106888233B (en) 2015-12-15 2015-12-15 Data updating system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510934225.9A CN106888233B (en) 2015-12-15 2015-12-15 Data updating system and method

Publications (2)

Publication Number Publication Date
CN106888233A CN106888233A (en) 2017-06-23
CN106888233B true CN106888233B (en) 2019-12-24

Family

ID=59173728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510934225.9A Active CN106888233B (en) 2015-12-15 2015-12-15 Data updating system and method

Country Status (1)

Country Link
CN (1) CN106888233B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107357681B (en) * 2017-06-26 2019-12-31 杭州铭师堂教育科技发展有限公司 Salt-based Zookeeper backup management system and method
CN109144534A (en) * 2017-06-28 2019-01-04 北京京东尚科信息技术有限公司 Service module dynamic updating method, device and electronic equipment
CN107528878B (en) * 2017-07-03 2020-11-06 创新先进技术有限公司 Data processing system, data processing control device and method
CN108021614A (en) * 2017-08-18 2018-05-11 口碑(上海)信息技术有限公司 A kind of method and system for page dynamic load
CN109901910B (en) * 2019-01-17 2021-12-07 珠海金山网络游戏科技有限公司 File pulling or pushing method and device based on distributed container
CN110297675A (en) * 2019-04-23 2019-10-01 五八有限公司 Method, apparatus, electronic equipment and the storage medium that intermodule mutually calls
CN112035190A (en) * 2019-06-03 2020-12-04 中兴通讯股份有限公司 Service data management method, device, equipment and storage medium of service SBB
CN110505269A (en) * 2019-06-21 2019-11-26 广州虎牙科技有限公司 Transaction processing system, method for processing business and server
CN110413262A (en) * 2019-07-23 2019-11-05 北京启迪区块链科技发展有限公司 A kind of management method of business function, apparatus and system
CN110727500B (en) * 2019-09-27 2022-10-25 上海依图网络科技有限公司 Method, system, device and medium for integrating functional modules in system
CN111159233B (en) * 2019-12-18 2024-03-08 金蝶软件(中国)有限公司 Distributed caching method, system, computer equipment and storage medium
CN112433950A (en) * 2020-11-30 2021-03-02 天津五八到家货运服务有限公司 Method for automatically building test environment, electronic equipment and storage medium
CN117971853A (en) * 2024-03-28 2024-05-03 天津南大通用数据技术股份有限公司 Module hot updating method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170365A (en) * 2010-02-26 2011-08-31 阿里巴巴集团控股有限公司 Method and system for realizing hot deployment of software system
CN102360308A (en) * 2011-09-29 2012-02-22 用友软件股份有限公司 Distributed deployment system and method of components
WO2014098556A1 (en) * 2012-12-18 2014-06-26 Mimos Berhad System and method for dynamically allocating an application session manager at runtime

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8185830B2 (en) * 2006-08-07 2012-05-22 Google Inc. Configuring a content document for users and user groups

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102170365A (en) * 2010-02-26 2011-08-31 阿里巴巴集团控股有限公司 Method and system for realizing hot deployment of software system
CN102360308A (en) * 2011-09-29 2012-02-22 用友软件股份有限公司 Distributed deployment system and method of components
WO2014098556A1 (en) * 2012-12-18 2014-06-26 Mimos Berhad System and method for dynamically allocating an application session manager at runtime

Also Published As

Publication number Publication date
CN106888233A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
CN106888233B (en) Data updating system and method
CN112118565B (en) Multi-tenant service gray level publishing method, device, computer equipment and storage medium
US10776104B2 (en) Systems and methods for tracking configuration file changes
CN108566290B (en) Service configuration management method, system, storage medium and server
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
WO2019028992A1 (en) Multi-module version dependency relationship construction method, device, server and storage medium
CN109842694B (en) Method for synchronizing MAC addresses, network equipment and computer readable storage medium
US11159390B2 (en) Systems and methods for service-aware mapping of a system infrastructure
JP5753629B2 (en) Method, device and system for managing mobile broadband devices
CN101360127A (en) File updating method and transmission system
CN111258627A (en) Interface document generation method and device
WO2018137520A1 (en) Service recovery method and apparatus
US10715628B2 (en) Attribute operating method and device
CN113726566A (en) Service gateway device
CN110730197B (en) Service discovery method and system
CN114449040B (en) Configuration issuing method and device based on cloud platform
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN112181470B (en) Patch deployment method and device
CN112000618B (en) File change management method, device, equipment and storage medium for cluster nodes
CN113360689A (en) Image retrieval system, method, related device and computer program product
CN113742376A (en) Data synchronization method, first server and data synchronization system
CN112134749A (en) Dynamic network access management method and system
CN114841648B (en) Material distribution method, device, electronic equipment and medium
CN113890875B (en) Task allocation method and device
CN110019259A (en) Data-updating method, device and the storage medium of distributed index service-Engine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: Room 810, 8 / F, 34 Haidian Street, Haidian District, Beijing 100080

Patentee after: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

Address before: 100089 Beijing city Haidian District wanquanzhuang Road No. 28 Wanliu new building block A room 602

Patentee before: BEIJING D-MEDIA COMMUNICATION TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder