Program, information processing method and information processing device

By separating common and unique data storage and activating standby nodes only during switching, the method addresses resource consumption and cost issues in cloud systems, enhancing service availability and efficiency.

JP2024129247APending Publication Date: 2024-09-27FUJITSU LTD

Patent Information

Application Number
JP2023038328
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The activation of standby nodes for data synchronization in cloud systems consumes computational resources and incurs extra costs due to synchronization processing, affecting the efficiency of service availability.

Method used

A method where common data is stored separately from unique user data, with the standby node being stopped during active node operation and activated only when switching occurs, allowing it to read updated unique data from a shared storage.

Benefits of technology

This approach reduces computational overhead and costs associated with standby nodes, enabling faster and more efficient switching with minimal data read time, thus improving service availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024129247000001
    Figure 2024129247000001
Patent Text Reader

Abstract

To effectively improve availability.SOLUTION: A processing unit 12 disposes common data commonly used for execution of jobs of a plurality of users, in each of a first storage unit 23 accessed by an active system node 21 and a second storage unit 24 accessed by a standby system node 22. The processing unit 12 writes proper data of the job corresponding to a first user, according to the execution of the job by the active system node 21, or updated by the first user, into a shared storage 25 shared by the active system node and the standby system node. The processing unit 12 sets the standby system node 22 to a stopped state when the active system node 21 is operated. The processing unit 12, when switching an execution subject of the job from the active system node 21 to the standby system node 22, starts the standby system node 22, and carries out setting for allowing reading of the proper data by the standby system node 22, from the shared storage 25.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a program, an information processing method, and an information processing device. [Background technology]

[0002] In recent years, instead of owning their own information processing environment in which application programs are executed, users are increasingly using information processing environments owned by service providers via a network. Information processing systems that allow users to use information processing environments via a network are sometimes called cloud systems. Cloud systems lend computing resources such as physical machines and virtual machines to users, and execute the application programs used by the users on those computing resources.

[0003] Meanwhile, efforts are being made to improve the availability of services in information processing systems. For example, there has been a proposal for a system that stores data in a multiplexed manner across multiple storage systems located at multiple sites in preparation for data loss in the event of a disaster such as an earthquake or fire.

[0004] There has also been proposed a disaster recovery system in which master data is stored in a master storage device at a main site, and backup data, which is a backup of the master data, is stored in a remote storage device at a remote site.

[0005] In addition, a service continuity system has been proposed that avoids the split-brain problem by restarting a standby system if the operational virtual server does not receive a heartbeat and the service is running.

[0006] Furthermore, a synchronization method has been proposed in which, in a cluster system including an active node and a standby node, the active node generates synchronization data and stores it in an external storage unit, and transmits an instruction to start the standby node to a control device. In the proposed synchronization method, the control device starts the standby node when it receives the start-up instruction. The standby node obtains the synchronization data from the external storage unit, and reflects the update contents indicated by the synchronization data in the storage unit of the standby node. [Prior art documents] [Patent documents]

[0007] [Patent Document 1] Patent Publication No. 2021-33782 [Patent Document 2] JP 2017-174107 A [Patent Document 3] JP 2019-197352 A [Patent Document 4] International Publication No. 2017 / 047065 Summary of the Invention [Problem to be solved by the invention]

[0008] As proposed above, a standby node may be started every time synchronization data is generated on an active node, and the synchronization data may be reflected on the standby node. However, running the standby node every time such synchronization processing is performed consumes computing resources for that amount of time. Therefore, in addition to the job that the user originally wanted to execute, the synchronization processing incurs extra costs.

[0009] In one aspect, the present invention aims to efficiently improve availability. [Means for solving the problem]

[0010] In one aspect, a program is provided. The program causes a computer to execute the following process. The computer places common data used in common for the execution of jobs corresponding to each of a plurality of users in a first storage unit accessed by an active node used for a job corresponding to a first user among a plurality of users and a second storage unit accessed by a standby node corresponding to the active node. The computer writes unique data of the job corresponding to the first user, which is updated by the first user in response to the execution of the job by the active node or in a shared storage shared by the active node and the standby node, and stops the standby node while the active node is operating. When switching the execution subject of the job from the active node to the standby node, the computer starts the standby node and performs a setting that enables the standby node to read the unique data from the shared storage.

[0011] According to another aspect, there is provided an information processing method, and an information processing device having a communication unit and a processing unit. Effect of the Invention

[0012] On the one hand, it can efficiently improve availability. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment. [Diagram 2] FIG. 1 illustrates an example of a cloud system according to a second embodiment; [Diagram 3] FIG. 2 illustrates an example of hardware of a physical machine. [Figure 4] FIG. 2 is a diagram illustrating an example of network connection relationships in a cloud system. [Diagram 5] FIG. 2 illustrates an example of functions of a cloud system. [Figure 6] FIG. 13 illustrates an example of a management table. [Figure 7]FIG. 13 illustrates an example of mounting a shared storage by an operational machine and a standby machine. [Figure 8] 13 is a flowchart illustrating an example of switching between active and standby machines. [Figure 9] FIG. 13 illustrates an example of machine creation according to the third embodiment; [Figure 10] FIG. 13 illustrates an example of a management table. [Figure 11] FIG. 13 illustrates an example of editing a management table using a serverless function. [Figure 12] FIG. 13 is a diagram illustrating an example of load balancer control using a serverless function. [Figure 13] 13 is a flowchart illustrating an example of preparing a service upgraded machine. [Figure 14] 11 is a flowchart illustrating an example of a service upgraded machine creation. [Figure 15] 13 is a flowchart illustrating an example of updating a machine type in a management table. [Figure 16] FIG. 13 is a diagram showing a specific example of updating a machine type in the management table. [Figure 17] 13 is a flowchart illustrating an example of service upgrade control. [Figure 18] 13 is a flowchart illustrating an example of a service upgrade availability determination. [Figure 19] 11 is a flowchart showing an example of each step of failover processing. [Figure 20] FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] The present embodiment will be described below with reference to the drawings. [First embodiment] A first embodiment will be described.

[0015] FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment. The information processing device 10 is connected to an information processing system 20. The information processing device 10 may be included in the information processing system 20. The information processing system 20 allows a plurality of nodes realized by a plurality of physical machines or a plurality of virtual machines to be used by a user. The information processing system 20 is used by a plurality of users. The information processing device 10 may be referred to as a computer. The information processing system 20 may be referred to as a cloud system. The users may be referred to as tenants.

[0016] The nodes included in the information processing system 20 execute jobs related to services used by users. For example, a user uses a node included in the information processing system 20 by using an access source node 30. The access source node 30 may be a terminal device used by the user, such as a smartphone, tablet, or PC (Personal Computer), or may be a physical machine or a virtual machine included in the information processing system 20.

[0017] The information processing device 10 controls a plurality of nodes included in the information processing system 20. The information processing device 10 has a storage unit 11, a processing unit 12, and a communication unit 13. The storage unit 11 may be a volatile semiconductor memory such as a random access memory (RAM), or may be a non-volatile storage such as a hard disk drive (HDD) or a flash memory. The storage unit 11 stores data used in processing by the processing unit 12.

[0018] The processing unit 12 is, for example, a processor such as a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). However, the processing unit 12 may include an electronic circuit for a specific purpose such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The processor executes a program stored in a memory such as a RAM (which may be the storage unit 11). A set of multiple processors may be called a "multiprocessor" or simply a "processor."

[0019] The communication unit 13 is a communication interface used for communication with each node included in the information processing system 20. For example, the processing unit 12 communicates with each node via the communication unit 13. The information processing system 20 has an active node 21, a standby node 22, a first storage unit 23, a second storage unit 24, a shared storage 25, and a relay node 26. The active node 21 is an active node that executes a job of a first user among a plurality of users. The standby node 22 is a standby node corresponding to the active node 21. Taking into consideration the influence of disasters and the like, the active node 21 and the standby node 22 may be provided at geographically separated bases such as data centers.

[0020] The first storage unit 23 is a local storage of the active node 21, which is accessed by the active node 21. A storage area such as an HDD or SSD allocated to the active node 21 is used for the first storage unit 23. The second storage unit 24 is a local storage of the standby node 22, which is accessed by the standby node 22. A storage area such as an HDD or SSD allocated to the standby node 22 is used for the second storage unit 24. The shared storage 25 is a storage shared by the active node 21 and the standby node 22, and can be mounted to the active node 21 and the standby node 22. The shared storage 25 has a storage device such as an HDD or SSD, and provides the storage area of ​​the storage device to the active node 21 and the standby node 22. The shared storage 25 is mounted from the active node 21 and the standby node 22 via a network.

[0021] The relay node 26 is a node that relays an access from the access source node 30 to the active node 21 or the standby node 22. When a job is run in the active node 21, the relay node 26 transfers the request from the access source node 30 to the active node 21. When a job is run in the standby node 22, the relay node 26 transfers the request from the access source node 30 to the standby node 22.

[0022] As described above, in the information processing system 20, by providing the standby node 22 for the active node 21, it is possible to switch to operation at the standby node 22 when an abnormality occurs in the active node 21. At this time, the processing unit 12 communicates with the active node 21 and the standby node 22 via the communication unit 13, and controls the active node 21 and the standby node 22 as follows. The following control may be realized by the processing unit 12 executing a lightweight program called a serverless function in a cloud system, for example.

[0023] The processing unit 12 places common data commonly used for executing jobs corresponding to multiple users in each of the first storage unit 23 and the second storage unit 24. The common data is, for example, a job management software program that manages jobs, such as defining and executing jobs. Each user can use the functions of the software to define processing related to a service that the user wishes to use as a job, and have the node that the user uses execute the job.

[0024] When the active node 21 and the standby node 22 are each realized by a virtual machine, the processing unit 12 creates the active node 21 and the standby node 22 by using a virtual machine image including the common data. This allows the processing unit 12 to place the common data in the first storage unit 23 assigned to the active node 21 based on the virtual machine image, and in the second storage unit 24 assigned to the standby node 22 based on the virtual machine image.

[0025] The processing unit 12 causes the operation node 21 to write unique data, which is updated in response to the execution of a job corresponding to the first user by the operation node 21 or by the first user, to the shared storage 25. The unique data is user-specific data used for the execution of a job. The unique data of the first user includes, for example, at least one of job definition information indicating the contents of the job defined by the first user and job status information indicating the execution status and execution result of the job. The job definition information is updated by the first user in response to the contents of the job to be executed. The job status information is updated in response to the execution status of the job. In addition, the processing unit 12 stops the standby node 22 while the operation node 21 is operating. Specifically, the processing unit 12 mounts the shared storage 25 on the operation node 21, thereby enabling the operation node 21 to directly write unique data to the shared storage 25. In addition, when the standby node 22 is realized by a virtual machine, the processing unit 12 stops the standby node 22 created from the virtual machine image and maintains the standby node 22 in a startable state.

[0026] When switching the job execution subject from the operating node 21 to the standby node 22, the processing unit 12 starts the standby node 22 and performs settings that enable the standby node 22 to read the unique data from the shared storage 25. Specifically, the processing unit 12 mounts the shared storage 25 on the standby node 22, thereby enabling the standby node 22 to read the unique data.

[0027] For example, when the processing unit 12 detects an abnormality that makes it impossible to continue a job operation in the operational node 21, such as a software error in the operational node 21, the processing unit 12 switches the job execution subject from the operational node 21 to the standby node 22. At this time, the processing unit 12 unmounts the shared storage 25 from the operational node 21 and mounts the shared storage 25 on the activated standby node 22. As a result, for example, a predetermined storage area in which unique data of the shared storage 25 is written is mounted on a mount point of the standby node 22. Then, the standby node 22 can read the unique data written in the shared storage 25 via the mount point. The standby node 22 takes over and executes the job from the operational node 21 based on the common data stored in the second storage unit 24 and the unique data stored in the shared storage 25.

[0028] When switching from the active node 21 to the standby node 22, the processing unit 12 performs a setting on the relay node 26 to switch the access destination of the access source node 30 from the active node 21 to the standby node 22. For example, before unmounting the shared storage 25 from the active node 21, the processing unit 12 deletes information on the active node 21 (e.g., a host name or an IP (Internet Protocol) address) from the connection destination information held by the relay node 26. Here, the connection destination information indicates a transfer destination of a request by the relay node 26, and information such as an IP address of the transfer destination is registered in association with information such as an IP address of the request sender. Then, after mounting the shared storage 25 on the standby node 22, the processing unit 12 adds information on the standby node 22 (e.g., a host name or an IP address) to the connection destination information held by the relay node 26. As a result, even if an abnormality occurs in the active node 21, the standby node 22 continues to provide a service to the first user.

[0029] According to the information processing device 10 of the first embodiment, common data commonly used for the execution of jobs of each user is arranged in each of the first storage unit 23 accessed by the active node 21 and the second storage unit 24 accessed by the standby node 22. Job specific data corresponding to the first user, which is updated according to the execution of the job by the active node 21 or by the first user, is written to the shared storage 25, and the standby node 22 is stopped while the active node 21 is operating. When the job execution subject is switched from the active node 21 to the standby node 22, the standby node 22 is started. Then, a setting is made to enable the standby node 22 to read the specific data from the shared storage 25.

[0030] This allows the information processing device 10 to efficiently improve the availability of services. Specifically, this is as follows. Data linkage between the active node 21 and the standby node 22 is performed using the shared storage 25. The standby node 22 can read the unique data updated by the active node 21 from the shared storage 25. This eliminates the need to perform data synchronization processing between the active node 21 and the standby node 22 periodically or each time data is updated, and it is sufficient to start up the standby node 22 when switching from the active node 21 to the standby node 22.

[0031] However, when the shared storage 25 is shared by both the active node 21 and the standby node 22 by making it mountable from both nodes, the shared storage 25 is shared by the active node 21 and the standby node 22 via the network. For this reason, if a relatively large amount of data is read from the shared storage 25 to the standby node 22 at the time of switching, it may take a long time to read the data. This may cause a delay in completing the switching and affect availability.

[0032] Therefore, the information processing device 10 arranges the common data in the first storage unit 23 of the active node 21 and the second storage unit 24 of the standby node 22, and writes unique data other than the common data in the shared storage 25. This reduces the amount of data read from the shared storage 25 by the standby node 22 at the time of switching, compared to writing both the common data and the unique data in the shared storage 25. As a result, for example, the time required from the detection of an abnormality in the active node 21 to the standby node 22 resuming a job related to the service is reduced, and it becomes possible to quickly switch from the active node 21 to the standby node 22.

[0033] In this way, the information processing device 10 can reduce delays during switching and omit the synchronization process, compared to a method in which the standby node 22 is started up and the synchronization process is performed each time the synchronization process is performed. Therefore, the information processing device 10 can ensure availability while reducing the cost of running the standby node 22.

[0034] Furthermore, since the common data is not stored in the shared storage 25, there is an advantage that the storage resources allocated to the shared storage 25 can be reduced compared to when both the common data and the unique data are stored in the shared storage 25. There is also an advantage that even if the operational node 21 stops due to an abnormality, the standby node 22 can obtain the latest unique data from the shared storage 25 and continue job operation.

[0035] [Second embodiment] Next, a second embodiment will be described. FIG. 2 illustrates an example of a cloud system according to the second embodiment.

[0036] The cloud system 2 provides cloud services. One example of a cloud service is AWS (Amazon Web Services). AWS is a registered trademark. Amazon is a registered trademark. However, the cloud system 2 may provide other cloud services. The cloud system 2 has physical machines 100, 100a, .... The physical machines 100, 100a, ... are servers having computing resources provided to users. Although not shown in the figure, the cloud system 2 further includes a large amount of hardware such as network devices and storage devices. The cloud system 2 lends resources such as the physical machines 100, 100a, ..., network devices, and storage devices to users and makes them available for use by the users.

[0037] The cloud system 2 charges the user a fee according to the performance, amount, and usage time of the resources used by the user. The fee is an example of the cost to the user associated with the use of the cloud system 2. However, the cost may be another index such as power consumption or an electricity bill according to the power consumption.

[0038] The cloud system 2 is connected to the Internet 3. A terminal device 4 is also connected to the Internet 3. The terminal device 4 is a client computer operated by a user. The user can use the services of the cloud system 2 by operating the terminal device 4. Hereinafter, a user or a group of users who use the cloud system 2 will be referred to as a tenant.

[0039] FIG. 3 is a diagram illustrating an example of hardware of a physical machine. The physical machine 100 has a processor 101, a RAM 102, a HDD 103, a GPU 104, an input interface 105, a media reader 106, and a communication interface 107. These units of the physical machine 100 are connected to a bus inside the physical machine 100. The processor 101 corresponds to the processing unit 12 of the first embodiment. The RAM 102 or the HDD 103 corresponds to the storage unit 11 of the first embodiment. The communication interface 107 corresponds to the communication unit 13 of the first embodiment.

[0040] The processor 101 is an arithmetic device that executes program instructions. The processor 101 is, for example, a CPU. The processor 101 loads at least a part of the program and data stored in the HDD 103 into the RAM 102 and executes the program. The processor 101 may include multiple processor cores. The physical machine 100 may have multiple processors. The processing described below may be executed in parallel using multiple processors or processor cores. A set of multiple processors may also be called a "multiprocessor" or simply a "processor."

[0041] The RAM 102 is a volatile semiconductor memory that temporarily stores programs executed by the processor 101 and data used in calculations by the processor 101. Note that the physical machine 100 may include a type of memory other than a RAM, and may include multiple memories.

[0042] The HDD 103 is a non-volatile storage device that stores software programs such as an OS (Operating System), middleware, and application software, as well as data. Note that the physical machine 100 may also include other types of storage devices, such as a flash memory or an SSD (Solid State Drive), and may also include multiple non-volatile storage devices.

[0043] The GPU 104 outputs an image to a display 111 connected to the physical machine 100 in accordance with an instruction from the processor 101. As the display 111, any type of display can be used, such as a CRT (Cathode Ray Tube) display, a liquid crystal display (LCD: Liquid Crystal Display), a plasma display, or an organic EL (OEL: Organic Electro-Luminescence) display.

[0044] The input interface 105 acquires an input signal from an input device 112 connected to the physical machine 100, and outputs the signal to the processor 101. The input device 112 may be a pointing device such as a mouse, a touch panel, a touch pad, or a trackball, a keyboard, a remote controller, or a button switch. In addition, a plurality of types of input devices may be connected to the physical machine 100.

[0045] The medium reader 106 is a reading device that reads programs and data recorded on a recording medium 113. For example, a magnetic disk, an optical disk, a magneto-optical disk (MO: Magneto-Optical disk), a semiconductor memory, etc. can be used as the recording medium 113. Magnetic disks include flexible disks (FD: Flexible Disks) and HDDs. Optical disks include compact discs (CDs) and digital versatile discs (DVDs).

[0046] The medium reader 106 copies, for example, the program or data read from the recording medium 113 to another recording medium such as the RAM 102 or the HDD 103. The read program is executed, for example, by the processor 101. Note that the recording medium 113 may be a portable recording medium, and may be used for distributing the program or data. Also, the recording medium 113 and the HDD 103 may be referred to as computer-readable recording media.

[0047] The communication interface 107 is connected to a network 114 and communicates with other information processing devices via the network 114. The communication interface 107 may be a wired communication interface connected to a wired communication device such as a switch or a router, or a wireless communication interface connected to a wireless communication device such as a base station or an access point. The network 114 is an internal network of the cloud system 2.

[0048] The other physical machines in the cloud system 2, including the physical machine 100a, and the terminal device 4 are also realized by hardware similar to that of the physical machine 100. FIG. 4 is a diagram illustrating an example of network connections in a cloud system.

[0049] The cloud system 2 includes a region 2a, a virtual private cloud (VPC) 2b, and availability zones (AZ) 2c1 and 2c2.

[0050] Region 2a is an area having multiple data centers. VPC 2b is a virtual network for a tenant built in cloud system 2 within region 2a. VPCs are logically separated for each tenant. In other words, multiple VPCs can exist for multiple tenants. AZ2c1 and 2c2 are collections of one or more data centers located within region 2a. Although not shown in the figure, AZ2c1 and 2c2 include subnets, which are management units for networks used by tenants.

[0051] The cloud system 2 includes a monitoring node 40, a serverless function execution node 50, a machine image management node 60, a management DB (DataBase) 70, an Internet gateway 80, and a load balancer 90.

[0052] The monitoring node 40 detects an event by monitoring the virtual machines used by the tenants, and instructs the serverless function execution node 50 to execute a serverless function in response to the event.

[0053] The serverless function execution node 50 executes a serverless function. Processing by the serverless function includes control such as starting and stopping a tenant's virtual machine and changing the settings of the load balancer 90. Different serverless functions may be prepared in advance for each control content, and a serverless function according to the control content to be executed may be executed.

[0054] The machine image management node 60 manages the machine images of the virtual machines used by the tenants. A machine image is data used to start up a virtual machine. The monitoring node 40, the serverless function execution node 50, and the machine image management node 60 are arranged in a network equivalent to, for example, the region 2a in the cloud system 2. The network of the region 2a is connected to the network of the VPC 2b. The monitoring node 40, the serverless function execution node 50, and the machine image management node 60 can communicate with nodes in the VPC 2b via the network of the region 2a.

[0055] The management DB 70 stores data used in the processing of the monitoring node 40 and the server-less function execution node 50. The management DB 70 is placed in the network of the region 2a. The Internet gateway 80 is a node that is connected to the Internet 3 and relays communications between the Internet 3 and nodes within the VPC 2b. The Internet gateway 80 is provided in the region 2a.

[0056] The load balancer 90 is a node that relays communication between the Internet gateway 80 and the virtual machines in AZs 2c1 and 2c2. The load balancer 90 receives a request of a tenant transmitted by a terminal device 4 via the Internet gateway 80, and controls distribution of the request to the virtual machines in AZs 2c1 and 2c2. The load balancer 90 is provided in VPC 2b.

[0057] AZ2c1 includes an operational machine 200 and a storage 201. The operational machine 200 is an operational virtual machine used by a tenant corresponding to VPC2b, and executes jobs related to services used by the tenant. The storage 201 is a local storage of the operational machine 200.

[0058] AZ2c2 includes a standby machine 300 and a storage 301. The standby machine 300 is a standby virtual machine corresponding to the operational machine 200. The standby machine 300 is used by a tenant corresponding to VPC2b. The standby machine 300 is stopped when the operational machine 200 is in operation. If the standby machine 300 is stopped, the computing resources of the standby machine 300 are not used, so that no charge is incurred to the tenant. The standby machine 300 is started when an abnormality occurs in the operational machine 200, and takes over and executes the job of the operational machine 200. The storage 301 is a local storage of the standby machine 300. Here, the control of switching the operation of the operational machine 200 to the standby machine 300 is called a failover. As described later, the failover is also used when upgrading machines.

[0059] VPC 2b is provided with shared storage 400 accessible from operational machine 200 and standby machine 300 via a network within VPC 2b. Shared storage 400 is mountable from operational machine 200 and standby machine 300. Data to be handed over to standby machine 300 when switching from operational machine 200 to standby machine 300 is stored in shared storage 400.

[0060] Here, the monitoring node 40, the serverless function execution node 50, and the machine image management node 60 are realized by physical machines included in the physical machines 100, 100a, .... The monitoring node 40, the serverless function execution node 50, and the machine image management node 60 may be realized by virtual machines executed using the hardware resources of the physical machines. The monitoring node 40, the serverless function execution node 50, and the machine image management node 60 may be realized by one physical machine or different physical machines. The Internet gateway 80 and the load balancer 90 are realized by a communication device included in the cloud system 2, the physical machine, or a virtual machine on the physical machine.

[0061] The operational machine 200 and the standby machine 300 are virtual machines executed using hardware resources of the physical machines included in the physical machines 100, 100a, .... The storage 201 is realized by a storage area such as an HDD or SSD of the physical machine allocated to the operational machine 200. The storage 301 is realized by a storage area such as an HDD or SSD of the physical machine allocated to the standby machine 300. The management DB 70 is realized by the physical machines included in the region 2a and a storage device having an HDD, SSD, etc.

[0062] The shared storage 400 is realized by a storage device accessible by the operational machine 200 and the standby machine 300 via the network of VPC2b. The storage device includes an HDD, an SSD, etc. For example, a part of the storage area of ​​the storage device is allocated as the shared storage 400 to the tenant corresponding to VPC2b.

[0063] FIG. 5 is a diagram illustrating an example of functions of a cloud system. The cloud system 2 has a monitoring unit 41 and a serverless function 51. The monitoring unit 41 is realized by a processor of the monitoring node 40 executing a program stored in the RAM of the monitoring node 40. The serverless function 51 is realized by a processor of the serverless function execution node 50 executing a lightweight program stored in the RAM of the serverless function execution node 50.

[0064] The monitoring unit 41 monitors the operational machine 200, and when an abnormality in the operational machine 200 is detected, the monitoring unit 41 causes the serverless function execution node 50 to start the serverless function 51. When a failover is performed by the serverless function 51, the monitoring unit 41 monitors the standby machine 300 that has become the new job execution subject (new operational machine).

[0065] The serverless function 51 performs a failover. During the failover, the serverless function 51 unmounts the shared storage 400 from the operational machine 200, starts the standby machine 300, mounts the shared storage on the standby machine 300, and changes the allocation destination of requests by the load balancer 90. Note that these processes of the serverless function 51 may be shared and performed by a plurality of serverless functions.

[0066] Here, storage 201 and storage 301 store tenant common data related to jobs executed by operation machine 200 and standby machine 300. The tenant common data is data commonly used in the execution of jobs of multiple tenants, and is a software program of the platform for executing the jobs of each tenant. Each tenant can define a process related to a service that the tenant wishes to use as a job using the functions of the software, and cause the node that the tenant uses to execute the job.

[0067] Furthermore, shared storage 400 stores tenant-specific data that is updated in response to job execution by operational machine 200, etc. Tenant-specific data is information indicating a job state (job state) and definition (job definition). A job definition may include the processing content of a job and an execution schedule of the job. A job definition is updated by a tenant in response to the content of a job that the tenant wishes to execute. A job state may include the execution results of a job up to now. A job state is updated in response to job execution by operational machine 200.

[0068] By not arranging tenant common data in the shared storage 400, it is possible to save the storage capacity used for the shared storage 400. The shared storage 400 may include a standard storage, the usage fee of which is relatively low, and a high-speed storage, the usage fee of which is higher than that of the standard storage. In that case, for example, among the tenant specific data, job definition data, which is updated relatively infrequently, may be stored in the standard storage, and job status data, which is updated relatively frequently, may be stored in the high-speed storage. This reduces the usage cost of the shared storage 400 by the tenants while minimizing the impact on operations.

[0069] The management DB 70 also stores a management table 71 used for controlling failover. The management table 71 is used for managing the operating states and machine images of the operational and standby machines, including the operational machine 200 and the standby machine 300, for each tenant.

[0070] FIG. 6 illustrates an example of the management table. The management table 71 includes the following fields: tenant ID (IDentifier), tenant status, machine ID, machine type, and image ID. The tenant ID is registered in the tenant ID field. The tenant ID is identification information of a tenant.

[0071] The tenant status is registered in the tenant status item. The tenant status indicates the status of the service upgrade for the tenant. "normal" or "patch" is set as the tenant status. The tenant status "normal" indicates a normal operating state. The tenant status "patch" indicates a state in which a service upgraded machine, described below, has been prepared.

[0072] The machine ID field contains the machine ID, which is identification information for a virtual machine. The machine type is registered in the machine type field. The machine type indicates the type of virtual machine. There are six machine types, i.e. types of virtual machines: The machine type "production" indicates an operational machine. The machine type "standby" indicates a standby machine. The machine type "standby_new" indicates a standby machine whose service has been upgraded. The machine type "production_new" indicates an operational machine whose service has been upgraded. The machine type "standby_old" indicates the standby machine immediately before switchover due to failover, i.e., the old standby machine. The machine type "production_old" indicates the operational machine immediately before switchover due to failover, i.e., the old operational machine.

[0073] The image ID is identification information of the machine image from which the virtual machine corresponding to the machine ID is created, and is used to obtain the data body of the machine image. For example, the management table 71 holds a tenant status of "normal" for the tenant ID "1". Furthermore, the management table 71 has a record of a machine type of "production" and an image ID of "imageXXX1" for the machine ID "1". This record is data indicating the operational machine 200. Furthermore, the management table 71 has a record of a machine ID of "2", a machine type of "standby", and an image ID of "imageXXX1" for the tenant ID "1". This record is data indicating the standby machine 300.

[0074] In the management table 71, records of virtual machines used by other tenants may also be registered in a similar manner. FIG. 7 is a diagram illustrating an example of mounting a shared storage by the active and standby machines.

[0075] When the operational machine 200 is in operation, the standby machine 300 is stopped. In this case, the shared storage 400 is mounted on the operational machine 200. When the standby machine 300 is stopped, the shared storage 400 is not mounted on the standby machine 300, that is, the shared storage 400 is in an unmounted state with respect to the standby machine 300. The operational machine 200 writes the job definition and the job status to the shared storage 400 as tenant-specific data. In response to an input of a change to the job definition by a tenant, the operational machine 200 updates the job definition included in the tenant-specific data of the shared storage 400. In addition, in response to the execution of a job, the operational machine 200 updates the job status included in the tenant-specific data of the shared storage 400.

[0076] When switching from the operational machine 200 to the standby machine 300 is performed, the shared storage 400 is unmounted from the operational machine 200. Then, the standby machine 300 is started, and the shared storage 400 is mounted on the standby machine 300. Then, the standby machine 300 becomes able to read the latest tenant specific data written by the operational machine 200 from the shared storage 400. The standby machine 300 takes over and executes the job from the operational machine 200 based on the tenant common data stored in the storage 301 and the tenant specific data stored in the shared storage 400.

[0077] Next, a description will be given of a procedure for switching from the operational machine 200 to the standby machine 300. The procedure will be described below for the tenant with the tenant ID "1", but the procedure is similar for the other tenants.

[0078] FIG. 8 is a flowchart showing an example of switching between active and standby machines. (S10) The monitoring unit 41 detects an abnormality in a service related to job execution in the operational machine 200. The monitoring unit 41 instructs the serverless function execution node 50 to execute the serverless function 51. Then, the serverless function 51 is started, and the following processing is executed.

[0079] (S11) The serverless function 51 acquires the tenant ID corresponding to the operational machine 200 and the machine ID of the machine of the machine type “standby” from the management table 71. Here, in the drawing, the machine type “standby” may be abbreviated as “type:standby”.

[0080] (S12) The serverless function 51 deletes the connection destination of the load balancer 90. Specifically, the serverless function 51 deletes the operational machine 200 from the transfer destinations of requests by the load balancer 90.

[0081] (S13) The serverless function 51 stops the relevant service of the machine with the machine ID of the machine type “production”, that is, the operational machine 200. (S14) The serverless function 51 unmounts the shared storage 400 of the machine with the machine ID of the machine type “production”, that is, the operational machine 200.

[0082] (S15) The serverless function 51 starts up the machine with the machine ID of the machine type “standby”, that is, the standby machine 300. (S16) The serverless function 51 mounts the shared storage 400 on the machine with the machine ID of the machine type “standby”, that is, the standby machine 300.

[0083] (S17) The serverless function 51 starts the relevant service of the machine having the machine type “standby” and the machine ID, that is, the standby machine 300. (S18) The serverless function 51 adds the standby machine 300 to the connection destinations of the load balancer 90. As a result, requests from the tenants are distributed to the standby machine 300 by the load balancer 90.

[0084] (S19) Serverless function 51 updates management table 71. Specifically, serverless function 51 changes the machine type of standby machine 300 to "production". Also, serverless function 51 stops operational machine 200, and changes the machine type of operational machine 200 to "standby". Then, switching from operational machine 200 to standby machine 300 is completed.

[0085] In cloud system 2 according to the second embodiment, data linkage between operational machine 200 and standby machine 300 is performed using shared storage 400 under the control of serverless function 51. Standby machine 300 can directly read unique data updated by operational machine 200 from shared storage 400. This eliminates the need to periodically synchronize data between operational machine 200 and standby machine 300, and it is sufficient to start up standby machine 300 when switching from operational machine 200 to standby machine 300.

[0086] However, the shared storage 400 is shared by the operational machine 200 and the standby machine 300 via the network. For this reason, if the standby machine 300 is made to read a relatively large amount of data from the shared storage 400 at the time of switching, it may take a long time to read the data. This may cause a delay in completing the switching and affect availability.

[0087] Therefore, the serverless function 51 arranges tenant common data in the storage 201 of the operational machine 200 and the storage 301 of the standby machine 300, respectively, and writes tenant specific data to the shared storage 400. This reduces the amount of data read from the shared storage 400 by the standby machine 300 at the time of switching, compared to writing both the tenant common data and the tenant specific data to the shared storage 400. As a result, the time required from the detection of an abnormality in the operational machine 200 to the standby machine 300 resuming a job related to the service is reduced, and it becomes possible to quickly switch from the operational machine 200 to the standby machine 300.

[0088] In this way, it is not necessary to start up standby machine 300 and perform synchronization processing every time synchronization processing is performed, which reduces unnecessary costs associated with running standby machine 300 and speeds up switching to standby machine 300. In other words, the availability of services provided by operational machine 200 is efficiently improved.

[0089] Furthermore, because the tenant common data is not stored in the shared storage 400, there is an advantage that the storage resources allocated to the shared storage 400 can be reduced compared to storing both the tenant common data and the tenant specific data in the shared storage 400. In addition, there is an advantage that even if the operational machine 200 stops due to an abnormality, the standby machine 300 can obtain the latest tenant specific data from the shared storage 400 and continue job operations.

[0090] [Third embodiment] Next, a third embodiment will be described. Differences from the second embodiment will be mainly described, and descriptions of common points will be omitted.

[0091] In the third embodiment, an example will be described in which the failover process exemplified in the second embodiment is used when upgrading a service provided by the operational machine 200. The hardware and functions of the cloud system 2 in the third embodiment are similar to those exemplified in Figs. 2 to 5, and therefore description thereof will be omitted.

[0092] FIG. 9 illustrates an example of creating a machine according to the third embodiment. AZ2c1 has a service-upgraded machine 200a in addition to the operational machine 200 and storage 201. The service-upgraded machine 200a is a virtual machine in which an upgraded program of the service provided by the operational machine 200 is installed. The service-upgraded machine 200a is created using a machine image 61. The machine image 61 is image data of the virtual machine in which the upgraded program is installed. Although not shown in the figure, the service-upgraded machine 200a also has local storage, and the upgraded program is stored in the local storage as tenant common data.

[0093] AZ2c2 has a service-upgraded machine 300a in addition to the standby machine 300 and storage 301. The service-upgraded machine 300a is a virtual machine in which an upgraded program of the service provided by the operational machine 200 is installed. The service-upgraded machine 300a is also created using the machine image 61. Although not shown in the figure, the service-upgraded machine 300a also has a local storage, and the upgraded program is stored in the local storage as tenant common data.

[0094] For example, the service-upgraded machine 200a is used as a new standby system (new standby system), and the service-upgraded machine 300a is used as a new active system (new active system).

[0095] The machine image 61 includes tenant common data, which is the upgraded program, but does not include tenant specific data. Therefore, the machine image 61 can be reused for multiple tenants. Therefore, it is not necessary to create a machine image 61 for each tenant, and the deployment of service-upgraded virtual machines can be made more efficient.

[0096] The service-upgraded machines 200a and 300a are stopped immediately after being created and started from the machine image 61, and are maintained in a startable state. The serverless function 51 manages the service-upgraded machines 200a and 300a as follows.

[0097] FIG. 10 illustrates an example of the management table. A management table 71a illustrates an example in which information on the service-upgraded machines 200a and 300a has been added to the management table 71. The items included in the management table 71a are the same as those included in the management table 71.

[0098] For example, the management table 71a holds a tenant status of "patch" for the tenant ID "1". As described above, the tenant status of "patch" indicates that the service-upgraded machines 200a, 300a have been prepared. Furthermore, the management table 71a holds a record of a machine ID of "3", a machine type of "standby_new", and an image ID of "imageXXX2" for the tenant ID "1". This record is data indicating the service-upgraded machine 200a. Furthermore, the management table 71a holds a record of a machine ID of "4", a machine type of "production_new", and an image ID of "imageXXX2" for the tenant ID "1". This record is data indicating the service-upgraded machine 300a. Here, the image ID "imageXXX2" indicates the machine image 61.

[0099] Note that the management table 71a also shows an example in which data regarding a virtual machine of a tenant with a tenant ID of "2" is registered. FIG. 11 illustrates an example of editing the management table using a serverless function.

[0100] When the service-upgraded machines 200a and 300a are created from the machine image 61, the serverless function 51 registers information about the service-upgraded machines 200a and 300a in the management table 71a.

[0101] The service-upgraded machines 200a and 300a are created while the operational machine 200 is in an activated state and is running. Both the service-upgraded machines 200a and 300a are stopped after being created. In this way, the serverless function 51 prepares the service-upgraded machines 200a and 300a in AZs 2c1 and 2c2, respectively.

[0102] FIG. 12 illustrates an example of load balancer control using a serverless function. The serverless function 51 switches the job execution subject from the current operational machine 200 to the service-upgraded machine 300a (new operational machine) during a time period when the operational machine 200 is not executing jobs. Specifically, the serverless function 51 unmounts the shared storage 400 from the operational machine 200 based on the management table 71a, and stops the operational machine 200. Next, the serverless function 51 starts up the service-upgraded machine 300a, and mounts the shared storage 400 on the service-upgraded machine 300a.

[0103] Then, based on the management table 71a, the serverless function 51 performs a setting on the load balancer 90 to switch the transfer destination of the tenant request from the operational machine 200 to the service upgraded machine 300a. For example, the serverless function 51 rewrites the host name or IP address of the operational machine 200 in the operational machine connection destination information held by the load balancer 90 to the host name or IP address of the service upgraded machine 300a. Also, when the load balancer 90 has standby machine connection destination information, the host name or IP address of the standby machine 300 in the standby machine connection destination information may be rewritten to the host name or IP address of the service upgraded machine 200a.

[0104] In this manner, the serverless function 51 switches operation from the operational machine 200 to the service-upgraded machine 300a. Next, a description will be given of a procedure for switching from the operational machine 200 to the service-upgraded machine 300a. The procedure will be described below for the tenant with the tenant ID "1", but the procedure is similar for the other tenants.

[0105] FIG. 13 is a flow chart showing an example of preparing a service upgraded machine. When an instruction to create a virtual machine from the machine image 61 is input to the monitoring unit 41, the monitoring unit 41 starts the serverless function 51 to execute the following procedure. The instruction to create a virtual machine may be input to the machine image management node 60, and the machine image management node 60 may start the serverless function 51 to execute the following procedure.

[0106] (S20) The serverless function 51 creates a service-upgraded machine. The details of the service-upgraded machine creation will be described later. The service-upgraded machine creation is executed while the operational machine 200 is running a job.

[0107] (S21) The serverless function 51 updates the machine type in the management table. The details of the machine type update will be described later. (S22) The serverless function 51 updates the tenant status in the management table. For example, the serverless function 51 updates the tenant status corresponding to the tenant ID "1" from "normal" to "patch." Then, preparation of the service-upgraded machine is completed.

[0108] A management table 71a in FIG. 10 illustrates an example of a management table at a stage immediately before the machine type update in step S21 in the case where the tenant status update in step S22 is performed before the machine type update in step S21.

[0109] FIG. 14 is a flow chart illustrating an example of creating a service upgraded machine. Creating a service-upgraded machine corresponds to step S20. (S30) The serverless function 51 obtains, from the management table 71, information on the machines of machine type “production” and “standby” corresponding to the tenant ID “1”, that is, the operational machine 200 and the standby machine 300.

[0110] (S31) The serverless function 51 acquires a machine of the machine type “standby”, that is, a subnet in which the standby machine 300 exists. (S32) The serverless function 51 creates a machine of the machine type "production_new", i.e., the service-upgraded machine 300a, from the service-upgraded machine image 61 in the subnet acquired in step S31. Here, the serverless function 51 creates the service-upgraded machine 300a in, for example, AZ2c2 that is different from AZ2c1 in which the current production machine 200 exists.

[0111] (S33) Because the service-upgraded machine 300a (machine of machine type "production_new") is started by the creation in step S32, the serverless function 51 stops the service-upgraded machine 300a.

[0112] (S34) The serverless function 51 acquires the subnet in which a machine of the machine type “production”, that is, the operational machine 200, exists. (S35) The serverless function 51 creates a machine of the machine type "standby_new", i.e., the service-upgraded machine 200a, from the service-upgraded machine image 61 in the subnet acquired in step S34. Here, the serverless function 51 creates the service-upgraded machine 200a, for example, in AZ2c1 that is different from AZ2c2 in which the service-upgraded machine 300a, which will be the new operational system, exists.

[0113] (S36) The serverless function 51 stops the service-upgraded machine 200a (machine of machine type "standby_new") created in step S35 because the service-upgraded machine 200a is to be started.

[0114] (S37) The serverless function 51 adds information about the service-upgraded machines 200a and 300a to the management table 71. Then, the creation of the service-upgraded machine is completed.

[0115] FIG. 15 is a flowchart showing an example of updating the machine type in the management table. Updating the machine type in the management table corresponds to step S21. (S40) The serverless function 51 acquires the machine type of each machine corresponding to the tenant ID “1”.

[0116] (S41) The serverless function 51 updates the machine type of each virtual machine of tenant "1" included in the management table after the update in step S37 as follows: The serverless function 51 updates the machine type "production" to "production_old". The serverless function 51 updates the machine type "standby_new" to "standby". The serverless function 51 updates the machine type "standby" to "standby_old". The serverless function 51 updates the machine type "production_new" to "production". Then, the machine type update in the management table is completed.

[0117] FIG. 16 is a diagram showing a specific example of updating the machine type in the management table. The serverless function 51 updates the management table 71 to management table 71b in step S37. The serverless function 51 updates the management table 71b to management table 71c by the procedure illustrated in FIG. 15. The management table 71c shows the management table after the update in step S41. After that, the serverless function 51 executes step S22 to update the tenant status of the management table 71c from "normal" to "patch". The management table 71d shows the state in which the tenant status of the management table 71c has been updated from "normal" to "patch".

[0118] FIG. 17 is a flowchart showing an example of service upgrade control. The procedure below is described as being executed by the serverless function 51, but the procedure below may be executed by a serverless function different from the serverless function 51 that executes the service-upgraded machine preparation. For example, the serverless function 51 is periodically started by a predetermined resident process to execute the procedure below. The resident process may be executed by, for example, the monitoring node 40 or the serverless function execution node 50.

[0119] (S50) The serverless function 51 acquires the tenant status of the relevant tenant from the management table 71c. Note that, as an example, a procedure for the tenant with the tenant ID "1" is shown, but the same procedure applies to other tenants.

[0120] (S51) The serverless function 51 determines whether or not the tenant status is “patch”. If the tenant status is “patch”, the process proceeds to step S53. If the tenant status is not “patch”, that is, if the tenant status is “normal”, the process proceeds to step S52.

[0121] (S52) The serverless function 51 waits for a certain period of time. Note that in step S52, the resident process may wait for a certain period of time and start the serverless function 51 after the certain period of time has elapsed. Then, the process proceeds to step S50.

[0122] (S53) The serverless function 51 determines whether or not the service can be upgraded. Details of the service upgrade determination will be described later. If the serverless function 51 determines that the service can be upgraded in the service upgrade determination, the process proceeds to step S54.

[0123] (S54) The serverless function 51 deletes the connection destination of the load balancer 90. Specifically, the serverless function 51 deletes the information of the operational machine 200 of the corresponding tenant from the connection destination of the load balancer 90.

[0124] (S55) The serverless function 51 executes each process of the failover. The details of each process of the failover will be described later. By each process of the failover, the management table 71c is updated, and preparations are made to add the virtual machine of the new operational system to the connection destination of the load balancer 90.

[0125] (S56) The serverless function 51 adds the new active system to the connection destinations of the load balancer 90. Specifically, the serverless function 51 adds information about the service upgraded machine 300a, which is the virtual machine of the new active system, to the connection destinations of the load balancer 90.

[0126] (S57) The serverless function 51 updates the tenant status in the management table for the corresponding tenant to "normal." Then, the process proceeds to step S50. In the procedure from the next step S50 onwards, service upgrade control is performed for the next tenant.

[0127] FIG. 18 is a flowchart showing an example of service upgrade availability determination. The determination as to whether or not the service can be upgraded corresponds to step S53. (S60) The serverless function 51 acquires the execution status of the job of the corresponding tenant. For example, the serverless function 51 may acquire the execution status of the job from the operational machine 200. For example, the operational machine 200 may acquire information on the job execution status stored in the shared storage 400 and provide it to the serverless function 51.

[0128] (S61) The serverless function 51 acquires the schedule of the job. For example, the serverless function 51 may acquire the schedule of the job from the operational machine 200. For example, the operational machine 200 may acquire information on a job definition stored in the shared storage 400, and provide the serverless function 51 with information on the schedule included in the information on the job definition.

[0129] (S62) The serverless function 51 determines whether or not a service upgrade is currently possible based on the job execution state and the job schedule acquired in steps S60 and S61. If a service upgrade is currently possible, the service upgrade possibility determination ends. If a service upgrade is currently impossible, the process proceeds to step S63. For example, the serverless function 51 may determine that a service upgrade is currently impossible when a job is currently being executed in the operational machine 200 or the time until the start of job execution is approaching within a predetermined time. On the other hand, the serverless function 51 may determine that a service upgrade is currently possible when a job is not currently being executed in the operational machine 200 and the time until the start of job execution is later than a predetermined time from the current time. The predetermined time used in the determination in step S62 is determined in advance according to the time required for failover.

[0130] (S63) The serverless function 51 waits for a certain period of time. Then, the process proceeds to step S60. In this way, the serverless function 51 determines the timing of execution of a failover in a service upgrade so that the job by the operational machine 200 is not interrupted or not executed according to schedule, thereby reducing the influence of the operational machine 200 on the job operation.

[0131] FIG. 19 is a flowchart showing an example of each step of failover processing. Each step of the failover process corresponds to step S55. (S70) The serverless function 51 acquires the machine IDs of the machine types “production_old” and “production” corresponding to the tenant ID of the tenant to be processed from the management table 71c.

[0132] (S71) The serverless function 51 stops the service of the machine with the machine ID of the machine type “production_old”, that is, the operational machine 200. (S72) The serverless function 51 unmounts the shared storage 400 of the machine with the machine ID of the machine type “production_old”, that is, the production machine 200.

[0133] (S73) The serverless function 51 starts the machine with the machine ID of the machine type "production", that is, the service-upgraded machine 300a. (S74) The serverless function 51 mounts the shared storage 400 on the machine with the machine ID of the machine type "production", that is, the service-upgraded machine 300a.

[0134] (S75) The serverless function 51 starts the service of the machine with the machine ID of the machine type "production", that is, the service-upgraded machine 300a.

[0135] (S76) The serverless function 51 stops the machine with the machine ID of the machine type “production_old”, that is, the production machine 200. (S77) The serverless function 51 deletes the machines having the machine IDs of the machine types “production_old” and “standby_old”, that is, the production machine 200 and the standby machine 300.

[0136] (S78) The serverless function 51 deletes the information on the machines having the machine IDs of the machine types "production_old" and "standby_old", that is, the information on the production machine 200 and the standby machine 300, from the management table 71c. Then, each failover process ends.

[0137] In this way, the information on the old operational virtual machine and the old standby virtual machine is deleted from the management table 71c, and then in step S57, the tenant status of the relevant tenant is changed from "patch" to "normal." The service upgraded machine 300a can directly read the tenant specific data updated by the operational machine 200 from the shared storage 400. In addition, tenant common data is stored in the local storage of the service upgraded machine 300a. Therefore, the service upgraded machine 300a can take over and execute a service job from the operational machine 200 based on the tenant common data and the tenant specific data.

[0138] In this way, the serverless function 51 can efficiently perform switching from the operational machine 200 to the service-upgraded machine 300a by sharing unique data between the two machines via the shared storage 400. For example, the amount of data read from the shared storage 400 by the service-upgraded machine 300a at the time of switching is reduced compared to writing both tenant common data and tenant unique data to the shared storage 400. As a result, the time required for the service-upgraded machine 300a to resume a job related to a service instead of the operational machine 200 is reduced, and it becomes possible to quickly switch from the operational machine 200 to the service-upgraded machine 300a.

[0139] Next, a comparative example to the second and third embodiments will be described. FIG. 20 is a diagram showing a comparative example. The comparative example is a case where data is synchronized among the virtual machines in AZ2c1 and 2c2 using external storage 5b provided by cloud system 2, instead of shared storage 400 that can be mounted on each virtual machine in AZ2c1 and 2c2. External storage 5b is provided in a relatively higher-level network than cloud system 2, and cannot be mounted on each virtual machine in AZ2c1 and 2c2. External storage 5b is accessed by management node 5a. Management node 5a is provided in a network at the same hierarchical level as monitoring node 40, serverless function execution node 50, and machine image management node 60, for example.

[0140] In the comparative example, AZ2c1 has a monitoring unit 210. The monitoring unit 210 monitors the operational machine 200 and cooperates with the management node 5a. The monitoring unit 210 may be realized by the operational machine 200, or may be realized by a virtual machine in AZ2c1 different from the operational machine 200. Similarly, AZ2c2 has a monitoring unit 310. The monitoring unit 310 monitors the standby machine 300 and cooperates with the management node 5a. The monitoring unit 310 may be realized by the standby machine 300, or may be realized by a virtual machine in AZ2c2 different from the standby machine 300. For example, when the monitoring unit 210 detects an abnormality in the operational machine 200, it instructs the management node 5a to switch from the operational machine 200 to the standby machine 300.

[0141] In the configuration of the comparative example, the operational machine 200 writes both tenant common data (programs) and tenant specific data (job definitions and job states) to the local storage 201. When the tenant common data or tenant specific data in the storage 201 is updated, the updated data is written to the external storage 5b for synchronization with the standby machine 300.

[0142] When performing synchronization, the management node 5a starts up the standby machine 300. The started standby machine 300 obtains the latest data from the external storage 5b and reflects it in the local storage 301.

[0143] However, if the standby machine 300 is executed every time a synchronization process is performed in this way, computational resources are consumed, and there is a problem in that costs for the synchronization process are incurred in addition to the cost for the job that the tenant originally wants to execute.

[0144] That is, in the method of the comparative example, although availability can be maintained, the standby machine 300 must be started every time there is an update in the external storage 5b, and therefore the start-up time of the standby machine 300 increases, resulting in an increase in operating costs.

[0145] Therefore, as exemplified in the second embodiment, the serverless function execution node 50 uses the shared storage 25 to link data between the operational machine 200 and the standby machine 300. The standby machine 300 can read the unique data updated by the operational machine 200 from the shared storage 400. This eliminates the need to perform data synchronization processing between the operational machine 200 and the standby machine 300 periodically or each time data is updated, and it is sufficient to start the standby machine 300 when switching from the operational machine 200 to the standby machine 300.

[0146] However, when shared storage 400 is shared by both operational machine 200 and standby machine 300 by making it mountable from both machines, shared storage 400 is shared by operational machine 200 and standby machine 300 via a network. For this reason, if a relatively large amount of data is read from shared storage 400 to standby machine 300 at the time of switching, it may take a long time to read the data. This may cause a delay in completing the switching and affect availability.

[0147] Therefore, the serverless function execution node 50 arranges the tenant common data in the storage 201 of the operational machine 200 and the storage 301 of the standby machine 300, respectively, and writes the tenant specific data in the shared storage 400. This reduces the amount of data read from the shared storage 400 by the standby machine 300 at the time of switching, compared to writing both the tenant common data and the tenant specific data in the shared storage 400. As a result, for example, the time required from the detection of an abnormality in the operational machine 200 until the standby machine 300 resumes a job related to the service is reduced, and it becomes possible to quickly switch from the operational machine 200 to the standby machine 300.

[0148] Thus, compared to a method of starting the standby machine 300 and performing the synchronization process every time the synchronization process is performed, the serverless function execution node 50 can reduce unnecessary costs related to the execution of the standby machine 300 by omitting the synchronization process, and can speed up failover. In other words, the serverless function execution node 50 can efficiently improve the availability of the service provided by the operational machine 200.

[0149] Furthermore, since the tenant common data is not stored in the shared storage 400, there is also the advantage that the storage resources allocated to the shared storage 400 can be reduced compared to storing both the tenant common data and the tenant specific data in the shared storage 400.

[0150] The switching from the operational machine 200 to the service-upgraded machine 300a illustrated in the third embodiment also has the same advantages as the switching from the operational machine 200 to the standby machine 300. That is, also in the third embodiment, the serverless function execution node 50 can efficiently improve the availability of the service provided by the operational machine 200.

[0151] Furthermore, because data writing occurs frequently during job execution, in the method of the comparative example, the frequency of updating storage 301 of standby machine 300 increases, and standby machine 300 continues to be in an active state. Therefore, since no spare time can be secured for service upgrades, job operations must be stopped. In addition, stopping job operations also poses the problem of time-consuming coordination with tenants for service upgrades.

[0152] On the other hand, as exemplified in the third embodiment, the serverless function execution node 50 does not need to stop the job operation by the operational machine 200 for the service upgrade. In other words, the serverless function execution node 50 can smoothly switch to the service-upgraded machine 300a while suppressing the influence on the job operation.

[0153] As described above, the processor 101 used in the serverless function execution node 50 executes the following processes. The following processes may be realized by the processor 101 executing a program corresponding to the serverless function 51.

[0154] The processor 101 allocates common data used in common for the execution of jobs corresponding to each of the multiple users in each of a first storage unit of the active node used for a job corresponding to a first user among the multiple users and a second storage unit of the standby node. The processor 101 writes unique data of a job corresponding to the first user, which is updated according to the execution of the job by the active node or by the first user, from the active node to a shared storage. For example, the processor 101 mounts a shared storage on the active node and specifies the shared storage as the write destination of the unique data, thereby causing the active node to write the unique data to the shared storage. At the same time, the processor 101 stops the standby node while the active node is operating. When the processor 101 switches the execution subject of a job from the active node to the standby node, it starts the standby node and performs a setting that enables the standby node to read the unique data from the shared storage.

[0155] This allows the processor 101 to efficiently improve the availability of services. For example, it is not necessary to start the standby node while the active node is operating for synchronization processing, and the execution time of the standby node can be reduced. This reduces the cost associated with the use of the standby node. Furthermore, the standby node only needs to read unique data from the shared storage at the time of switching, and does not need to read common data from the shared storage. This reduces the time required to read data at the time of switching, and speeds up switching. The active machine 200 is an example of an active node. The standby machine 300 is an example of a standby node. The storage 201 is an example of a first storage unit. The storage 301 is an example of a second storage unit. The shared storage corresponding to the active machine 200 and the standby machine 300 is the shared storage 400. Furthermore, the user may be referred to as a tenant. Furthermore, the processor 101 communicates with the active node and the standby node via the communication interface 107.

[0156] For example, the shared storage can be mounted on the active node and the standby node, and the processor 101 mounts the shared storage on the standby node in a setting that allows the standby node to read the unique data.

[0157] This allows the processor 101 to easily realize data sharing between the active node and the standby node. For example, the processor 101 can simply input a mount command to the OS of the standby node via the communication interface 107 and execute the command, eliminating the need to install special software for data sharing into the active node or the standby node.

[0158] In a setting that allows the standby node to read unique data, the processor 101 unmounts the shared storage from the active node before mounting the shared storage on the standby node.

[0159] This allows the processor 101 to prevent the unique data held in the shared storage from being updated by both the active node and the standby node, thereby maintaining the consistency of the unique data.

[0160] Furthermore, before unmounting the shared storage from the operational node, the processor 101 deletes the information about the operational node from the connection destination information held by the relay node. Here, the relay node is a node that relays a request sent by an access source node such as the terminal device 4 to the operational node or the standby node. The load balancer 90 is an example of a relay node. Then, after mounting the shared storage on the standby node, the processor 101 adds the information about the standby node to the connection destination information held by the relay node.

[0161] This allows the processor 101 to set the request of the access source node to be distributed to the standby node instead of the active node. Also, the processor 101 can prevent the request from being transferred to the active node or the standby node during the switchover.

[0162] Moreover, the common data is, for example, a program such as job management software that runs a job, that is, a predetermined program. The processor 101 may prepare a new node with an upgraded predetermined program on the cloud system 2 and stop the new node. When switching the job execution subject from the operational node to the new node, the processor 101 may start the new node and perform settings that enable the new node to read unique data from the shared storage. For example, in settings that enable the new node to read unique data, the processor 101 mounts the shared storage on the new node. The above-mentioned service-upgraded machine 300a is an example of a new node.

[0163] This allows the processor 101 to efficiently improve the availability of services. For example, since it is only necessary to start the new node at the time of switching, it is not necessary to start the new node while the operational node is running for synchronization processing, and the execution time of the new node can be reduced. This reduces the cost associated with the use of the new node. Furthermore, the new node only needs to read the tenant-specific data from the shared storage at the time of switching, and does not need to read the common data from the shared storage. This reduces the time required to read data at the time of switching, and speeds up switching. The new node is prepared by creating a new node on the cloud system 2 based on the machine image data corresponding to the new node.

[0164] When the processor 101 prepares a new node, the processor 101 may record in a management table used for managing the nodes that the new node has been prepared for the operational node. For example, the tenant status "patch" in the management table 71a indicates that the new node has been prepared. When the processor 101 detects that the new node has been prepared based on the management table, the processor 101 determines the timing of switching the job execution subject from the operational node to the new node according to the job execution status of the operational node. For example, the processor 101 may obtain the job execution schedule from the job definition information of the operational node, identify an idle time during which the job is not executed, and determine the time included in the idle time as the timing of switching. When the processor 101 switches the job execution subject from the operational node to the new node at the determined timing, the processor 101 deletes the information of the operational node in the management table and sets the new node as the new operational node.

[0165] This allows the processor 101 to appropriately manage the virtual machine currently in operation using the management table while minimizing the impact on job execution that accompanies switching from the active node to the new node.

[0166] Also, the operational node may operate in a first availability zone (e.g., AZ2c1). The standby node may operate in a second availability zone (e.g., AZ2c2). In this case, the processor 101 may prepare a new node in one of the first availability zone and the second availability zone, and prepare a standby node corresponding to the new node in the other availability zone.

[0167] In this way, the processor 101 can improve fault tolerance against failures in the availability zones and improve the availability of services by arranging the operational and standby machines in different availability zones. The first availability zone may be referred to as a set of one or more first data centers to which the operational nodes are assigned, or as a zone to which the one or more first data centers belong. The second availability zone may be referred to as a set of one or more second data centers to which the standby nodes are assigned, or as a zone to which the one or more second data centers belong.

[0168] Moreover, the common data is, for example, a predetermined program that runs a job, and the specific data is, for example, information used by the predetermined program that indicates the definition of the job and the status of the job.

[0169] In this way, the processor 101 is particularly effective in improving the availability of services provided by an active node or a standby node that performs job management using a predetermined program. The processor 101 can efficiently improve the availability of the job management service provided by the active node.

[0170] The information processing of the first embodiment can be realized by causing the processing unit 12 to execute a program. The information processing of the second embodiment can be realized by causing the processor 101 to execute a program. The program can be recorded in a computer-readable recording medium 113.

[0171] For example, the program can be distributed by distributing recording medium 113 on which the program is recorded. Alternatively, the program may be stored in another computer and distributed via a network. The computer may store (install) the program recorded in recording medium 113 or a program received from another computer in a storage device such as RAM 102 or HDD 103, and read and execute the program from the storage device. [Explanation of symbols]

[0172] 10. Information processing device 11 Storage section 12 Processing section 13. Communications Department 20 Information Processing Systems 21 Operational node 22 Standby node 23 1st memory section 24 2nd memory section 25 Shared Storage 26 Relay Nodes 30 Access source node

Claims

1. On the computer, placing common data used in common for execution of jobs corresponding to each of the plurality of users in a first storage unit accessed by an operational node used for a job corresponding to a first user among the plurality of users and in a second storage unit accessed by a standby node corresponding to the operational node; writing unique data of the job corresponding to the first user, which is updated in response to execution of the job by the operational node or by the first user, into a shared storage shared by the operational node and the standby node, and stopping the standby node while the operational node is in operation; when switching an execution subject of the job from the active node to the standby node, starting up the standby node and performing settings to enable the standby node to read the unique data from the shared storage; A program that executes a process.

2. the shared storage can be mounted on the operational node and the standby node; In the setting, the shared storage is mounted on the standby node. The program according to claim 1, which causes the computer to execute a process.

3. In the setting, before mounting the shared storage on the standby node, the shared storage is unmounted from the operational node. The program according to claim 2, which causes the computer to execute a process.

4. Before unmounting the shared storage from the operational node, information about the operational node is deleted from connection destination information held by a relay node that relays a request transmitted by an access source node to the operational node; After mounting the shared storage on the standby node, information about the standby node is added to the connection destination information.

4. The program according to claim 3, which causes the computer to execute a process.

5. the common data is a predetermined program for executing the job, Prepare a new node with the upgraded program and put it into a stopped state; When switching an execution subject of the job from the operational node to the new node, the new node is started and a setting is made to enable the new node to read the unique data from the shared storage. The program according to claim 1, which causes the computer to execute a process.

6. When the new node is prepared, a management table used for managing the nodes is recorded with respect to the operational node, indicating that the new node has been prepared; when it is detected based on the management table that the new node has been prepared, determining a timing for switching the execution subject of the job from the operational node to the new node according to an execution status of the job of the operational node; When switching the execution subject of the job from the active node to the new node at the determined timing, information on the active node is deleted from the management table, and the new node is set as a new active node.

6. The program according to claim 5, which causes the computer to execute a process.

7. the operational node operates in a first availability zone; the standby node operates in a second availability zone; preparing the new node in one of the first availability zone and the second availability zone, and preparing a standby node corresponding to the new node in the other availability zone; 6. The program according to claim 5, which causes the computer to execute a process.

8. the common data is a predetermined program for executing the job, The unique data is information used by the predetermined program that indicates a definition of the job and a status of the job. The program according to claim 1.

9. The computer placing common data used in common for execution of jobs corresponding to each of the plurality of users in a first storage unit accessed by an operational node used for a job corresponding to a first user among the plurality of users and in a second storage unit accessed by a standby node corresponding to the operational node; writing unique data of the job corresponding to the first user, which is updated in response to execution of the job by the operational node or by the first user, into a shared storage shared by the operational node and the standby node, and stopping the standby node while the operational node is in operation; when switching an execution subject of the job from the active node to the standby node, starting up the standby node and performing settings to enable the standby node to read the unique data from the shared storage; Information processing methods.

10. a communication unit used for communication with an active node used for a job corresponding to a first user among a plurality of users and a standby node corresponding to the active node; a processing unit that places common data commonly used in the execution of the jobs corresponding to each of the multiple users in each of a first storage unit accessed by the operational node and a second storage unit accessed by the standby node, and writes unique data of the job corresponding to the first user, which is updated in response to the execution of the job by the operational node or by the first user, into a shared storage shared by the operational node and the standby node, stops the standby node while the operational node is in operation, and starts up the standby node when switching the execution entity of the job from the operational node to the standby node, and performs settings that enable the standby node to read the unique data from the shared storage; An information processing device having the above configuration.

Citation Information

Patent Citations

  • Disaster recovery system, master storage device, remote storage device, normal-time transfer device, disaster-time transfer device, method, and program

    JP2017174107A

  • Service continuing system and service continuing method

    JP2019197352A

  • Remote copy system

    JP2021033782A

  • Cluster system, information processing device, synchronization method for cluster system, and storage medium for storing program

    WO2017047065A1

Cited By

  • Data synchronization device, data synchronization system, data synchronization method, and program

    JP2026151236A