Program, information processing method, and information processing device
The shared storage system in cloud systems allows direct data access for standby nodes, reducing synchronization needs and enhancing availability by storing common data locally and unique user data in shared storage, addressing the inefficiencies in current cloud system synchronization methods.
Patent Information
- Application Number
- PCT/JP2023/046854
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-13
- Filing Date
- 2023-12-27
- Publication Date
- 2024-09-19
AI Technical Summary
Current cloud systems incur extra computational resource consumption and costs due to periodic synchronization processing between active and standby nodes, which affects availability and efficiency during failover scenarios.
Implementing a shared storage system where common data is stored locally on both active and standby nodes, with unique user data written to a shared storage accessible by both, allowing the standby node to read updated data directly from this shared storage during failover, thus eliminating the need for periodic synchronization and reducing data read time.
This approach reduces the time required for switching from an active to a standby node, minimizes computational resource usage, and lowers operational costs by eliminating unnecessary synchronization processes, thereby enhancing service availability and reducing storage resource allocation.
Smart Images

Figure JP2023046854_19092024_PF_FP_ABST
Abstract
Description
Program, information processing method and information processing device
[0001] The present invention relates to a program, an information processing method, and an information processing device.
[0002] In recent years, instead of users owning their own information processing environment to run application programs, they 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 rent computing resources such as physical machines and virtual machines to users, and run 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 have been proposals for systems that store data in multiplexed form 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, stores it in an external storage unit, and sends a startup instruction for the standby node to a control device. In the proposed synchronization method, the control device starts the standby node when it receives the startup instruction. The standby node retrieves the synchronization data from the external storage unit and reflects the updated contents indicated by the synchronization data in the storage unit of the standby node.
[0007] JP 2021-33782 A JP 2017-174107 A JP 2019-197352 A International Publication No. 2017 / 047065
[0008] As proposed above, a standby node may be started each time synchronization data is generated on the active node, and the synchronization data may be reflected on the standby node. However, running the standby node each time such synchronization processing is performed consumes computing resources. As a result, additional costs due to the synchronization processing are incurred in addition to the job that the user originally wanted to execute.
[0009] In one aspect, the present invention aims to efficiently improve availability.
[0010] In one aspect, a program is provided. The program causes a computer to perform the following process. The computer allocates common data used in common for the execution of jobs corresponding to each of a plurality of users in each of 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 job-specific data corresponding to the first user, which is updated in response to job execution by the active node or by the first user, to 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 job execution entity from the active node to the standby node, the computer starts the standby node and performs settings that enable the standby node to read the unique data from the shared storage.
[0011] In one aspect, an information processing method is provided. In another aspect, an information processing device is provided having a communication unit and a processing unit.
[0012] In one aspect, availability can be efficiently improved.
[0013] 1 is a diagram illustrating an information processing apparatus according to a first embodiment; FIG. 2 is a diagram illustrating an example of a cloud system according to a second embodiment; FIG. 3 is a diagram illustrating an example of hardware of a physical machine; FIG. 4 is a diagram illustrating an example of network connection relationships in a cloud system; FIG. 5 is a diagram illustrating an example of functions of a cloud system; FIG. 6 is a diagram illustrating an example of a management table; FIG. 7 is a diagram illustrating an example of mounting shared storage by operational / standby machines; A flowchart illustrating an example of switching between operational / standby machines; FIG. 8 is a diagram illustrating an example of machine creation according to a third embodiment; FIG. 9 is a diagram illustrating an example of a management table; FIG. 10 is a diagram illustrating an example of editing a management table using a serverless function; FIG. 11 is a diagram illustrating an example of control of a load balancer using a serverless function; A flowchart illustrating an example of preparing a service-upgraded machine; A flowchart illustrating an example of creating a service-upgraded machine; A flowchart illustrating an example of updating a machine type in a management table; A diagram illustrating a specific example of updating a machine type in a management table; A flowchart illustrating an example of service upgrade control; A flowchart illustrating an example of determining whether a service upgrade is possible; A flowchart illustrating examples of each process of failover; FIG. 12 is a diagram illustrating a comparative example;
[0014] The present embodiment will be described below with reference to the drawings. [First Embodiment] The first embodiment will be described.
[0015] FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment. The information processing apparatus 10 is connected to an information processing system 20. The information processing apparatus 10 may be included in the information processing system 20. The information processing system 20 makes available to users multiple nodes realized by multiple physical machines or multiple virtual machines. The information processing system 20 is used by multiple users. The information processing apparatus 10 may also be referred to as a computer. The information processing system 20 may also be referred to as a cloud system. The users may also 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 an access source node 30 to use a node included in the information processing system 20. 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 virtual machine included in the information processing system 20.
[0017] The information processing device 10 controls multiple 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 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 also 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 multiple users. The standby node 22 is a standby node that corresponds to the active node 21. The active node 21 and the standby node 22 may be provided at geographically separated bases such as data centers, taking into account the impact of disasters, etc.
[0020] The first storage unit 23 is a local storage of the active node 21 that 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 that 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 on 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 access from the access source node 30 to the active node 21 or the standby node 22. When a job is run on 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 on 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 stores common data, which is used in common for the execution of 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 software's functions to define a process related to a service they wish to use as a job and have the node they use execute that job.
[0024] When the active node 21 and the standby node 22 are each realized by a virtual machine, the processing unit 12 uses a virtual machine image including the common data to create the active node 21 and the standby node 22. 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 active node 21 to write unique data, which is updated by the first user or in response to execution of a job corresponding to the first user by the active node 21, to the shared storage 25. The unique data is user-specific data used for job execution. The unique data of the first user includes, for example, job definition information indicating the content of the job defined by the first user and / or 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 content of the job to be executed. The job status information is updated in response to the execution status of the job. Furthermore, the processing unit 12 stops the standby node 22 while the active node 21 is operating. Specifically, the processing unit 12 mounts the shared storage 25 on the active node 21, thereby enabling the active node 21 to directly write unique data to the shared storage 25. Furthermore, when the standby node 22 is realized as 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 entity from the active 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 prevents the operation of a job from continuing on the operation node 21, such as a software error in the operation node 21, the processing unit 12 switches the job execution entity from the operation node 21 to the standby node 22. At this time, the processing unit 12 unmounts the shared storage 25 from the operation node 21 and mounts the shared storage 25 on the started standby node 22. As a result, for example, a predetermined storage area in the shared storage 25, to which unique data has been written, is mounted to a mount point on the standby node 22. The standby node 22 can then read the unique data written to the shared storage 25 via the mount point. The standby node 22 takes over and executes the job from the operation 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 configures 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 about 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, for example, 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 about 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 can continue to provide services 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 stored 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 in response to job execution 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 entity is switched from the active node 21 to the standby node 22, the standby node 22 is started up. Then, settings are 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, the shared storage 25 is used to link data between the active node 21 and the standby node 22. 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 periodically synchronize data between the active node 21 and the standby node 22 or each time data is updated; instead, the standby node 22 can simply be started 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 a network. For this reason, if a relatively large amount of data is read from the shared storage 25 to the standby node 22 during 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 stores 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 to the shared storage 25. This reduces the amount of data read by the standby node 22 from the shared storage 25 during switching, compared to writing both the common data and the unique data to 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, enabling quick switching 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 a synchronization process is performed. Therefore, the information processing device 10 can ensure availability while reducing the cost associated with running the standby node 22.
[0034] Furthermore, because 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 common data and specific data are stored in the shared storage 25. There is also an advantage that even if the active node 21 stops due to an abnormality, the standby node 22 can obtain the latest specific data from the shared storage 25 and continue job operations.
[0035] Second Embodiment Next, a second embodiment will be described. Fig. 2 is a diagram illustrating 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 includes 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 also includes a large amount of hardware such as network devices and storage devices. The cloud system 2 rents out resources such as the physical machines 100, 100a, ..., network devices, and storage devices to users, making them available for use by the users.
[0037] The cloud system 2 charges the user a fee according to the performance, quantity, and usage time of the resources used by the user. The fee is an example of the cost to the user associated with using the cloud system 2. However, the cost may be other indicators 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] 3 is a diagram illustrating an example of hardware of a physical machine. The physical machine 100 includes 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 included in the physical machine 100 are connected to a bus inside the physical machine 100. The processor 101 corresponds to the processing unit 12 in the first embodiment. The RAM 102 or the HDD 103 corresponds to the storage unit 11 in the first embodiment. The communication interface 107 corresponds to the communication unit 13 in 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 portion of the programs and data stored in the HDD 103 into the RAM 102 and executes the programs. The processor 101 may include multiple processor cores. The physical machine 100 may also 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 be provided with a type of memory other than RAM, or may be provided with multiple memories.
[0042] The HDD 103 is a non-volatile storage device that stores software programs such as an operating system (OS), middleware, and application software, as well as data. Note that the physical machine 100 may also include other types of storage devices, such as flash memory or a solid-state drive (SSD), or may 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. The display 111 may be any type of display, such as a CRT (Cathode Ray Tube) display, a liquid crystal display (LCD), a plasma display, or an organic electroluminescence (OEL) display.
[0044] The input interface 105 receives input signals from input devices 112 connected to the physical machine 100 and outputs them to the processor 101. The input devices 112 may be pointing devices such as a mouse, a touch panel, a touch pad, or a trackball, a keyboard, a remote controller, or a button switch. Multiple 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. The recording medium 113 may be, for example, a magnetic disk, an optical disk, a magneto-optical disk (MO: Magneto-Optical disk), or a semiconductor memory. 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 programs and data read from the recording medium 113 to another recording medium such as the RAM 102 or the HDD 103. The read programs are executed by the processor 101, for example. The recording medium 113 may be a portable recording medium, and may be used to distribute programs and data. The recording medium 113 and the HDD 103 may also 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 may be 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 implemented by the same hardware as the physical machine 100. Fig. 4 is a diagram showing an example of network connection relationships 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. AZs 2c1 and 2c2 are each a collection of one or more data centers located within region 2a. Although not shown in the figure, AZs 2c1 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 a serverless function includes control such as starting and stopping a tenant's virtual machine and changing the settings of the load balancer 90. A different serverless function may be prepared in advance for each control content, and a serverless function may be executed according to the control content to be executed.
[0054] The machine image management node 60 manages machine images of virtual machines used by tenants. A machine image is data used to start a virtual machine. The monitoring node 40, the serverless function execution node 50, and the machine image management node 60 are placed, for example, in a network at the same level as region 2a in the cloud system 2. The network of region 2a is connected to the network of VPC 2b. The monitoring node 40, the serverless function execution node 50, and the machine image management node 60 can communicate with nodes in VPC 2b via the network of region 2a.
[0055] The management DB 70 stores data used in processing by the monitoring node 40 and the serverless function execution node 50. The management DB 70 is placed in the network of region 2a. The Internet gateway 80 is connected to the Internet 3 and is a node that relays communication between the Internet 3 and nodes in VPC 2b. The Internet gateway 80 is provided in region 2a.
[0056] Load balancer 90 is a node that relays communications between Internet gateway 80 and virtual machines in AZs 2c1 and 2c2. Load balancer 90 receives tenant requests sent by terminal devices 4 via Internet gateway 80 and controls the allocation of the requests to virtual machines in AZs 2c1 and 2c2. Load balancer 90 is provided in VPC 2b.
[0057] AZ 2c1 includes an operational machine 200 and storage 201. The operational machine 200 is an operational virtual machine used by a tenant corresponding to VPC 2b, and executes jobs related to services used by the tenant. The storage 201 is local storage of the operational machine 200.
[0058] AZ2c2 has a standby machine 300 and storage 301. The standby machine 300 is a standby virtual machine corresponding to the production machine 200. The standby machine 300 is used by the tenant corresponding to VPC2b. The standby machine 300 is stopped when the production machine 200 is running. When the standby machine 300 is stopped, the computing resources of the standby machine 300 are not used, and no charges are incurred to the tenant. The standby machine 300 is started up when an abnormality occurs in the production machine 200, and takes over and executes the jobs of the production machine 200. The storage 301 is local storage for the standby machine 300. Here, the control of switching operation of the production machine 200 to the standby machine 300 is called failover. As will be described later, failover is also used during machine upgrades.
[0059] VPC 2b is provided with shared storage 400 that can be accessed from operational machine 200 and standby machine 300 via a network within VPC 2b. Shared storage 400 can be mounted from operational machine 200 and standby machine 300. Shared storage 400 stores data to be handed over to standby machine 300 when switching from operational machine 200 to standby machine 300.
[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 a single physical machine or by different physical machines. The Internet gateway 80 and the load balancer 90 are realized by communication devices included in the cloud system 2, the physical machines, or virtual machines on the physical machines.
[0061] The operational machine 200 and the standby machine 300 are virtual machines executed using the 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 a storage device having physical machines, HDDs, SSDs, etc. included in the region 2a.
[0062] The shared storage 400 is realized by a storage device that can be accessed by the operational machine 200 and the standby machine 300 via the network of VPC 2b. The storage device includes HDDs, SSDs, etc. For example, a portion of the storage area of the storage device is allocated as the shared storage 400 to the tenant corresponding to VPC 2b.
[0063] 5 is a diagram illustrating an example of the 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 entity (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 production machine 200, starts the standby machine 300, mounts the shared storage on the standby machine 300, and changes the destination to which requests are allocated by the load balancer 90. Note that these processes of the serverless function 51 may be shared and performed by multiple serverless functions.
[0066] Here, storage 201 and storage 301 store tenant common data related to jobs executed on production machine 200 and standby machine 300. The tenant common data is data commonly used for the execution of jobs of multiple tenants, and is a software program that serves as the infrastructure for executing the jobs of each tenant. Each tenant can define processing related to a service they wish to use as a job using the software functions, and cause the node they use to execute the job.
[0067] The shared storage 400 also stores tenant-specific data that is updated in response to job execution by the operational machine 200, etc. The tenant-specific data is information indicating the state (job state) and definition (job definition) of a job. The job definition may include the processing content of the job and the execution schedule of the job. The job definition is updated by the tenant in response to the content of the job that the tenant wants to execute. The job state may include the execution results of the job so far. The job state is updated in response to job execution by the operational machine 200.
[0068] By not placing tenant-common data in the shared storage 400, it is possible to save on the storage capacity used for the shared storage 400. The shared storage 400 may include standard storage, which has a relatively low usage fee, and high-speed storage, which has a higher usage fee than the standard storage. In this 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 costs of the shared storage 400 for 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 status and machine images of the operational and standby machines for each tenant, including the operational machine 200 and the standby machine 300.
[0070] 6 is a diagram illustrating an example of a management table. The management table 71 includes fields for tenant ID (identifier), tenant status, machine ID, machine type, and image ID. A tenant ID is registered in the tenant ID field. The tenant ID is identification information for a tenant.
[0071] The tenant status is registered in the tenant status field. 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 state in which normal operation is being performed. The tenant status "patch" indicates a state in which a service-upgraded machine, which will be described later, has been prepared.
[0072] The machine ID is registered in the machine ID field. The machine ID 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, as follows: 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 a standby machine immediately before switching due to failover, i.e., the old standby machine. The machine type "production_old" indicates an operational machine immediately before switching due to failover, i.e., the old operational machine.
[0073] The image ID is identification information of the machine image that is the source of creation of the virtual machine corresponding to the machine ID. The image ID 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". The management table 71 also has a record of the machine type "production" and the image ID "imageXXX1" for the machine ID "1". This record is data indicating the production machine 200. The management table 71 also has a record of the machine ID "2", the machine type "standby", and the image ID "imageXXX1" for the tenant ID "1". This record is data indicating the standby machine 300.
[0074] Records of virtual machines used by other tenants may also be registered in the management table 71. Fig. 7 is a diagram showing an example of mounting a shared storage by operational and standby machines.
[0075] When production machine 200 is running, standby machine 300 is stopped. In this case, shared storage 400 is mounted on production machine 200. When standby machine 300 is stopped, shared storage 400 is not mounted on standby machine 300, that is, it is in an unmounted state with respect to standby machine 300. Production machine 200 writes the job definition and job status to shared storage 400 as tenant-specific data. In response to input of a change to the job definition by the tenant, production machine 200 updates the job definition included in the tenant-specific data in shared storage 400. In addition, production machine 200 updates the job status included in the tenant-specific data in shared storage 400 in response to job execution.
[0076] When switching from production machine 200 to standby machine 300 is performed, shared storage 400 is unmounted from production machine 200. Then, standby machine 300 is started, and shared storage 400 is mounted on standby machine 300. This enables standby machine 300 to read the latest tenant-specific data written by production machine 200 from shared storage 400. Standby machine 300 takes over and executes the job from production machine 200 based on the tenant common data stored in storage 301 and the tenant-specific data stored in 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 other tenants.
[0078] 8 is a flowchart showing an example of switching between the active and standby machines. (S10) The monitoring unit 41 detects an abnormality in a service related to job execution in the active machine 200. The monitoring unit 41 instructs the serverless function execution node 50 to execute a 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 production machine 200 from the forwarding destination 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", i.e., the production machine 200. (S14) The serverless function 51 unmounts the shared storage 400 of the machine with the machine ID of the machine type "production", i.e., the production machine 200.
[0082] (S15) The serverless function 51 starts up the machine with the machine ID of the machine type "standby", i.e., 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", i.e., the standby machine 300.
[0083] (S17) The serverless function 51 starts the relevant service of the machine with the machine ID of the machine type "standby", 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, tenant requests are distributed to the standby machine 300 by the load balancer 90.
[0084] (S19) The serverless function 51 updates the management table 71. Specifically, the serverless function 51 changes the machine type of the standby machine 300 to "production". The serverless function 51 also stops the production machine 200 and changes the machine type of the production machine 200 to "standby". Then, the switch from the production machine 200 to the 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 simply starts 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 a network. Therefore, if the standby machine 300 is made to read a relatively large amount of data from the shared storage 400 during 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 places tenant common data in the storage 201 of the production machine 200 and the storage 301 of the standby machine 300, and writes tenant-specific data to the shared storage 400. This reduces the amount of data read by the standby machine 300 from the shared storage 400 at the time of switching, compared to writing both tenant common data and tenant-specific data to the shared storage 400. As a result, the time required from the detection of an abnormality in the production machine 200 to the standby machine 300 resuming a job related to the service is reduced, and quick switching from the production machine 200 to the standby machine 300 can be performed.
[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 in that the storage resources allocated to the shared storage 400 can be reduced compared to when both the tenant common data and the tenant specific data are stored in the shared storage 400. There is also an advantage in 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 a description of common features 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 Figures 2 to 5, and therefore a description thereof will be omitted.
[0092] 9 is a diagram illustrating an example of machine creation according to the third embodiment. AZ2c1 includes a service-upgraded machine 200a in addition to an operational machine 200 and storage 201. The service-upgraded machine 200a is a virtual machine on which an upgraded program for a 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 on which the upgraded program is installed. Although not shown in the figure, the service-upgraded machine 200a also includes 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 a standby machine 300 and storage 301. The service-upgraded machine 300a is a virtual machine on which an upgraded program for a service provided by the operational machine 200 is installed. The service-upgraded machine 300a is also created using a machine image 61. Although not shown in the figure, the service-upgraded machine 300a also has local storage, in which the upgraded program is stored 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 by multiple tenants. This eliminates the need to create a machine image 61 for each tenant, thereby improving the efficiency of deploying service-upgraded virtual machines.
[0096] The service-upgraded machines 200a and 300a are created from the machine image 61, started up, and then stopped immediately thereafter, and are maintained in a state in which they can be started. The serverless function 51 manages the service-upgraded machines 200a and 300a as follows.
[0097] 10 is a diagram showing an example of a management table. A management table 71a illustrates an example in which information about 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 the items 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 "patch" indicates that the service-upgraded machines 200a and 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] The management table 71a also shows an example in which data related to a virtual machine of a tenant with tenant ID "2" is registered. Fig. 11 is a diagram illustrating an example of editing a 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 creation of the service-upgraded machines 200a and 300a is performed while the operational machine 200 is in an activated state and is running. After creation, the service-upgraded machines 200a and 300a are both stopped. In this way, the serverless function 51 prepares the service-upgraded machines 200a and 300a in AZs 2c1 and 2c2, respectively.
[0102] 12 is a diagram illustrating 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 shuts down the operational machine 200. Next, the serverless function 51 starts 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 configures the load balancer 90 to switch the forwarding destination of tenant requests from the production machine 200 to the service-upgraded machine 300a. For example, the serverless function 51 rewrites the host name or IP address of the production machine 200 in the production machine connection destination information held by the load balancer 90 to the host name or IP address of the service-upgraded machine 300a. Furthermore, if 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 way, the serverless function 51 switches from operation on the production machine 200 to operation on the service-upgraded machine 300a. Next, the processing procedure for switching from the production machine 200 to the service-upgraded machine 300a will be described. The procedure for the tenant with tenant ID "1" will be described below, but the procedure is similar for other tenants.
[0105] 13 is a flowchart showing an example of preparing a service-upgraded machine. When an instruction to create a virtual machine from a machine image 61 is input to the monitoring unit 41, the monitoring unit 41 starts and executes the serverless function 51, and the instruction to create the 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 production machine 200 is running a job.
[0107] (S21) The serverless function 51 updates the machine type in the management table. 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 tenant ID "1" from "normal" to "patch". Then, preparation of the service-upgraded machine is completed.
[0108] The management table 71a in FIG. 10 illustrates an example of a management table at a stage immediately before the machine type update in step S22, when the tenant status update in step S22 is performed before the machine type update in step S21.
[0109] 14 is a flowchart showing an example of creating a service-upgraded machine. Creating a service-upgraded machine corresponds to step S20. (S30) The serverless function 51 obtains information on machines of the machine types "production" and "standby" corresponding to tenant ID "1" from the management table 71, i.e., the production machine 200 and the standby machine 300.
[0110] (S31) The serverless function 51 acquires a machine of machine type "standby", i.e., a subnet in which the standby machine 300 exists. (S32) The serverless function 51 creates a machine of machine type "production_new", i.e., a 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, for example, in AZ2c2, which is different from AZ2c1 in which the current production machine 200 exists.
[0111] (S33) The serverless function 51 stops the service-upgraded machine 300a (machine of machine type "production_new") because the service-upgraded machine 300a is started by the creation in step S32.
[0112] (S34) The serverless function 51 acquires a subnet in which a machine of machine type "production", i.e., the operational machine 200, exists. (S35) The serverless function 51 creates a machine of 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, which 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 the 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] 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 tenant ID "1".
[0116] (S41) The serverless function 51 updates the machine type of each virtual machine for 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 using the procedure illustrated in FIG. 15. The management table 71c shows the management table after the update in step S41. Thereafter, the serverless function 51 executes step S22 to update the tenant status in the management table 71c from "normal" to "patch." The management table 71d shows the state in which the tenant status in the management table 71c has been updated from "normal" to "patch."
[0118] 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 preparation of the service-upgraded machine. 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, the procedure for the tenant with tenant ID “1” is shown, but the same procedure applies to other tenants.
[0120] (S51) The serverless function 51 determines whether 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 then 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 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 about the production machine 200 of the tenant in question from the connection destination of the load balancer 90.
[0124] (S55) The serverless function 51 executes each failover process. The details of each failover process will be described later. By each failover process, the management table 71c is updated, and preparations are made to add the new active virtual machine 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 step S50 onward, service upgrade control is performed for the next tenant.
[0127] 18 is a flowchart showing an example of determining whether a service can be upgraded. Determining whether a service can be upgraded corresponds to step S53. (S60) The serverless function 51 acquires the execution status of the job of the relevant tenant. For example, the serverless function 51 may acquire the execution status of the job from the production machine 200. For example, the production 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 production machine 200. For example, the production machine 200 may acquire information on the job definition stored in the shared storage 400 and provide the schedule information included in the information on the job definition to the serverless function 51.
[0129] (S62) The serverless function 51 determines whether a service upgrade is currently possible based on the job execution status and 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 production machine 200 or when 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 production 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 predetermined 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 executing a failover in the service upgrade so that the job by the operational machine 200 is not interrupted or not executed as scheduled. This reduces the impact on job execution by the operational machine 200.
[0131] 19 is a flowchart showing an example of each failover process. Each failover process corresponds to step S55. (S70) The serverless function 51 acquires, from the management table 71c, the machine IDs of the machine types “production_old” and “production” that correspond to the tenant ID of the target tenant.
[0132] (S71) The serverless function 51 stops the service of the machine with the machine ID of the machine type “production_old”, i.e., the production 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”, i.e., the production machine 200.
[0133] (S73) The serverless function 51 starts the machine with the machine ID of the machine type "production", i.e., 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", i.e., 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”, i.e., the production machine 200. (S77) The serverless function 51 deletes the machines with the machine IDs of the machine types “production_old” and “standby_old”, i.e., the production machine 200 and the standby machine 300.
[0136] (S78) The serverless function 51 deletes from the management table 71c the information about the machines with the machine IDs of the machine types “production_old” and “standby_old”, i.e., the information about the production machine 200 and the standby machine 300. Then, each failover process ends.
[0137] In this way, the information about 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 service jobs from the operational machine 200 based on the tenant common data and tenant-specific data.
[0138] In this way, the serverless function 51 can efficiently perform switching from the production machine 200 to the service-upgraded machine 300a by having both machines share specific data via the shared storage 400. For example, the amount of data read by the service-upgraded machine 300a from the shared storage 400 during switching is reduced compared to writing both tenant common data and tenant-specific 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 production machine 200 is reduced, enabling quick switching from the production 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 illustrating the comparative example. In this comparative example, data is synchronized between the virtual machines in AZs 2c1 and 2c2 using external storage 5b provided by cloud system 2, rather than shared storage 400 that can be mounted on the virtual machines in AZs 2c1 and 2c2. External storage 5b is provided in a network relatively higher than cloud system 2 and cannot be mounted on the virtual machines in AZs 2c1 and 2c2. External storage 5b is accessed by management node 5a. Management node 5a is provided in the same hierarchical network as, for example, monitoring node 40, serverless function execution node 50, and machine image management node 60.
[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 that is 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 that is 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 5 b for synchronization with the standby machine 300.
[0142] When performing synchronization, the management node 5a starts the standby machine 300. The started standby machine 300 obtains the latest data from the external storage 5b and updates the local storage 301 with the latest data.
[0143] However, if the standby machine 300 is executed every time synchronization processing is performed in this way, computational resources are consumed, and there is a problem that costs for synchronization processing are incurred in addition to the job that the tenant originally wanted to execute.
[0144] That is, in the method of the comparative example, availability can be maintained, but the standby machine 300 must be started every time there is an update in the external storage 5b, which increases the startup time of the standby machine 300 and therefore increases operational 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 production machine 200 and the standby machine 300. The standby machine 300 can read the unique data updated by the production machine 200 from the shared storage 400. This eliminates the need to perform data synchronization processing between the production 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 production machine 200 to the standby machine 300.
[0146] However, when the shared storage 400 is shared between the operational machine 200 and the standby machine 300 by making it mountable from both machines, the shared storage 400 is shared by the operational machine 200 and the standby machine 300 via a network. For this reason, if a relatively large amount of data is read from the shared storage 400 to the standby machine 300 during switchover, it may take a long time to read the data. This may cause a delay in completing the switchover and affect availability.
[0147] Therefore, the serverless function execution node 50 arranges tenant common data in the storage 201 of the production machine 200 and the storage 301 of the standby machine 300, and writes tenant-specific data to the shared storage 400. This reduces the amount of data read by the standby machine 300 from the shared storage 400 at the time of switching, compared to writing both tenant common data and tenant-specific data to the shared storage 400. As a result, for example, the time required from the detection of an abnormality in the production machine 200 to the standby machine 300 resuming a job related to the service is reduced, and quick switching from the production machine 200 to the standby machine 300 can be performed.
[0148] In this way, compared to a method in which the standby machine 300 is started up and the synchronization process is performed each time synchronization is performed, the serverless function execution node 50 can reduce unnecessary costs associated with the execution of the standby machine 300 and speed up failover by omitting the synchronization process. 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 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 when both tenant common data and tenant specific data are stored in the shared storage 400.
[0150] The switching from the operational machine 200 to the service-upgraded machine 300a exemplified in the third embodiment also has the same advantages as the switching from the operational machine 200 to the standby machine 300. That is, in the third embodiment as well, the serverless function execution node 50 can efficiently improve the availability of the service provided by the operational machine 200.
[0151] Furthermore, because data is written frequently during job execution, in the method of the comparative example, the storage 301 of the standby machine 300 is updated more frequently, and the standby machine 300 continues to be activated. Therefore, it is not possible to secure spare time for a service upgrade, and job operation must be stopped. Another problem is that stopping job operation requires the effort of coordinating schedules with tenants for service upgrades.
[0152] On the other hand, as exemplified in the third embodiment, the serverless function execution node 50 eliminates the need to stop job operations on the production machine 200 for service upgrade. In other words, the serverless function execution node 50 can smoothly switch to the service-upgraded machine 300a while minimizing the impact on job operations.
[0153] As described above, the processor 101 used in the serverless function execution node 50 executes the following processing. The following processing 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 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 the job corresponding to the first user, which is updated in response to the execution of the job by the active node or by the first user, from the active node to the shared storage. For example, the processor 101 mounts the shared storage on the active node and specifies the shared storage as the write destination for 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 switching the job execution entity from the active node to the standby node, the processor 101 starts the standby node and performs settings that enable 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 running for synchronization processing, thereby reducing the execution time of the standby node. This reduces the cost associated with using the standby node. Furthermore, the standby node only needs to read its own data from the shared storage when switching, and does not need to read common data from the shared storage. This reduces the time required to read data when switching, thereby speeding 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, a user may also 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 both the active node and the standby node. 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 share data between the active node and the standby node. For example, the processor 101 can simply input and execute a mount command to the OS of the standby node via the communication interface 107, 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 the 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 active node, the processor 101 deletes information about the active node from the connection destination information held by the relay node. Here, a relay node is a node that relays a request sent by an access source node such as a terminal device 4 to an active node or a 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 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 from 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] The common data is, for example, a program such as job management software that runs a job, i.e., a predetermined program. The processor 101 may prepare a new node on the cloud system 2 with an upgraded predetermined program and stop the new node. When switching the job execution entity from the production 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 a new node only needs to be started when switching, it is not necessary to start the new node while the operational node is running for synchronization processing, thereby reducing the execution time of the new node. This reduces the cost associated with using the new node. Furthermore, the new node only needs to read tenant-specific data from the shared storage when switching, and does not need to read common data from the shared storage. This reduces the time required to read data when switching, thereby speeding up switching. The new node is prepared by creating a new node on the cloud system 2 based on 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 node management that the new node has been prepared for the active 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 for switching the job execution entity from the active node to the new node according to the job execution status of the active node. For example, the processor 101 may obtain a job execution schedule from job definition information of the active node, identify free time when the job is not being executed, and determine the time included in the free time as the timing for switching. When the processor 101 switches the job execution entity from the active node to the new node at the determined timing, the processor 101 deletes the information of the active node from the management table and sets the new node as the new active node.
[0165] This allows the processor 101 to appropriately manage the virtual machine currently in the active system using the management table while minimizing the impact on job execution that accompanies switching from the active node to the new node.
[0166] Furthermore, the active 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, by placing the production and standby machines in different availability zones, the processor 101 can increase fault tolerance against failures in the availability zones and improve service availability. Note that the first availability zone may be referred to as a set of one or more first data centers to which production 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 standby nodes are assigned, or as a zone to which the one or more second data centers belong.
[0168] 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 manages jobs 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 on a computer-readable recording medium 113.
[0171] For example, the program can be distributed by distributing the recording medium 113 on which it is recorded. Alternatively, the program may be stored in another computer and distributed via a network. For example, a computer may store (install) a program recorded on the recording medium 113 or a program received from another computer in a storage device such as the RAM 102 or HDD 103, and then read and execute the program from the storage device.
[0172] REFERENCE SIGNS LIST 10 Information processing device 11 Storage unit 12 Processing unit 13 Communication unit 20 Information processing system 21 Operational node 22 Standby node 23 First storage unit 24 Second storage unit 25 Shared storage 26 Relay node 30 Access source node
Claims
1. A program that causes a computer to execute the following process: place common data used in common for the execution of jobs corresponding to each of a plurality of users in each of a first memory unit accessed by an operational node used for a job corresponding to a first user among a plurality of users, and a second memory unit accessed by a standby node corresponding to the operational node; write 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 operational node, to a shared storage shared by the operational node and the standby node, and stop the standby node while the operational node is operating; and start up the standby node when the execution entity of the job is switched from the operational node to the standby node, and perform settings that enable the standby node to read the unique data from the shared storage.
2. The program according to claim 1, which causes the computer to execute a process in which the shared storage can be mounted on the operational node and the standby node, and in the setting, the shared storage is mounted on the standby node.
3. The program according to claim 2, which causes the computer to execute a process in which, in the setting, the shared storage is unmounted from the operational node before mounting the shared storage on the standby node.
4. The program of claim 3, which causes the computer to execute the following process: before unmounting the shared storage from the operational node, delete information about the operational node from connection information held by a relay node that relays a request sent by the accessing node to the operational node; and after mounting the shared storage on the standby node, add information about the standby node to the connection information.
5. The program of claim 1, which causes the computer to execute the following processes: the common data is a specified program for running the job; a new node with the specified program upgraded is prepared and stopped; when the execution body of the job is switched from the operational node to the new node, the new node is started and settings are made to enable the new node to read the unique data from the shared storage.
6. The program of claim 5, which causes the computer to execute the following process: when the new node is prepared, record in a management table used for managing nodes that the new node has been prepared for the operational node; when it is detected based on the management table that the new node has been prepared, determine the timing to switch the job executor from the operational node to the new node depending on the execution status of the job on the operational node; and when switching the job executor from the operational node to the new node at the determined timing, delete the information of the operational node from the management table and set the new node as the new operational node.
7. The program of claim 5, which causes the computer to execute the following process: the operational node operates in a first availability zone; the standby node operates in a second availability zone; the new node is prepared in one of the first availability zone and the second availability zone, and a standby node corresponding to the new node is prepared in the other availability zone.
8. The program according to claim 1, wherein the common data is a specified program for running the job, and the specific data is information used by the specified program that indicates a definition of the job and a status of the job.
9. An information processing method in which a computer places common data used in common for the execution of jobs corresponding to each of a plurality of users in each of a first memory unit accessed by an operational node used for a job corresponding to a first user among a plurality of users and a second memory unit accessed by a standby node corresponding to the operational node, 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 operational node, to a shared storage shared by the operational node and the standby node, and keeps the standby node in a stopped state while the operational node is operating, and when switching the execution entity of the job from the operational node to the standby node, starts up the standby node and performs settings that enable the standby node to read the unique data from the shared storage.
10. An information processing device having: a communication unit used for communicating with an operational node used for a job corresponding to a first user among a plurality of users and a standby node corresponding to the operational node; and a processing unit which places common data used in common for the execution of the jobs corresponding to each of the plurality of users in each of a first memory unit accessed by the operational node and a second memory 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, to a shared storage shared by the operational node and the standby node, and keeps the standby node in a stopped state while the operational node is operating, and starts up the standby node when the execution entity of the job is switched 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.
11. The information processing device according to claim 10, wherein the shared storage can be mounted on the operational node and the standby node, and the setting includes mounting the shared storage on the standby node.
12. The information processing device according to claim 11, wherein said setting includes unmounting said shared storage from said operational node before mounting said shared storage on said standby node.
13. An information processing device as described in claim 12, wherein the processing unit deletes information about the operational node from connection destination information held by a relay node that relays a request sent by the access source node to the operational node before unmounting the shared storage from the operational node, and adds information about the standby node to the connection destination information after mounting the shared storage on the standby node.
14. An information processing device as described in claim 10, wherein the common data is a specified program for running the job, and the processing unit prepares a new node with the specified program upgraded and stops the node, and when switching the execution entity of the job from the operational node to the new node, starts up the new node and performs settings that enable the new node to read the unique data from the shared storage.
15. The information processing device of claim 14, wherein the processing unit, when preparing the new node, records in a management table used for managing nodes that the new node has been prepared for the operational node, and when it detects based on the management table that the new node has been prepared, determines the timing for switching the execution entity of the job from the operational node to the new node depending on the execution status of the job on the operational node, and when switching the execution entity of the job from the operational node to the new node at the determined timing, deletes information of the operational node from the management table and sets the new node as the new operational node.
16. An information processing device as described in claim 14, wherein the operational node operates in a first availability zone, and the standby node operates in a second availability zone, and the processing unit prepares the new node in one of the first availability zone and the second availability zone, and prepares a standby node corresponding to the new node in the other availability zone.
17. An information processing apparatus according to claim 10, wherein said common data is a specified program for running said job, and said specific data is information used by said specified program that indicates a definition of said job and a status of said job.
