RESOURCE ALLOCATION DEVICE, RESOURCE ALLOCATION METHOD, AND RESOURCE ALLOCATION PROGRAM
The resource allocation device optimizes data center placement for groups with varying service requirements by calculating allocation costs using a greedy method and local search, addressing inefficiencies in existing techniques and improving service quality.
Patent Information
- Application Number
- JP2022581105
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-12
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2041-02-12
AI Technical Summary
Existing resource allocation techniques in distributed cloud environments fail to efficiently accommodate multiple groups of users with varying service requirements, leading to increased communication delays and suboptimal resource utilization.
A resource allocation device and method that calculates the allocation cost of state management units to data centers based on group-specific requirements, using an allocation index to determine the most suitable data center for each group, employing a greedy method and local search algorithm to optimize resource distribution.
This approach allows for efficient resource allocation that meets the specific needs of each group, reducing communication delays and improving service quality by minimizing average, maximum, and variance of delays within groups, thus enhancing the user experience.
Smart Images

Figure 0007537528000007 
Figure 0007537528000013 
Figure 0007537528000010
Abstract
Description
[Technical field]
[0001] The present invention relates to a resource allocation device, a resource allocation method, and a resource allocation program. [Background technology]
[0002] A distributed cloud environment is an architecture in which Data Centers (DCs) are distributed within a Network (NW) (Non-Patent Documents 1, 2). DCs provide computing resources to offload (perform) processing that was previously handled by servers and users. Below, we will take the state management unit as an example of a target to be assigned to a DC. Note that "state" is data used for services exchanged in real time between multiple users. The "state management unit" is a processing unit that updates the state it manages based on the access contents received from each user and shares the updated state data with each user.
[0003] FIG. 7 is a diagram showing the configuration of the online system 9z1 before the state management unit 5z is offloaded. In the online system 9z1, the service providing device 1z provides a service that allows a plurality of user terminals 4z to share state data in real time. Examples of states managed by the state management unit 5z include the following. - Online games: Avatar position, acceleration, movement, equipment, damage determination, incapacity status, etc. XR (Extended Reality): Avatar (user) movements, sensory information, events occurring in the virtual world, etc. Online meetings: audio and video data for users, screen sharing, presenter permissions, mute settings, etc. In this online system 9z1, the communication distance between the service providing device 1z and each user terminal 4z is long, and therefore a large communication delay becomes a factor that deteriorates the quality of the service.
[0004] FIG. 8 is a diagram showing the configuration of the online system 9z2 after the state management unit 5z is offloaded to the DC 3z. In the online system 9z2, the device that operates the state management unit 5z is offloaded from the service providing device 1z to the DC 3z close to the user terminal 4z. This offloading provides the following effects. · User: Reduced computational cost and latency. · Telecommunications carriers: reducing traffic volume and congestion. · Service providers: Reduction of server load and maintenance costs.
[0005] In other words, in order to improve the service quality, it is important to select which DC 3z to place the state management unit 5z in from among multiple DC 3z candidates. Non-Patent Document 3 describes a resource allocation method that calculates the delay between each user terminal 4z and reduces the maximum value of the delay (maximum E2E delay). [Prior art documents] [Non-patent literature]
[0006] [Non-Patent Document 1] Alicherry and TV Lakshman, “Network aware resource allocation in distributed clouds,” in 2012 Proceedings IEEE INFOCOM, pp. 963-971, 2012. [Non-Patent Document 2] M. Mukherjee, L. Shu, and D. Wang, “Survey of fog computing: Fundamental, network applications, and research challenges,” in IEEE Communications Surveys & Tutorials, Vol. 20, No. 3, pp. 1826-1857, 2018. [Non-Patent Document 3] A. Kawabata, BC Chatterjee, S. Ba and E. Oki, "A Real-Time Delay-Sensitive Communication Approach Based on Distributed Processing," in IEEE Access, vol. 5, pp. 20235-20248, 2017. Summary of the Invention [Problem to be solved by the invention]
[0007] Even if users use the same online system environment, different groups of users will execute different applications. In this case, for example, the following problem is defined. Multiple DCs and a large number of users are scattered across the network. Users have already formed a relatively small group (e.g. 2 to 10 people). There are no users who belong to multiple groups. -I want to house the state management parts of all groups in their appropriate DCs.
[0008] Also assume that the following prerequisites have already been given for the above problem: · All groups formed and their members. Latency between all users and all DCs (e.g., a single ping measurement or the average of multiple measurements). ·How many users each DC can accommodate and what latency requirements they must meet (e.g. maximum acceptable latency).
[0009] Figure 9 is a configuration diagram of a distributed cloud environment 8z when the state management unit is offloaded to multiple DCs. In the distributed cloud environment 8z, there are two DCs (DC1, DC2) in the NW indicated by the wavy line, and five users (UA1, UA2, UA3, UB1, UB2) are accommodated in the DC. In the example of FIG. 9, each user is accommodated in the nearest DC. Therefore, DC1 accommodates users (UA1, UA2, UB1). DC2 accommodates users (UA3, UB2).
[0010] As explained in the problem definition above, let us assume that a first group (UA1, UA2, UA3: the group whose second character is "A") and a second group (UB1, UB2: the group whose second character is "B") have been formed among users. In order for the members of the first group to play the same competitive game, the states of UA1 and UA2 (ST1) and the state of UA3 (ST2) need to be shared (synchronized) between DCs. The same applies to the second group.
[0011] Furthermore, the first group of applications and the second group of applications may have different service requirements. For example, in a survival game played by the first group, emphasis is placed on having a large number of participants, such as 100 people, and information about the opponent is not required as strictly as in a fighting game. On the other hand, in a fighting game played by the second group, although the number of players is small, such as one-on-one, the information on the screen that each member sees and the operation information that each member enters must be reflected quickly (frame-by-frame) to the other party.
[0012] There is a need for a method to efficiently allocate resources appropriate to each group while taking into account such service requirements. However, conventional resource allocation techniques such as those described in Non-Patent Document 3 are unable to handle complex situations in which multiple groups exist and each group has various service requirements.
[0013] Therefore, a main object of the present invention is to perform resource allocation according to the requirements of each group formed by a plurality of users. [Means for solving the problem]
[0014] In order to solve the above problems, the resource allocation device of the present invention has the following features. The present invention relates to a system for managing a state of a group of multiple user terminals, the system including: a request receiving unit that receives a request to assign the state managing unit to one of multiple data centers deployed in a distributed cloud environment; The present invention is characterized in that it has an allocation calculation unit that calculates an allocation cost when allocating the state management unit to each of the data centers using an allocation index according to the requirements of the group, and determines the data center to which the state management unit is to be allocated in accordance with the allocation cost. Effect of the Invention
[0015] According to the present invention, resources can be allocated in accordance with the requirements of each group formed by a plurality of users. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is a configuration diagram of an online system according to an embodiment of the present invention. [Diagram 2] 1 is a hardware configuration diagram of a resource allocation device according to an embodiment of the present invention. [Diagram 3] 1 is a diagram illustrating a configuration of a distributed cloud environment in which an allocation calculation unit according to the present embodiment allocates a state management unit for each group. [Figure 4] 13 is a flowchart showing a main process of the greedy method according to the present embodiment. [Diagram 5] 5 is a flowchart showing a subroutine process of the greedy method in FIG. 4 according to the present embodiment. [Figure 6] FIG. 6 is an explanatory diagram showing an example of the greedy algorithm process of FIG. 4 and FIG. 5 according to the present embodiment. [Figure 7] FIG. 1 is a diagram illustrating the configuration of an online system before offloading the state management unit. [Figure 8] This is a configuration diagram of an online system after the state management unit is offloaded to a DC. [Figure 9] This is a configuration diagram of a distributed cloud environment when the state management unit is offloaded to multiple DCs. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Hereinafter, the present embodiment will be described with reference to the drawings.
[0018] FIG. 1 is a configuration diagram of an online system 9. The online system 9 is configured by connecting a service providing device 1, a resource allocation device 2, and a distributed cloud environment 8 via a network. In the distributed cloud environment 8, a service is provided in which state data is shared in real time among a plurality of user terminals 4. Therefore, the state management unit 5 manages the state for each group. Each state management unit 5 is disposed in one of the DCs 3.
[0019] First, the resource allocation device 2 performs a group matching process such as (Step 1A) to (Step 5A). (Step 1A) The user terminal 4 accesses the service providing device 1. (Step 2A) The user terminal 4 matches with any (multiple) user terminals 4 with which it will share its state on the service providing device 1, and forms a group. For example, in an online game, "teammates or opponents" are the people with whom it will share its state. Or, in the case of an online conference system, "participants in the same conference" are the people with whom it will share its state. (Step 3A) The service providing device 1 selects an appropriate DC 3 as an offload destination for the group formed in (Step 2A), and starts the service by arranging a state management unit 5 for each group in that DC 3. (Step 4A) In the state management unit 5, a server function for providing a service (such as a battle function in an online game) is implemented in advance as a VM or container. The state management unit 5 provides a service by updating the state of the virtual space, etc. within the group. (Step 5A) If the group is disbanded after the match ends, the user terminals 4 of the disbanded group members are returned to the service providing device 1, and the process returns to (Step 2A).
[0020] As a detailed example of (Step 4A), the DC3 performs a process in which the state management unit 5 of each group updates the state it manages. For example, in an online competitive game, as shown in the following (Step 1B) to (Step 4B), each user terminal 4 sends a command to the DC3 and at the same time receives from the DC3 a virtual space (state) that has already been synchronized and generated. This allows a user terminal 4 to obtain commands from other user terminals 4 simply by performing one-to-one communication with the DC3.
[0021] (Step 1B) Each user terminal 4 writes its own command to the state management unit 5 on the DC 3. For example, it uses a controller to send a command to move its own avatar forward. (Step 2B) The state management unit 5 on the DC3 aggregates and synchronizes the commands (step 1B) from each user terminal 4. For example, it makes each user's avatar move or perform an action according to the command received from each user terminal 4. In other words, it generates the state of the virtual world after a short time has passed since before. (Step 3B) The state management unit 5 on the DC 3 uses the information from (Step 2B) to render (image) the virtual world, and transmits the state to all user terminals 4. For example, the state management unit 5 distributes (one frame of) a game screen that reflects the commands of all user terminals 4. (Step 4B) Each user terminal 4 that has received the state again transmits a command. For example, if an enemy is seen attacking, an avoidance command is input. Then, the process returns to (Step 1B).
[0022] The above is an example of an online competitive game, but the distributed cloud environment 8 may also be applied to cases in which a final processing result is obtained by combining multiple specific modules in an IoT (Internet of Things) environment, etc. For example, a user terminal 4 for the weather forecast module, a user terminal 4 for the soil analysis module, and a user terminal 4 for the crop analysis module are prepared separately.These three modules are then grouped, and a processing unit (corresponding to the above-mentioned state management unit 5) that receives the output results of the modules belonging to that group, processes them, and manages the fields is placed in DC3.
[0023] In (Step 3A), the resource allocation device 2 selects in which DC 3 to place the state management unit 5 offloaded from the service providing device 1 (hereinafter referred to as "DC placement"), according to requirements for each group formed by multiple users (for example, requirements for each application used by the group, or requirements for each service used by the group). For this purpose, the resource allocation device 2 has a request receiving unit 21, a NW data collecting unit 22, an allocation calculating unit 23, and a control unit 24.
[0024] The request receiving unit 21 receives a request for each group, including the group configuration and the user's delay requirement, from the service providing device 1. This request has contents to assign a state management unit 5 for data exchange for each group consisting of multiple user terminals 4 to one of multiple DCs 3 deployed in the distributed cloud environment 8. The NW data collection unit 22 measures and collects, from the distributed cloud environment 8, NW data including delay information between each user terminal 4 and each DC 3 and free capacity information of each DC 3 (the number of users that can be allocated).
[0025] The allocation calculation unit 23 calculates DC allocation for each group according to a resource allocation scheme (hereinafter referred to as "scheme") based on the request from the request receiving unit 21 and the NW data from the allocation calculation unit 23. The scheme is information for determining to which DC the state management unit 5 is to be allocated, to what extent, and with what policy (mainly which allocation index is to be emphasized), and the performance of the distributed cloud environment 8 strongly depends on the scheme.
[0026] The resource allocation device 2 may receive the scheme as a request from the service providing device 1. Alternatively, the allocation calculation unit 23 may determine the scheme by referring to a database based on the application type received by the resource allocation device 2 as a request from the service providing device 1. In the database, a scheme corresponding to each application type is registered in advance. Alternatively, the allocation calculation unit 23 may receive a scheme specification from a member in the group. The control unit 24 allocates resources to each state management unit 5 and each DC 3 in accordance with the DC allocation from the allocation calculation unit 23 .
[0027] FIG. 2 is a diagram showing a hardware configuration of the resource allocation device 2. As shown in FIG. The resource allocation device 2 is configured as a computer 900 having a CPU 901 , a RAM 902 , a ROM 903 , a HDD 904 , a communication I / F 905 , an input / output I / F 906 , and a media I / F 907 . The communication I / F 905 is connected to an external communication device 915. The input / output I / F 906 is connected to an input / output device 916. The media I / F 907 reads and writes data from a recording medium 917. Furthermore, the CPU 901 controls each processing unit by executing a program (such as a resource allocation program provided in the request receiving unit 21, the NW data collecting unit 22, the allocation calculating unit 23, and the control unit 24) read into the RAM 902. This program can also be distributed via a communication line or recorded on a recording medium 917 such as a CD-ROM and distributed.
[0028] FIG. 3 is a configuration diagram of a distributed cloud environment 8 in which the allocation calculation unit 23 allocates a state management unit for each group. In the distributed cloud environment 8z shown in Figure 9, the concept of groups was not taken into consideration, and DCs were selected on a per-user basis, so state sharing between DCs was necessary. As a result, the communication delay between users also increased due to the extra overhead caused by state sharing. On the other hand, in the distributed cloud environment 8 of Fig. 3, the allocation calculation unit 23 performs DC allocation on a group basis. As a result, one state management unit 5 per group is assigned to one DC3. For example, the state management unit (STA) for the first group (UA1, UA2, UA3) is assigned to DC1, while the state management unit (STB) for the second group (UB1, UB2) is assigned to DC2. This makes it possible to suppress overhead during state sharing and to meet strict real-time requirements.
[0029] Furthermore, the allocation calculation unit 23 can plan DC allocation suited to the requirements of each group by referring to a scheme suited to the application type of each group from the request. In other words, the allocation calculation unit 23 calculates the allocation cost when allocating the state management unit 5 to each data center using the allocation index of the scheme according to the requirements of each group, and determines the data center to which the state management unit 5 is to be allocated according to the allocation cost. Below, examples are given as examples of combinations of application types and schemes.
[0030] "Case 1: Fully synchronous type" is an application that allows all users in a group to view the same screen by waiting for communication from all users in the group one by one and then synchronizing the state. Below is an example of a fully synchronous type application. - 1 vs 1 fighting game. A system for managing fields as described above in the explanation of Figure 1. The fully synchronous scheme (allocation index) is to minimize the "maximum delay within the group" because the QoS (Quality of Service) and QoE (Quality of Experience) of the entire group depend on the user with the longest delay.
[0031] "Case 2: Semi-synchronous type" is an application that does not (cannot) maintain strict synchronization between users, for example, a First-Person Shooter (FPS) survival game with about 100 players. By synchronizing the state without waiting for communication from users with large latency who belong to a group, the screen seen by users with large latency may stutter, or other users may not be able to see the latest position of the character of the user with large latency. The semi-synchronous scheme (allocation index) minimizes the "average delay within the group." For example, even if only three members of a group of 100 people experience a large delay, only three people will feel the inconvenience, and the remaining 97 people will be provided with a comfortable environment with a small average delay.
[0032] "Case 3: Fair environment type" is a real-time application that particularly requires fairness in the playing environment between users, and is illustrated below. A racing game in which around 10 people race on the same circuit at the same time. In XR spaces and virtual conference rooms, it is desirable for the time it takes for a user's movement to be reflected in the field of view (motion-to-photon latency) to be 20 ms or less. Even in applications where users converse in a virtual space that mimics a real city, the number of users that can be in one space is limited in order to avoid slowing down response. A fair environment scheme (allocation index) is one that minimizes the "variance (or standard deviation) of delays within a group." In general, the larger the delay, the lower the QoS / QoE, which also affects advantages in the virtual world (e.g., game scores). Therefore, it is desirable to reduce the variation in delay within a group, not only in fair environment applications but also in other applications.
[0033] Although three types of schemes have been exemplified above, multiple allocation indices may be combined, for example, a quasi-synchronous scheme may simultaneously minimize the "average delay within the group" and the "maximum delay within the group." Similarly, a fair environment scheme may minimize the three allocation indices, "average delay within the group," "maximum delay within the group," and "variance in delay within the group," in a balanced manner.
[0034] In the following, we will formulate a model that can simultaneously minimize and equalize delays within a group. Specifically, we will explain a model that can comprehensively evaluate the three allocation indices. First, we will define the parameters used in the model. The symbol “i∈I” denotes user i and its set I. The symbol “j∈J” denotes group j (j=1,2,...,n) and its set J. The symbol “k∈K” denotes DCk (the kth DC, k=1, 2, ..., m) and its set K. Symbol "I j ⊂I” is the set I of users who belong to group j. j Shows. Symbol "w ij " is a binary variable that takes the value "1" if user i belongs to group j and "0" otherwise. The symbol "d ik " indicates the delay time between users i-DCk. Symbol "D i ” denotes the delay requirement of user i. The symbol "C k " indicates the number of users that DCk can accommodate. These parameters are provided to the allocation calculation unit 23 as a request from the request receiving unit 21 or as collected data from the NW data collecting unit 22 .
[0035]
number
[0036] The allocation calculation unit 23 calculates the allocation index using (Equation 1) and (Equation 2). The formula for calculating the maximum delay will be described later as (Equation 4). The left side of (Equation 1) "a jk " is the number of users i∈I when group j is accommodated in DCk. j The average delay is shown. The left side of (Equation 2) "v 2 jk " is the number of users i∈I when group j is accommodated in DCk. j The delay dispersion of
[0037]
number
[0038] Equation 3 shows the objective function for DC allocation. This objective function reduces to the problem of minimizing the total allocation cost for group j. The symbol "c jk " is the allocation cost when group j is accommodated in DCk. The symbol "x jk " is the calculation result of the allocation calculation unit 23. "x jk ” is a decision variable that takes the value of “1” if group j is admitted to DCk, and “0” otherwise. The allocation calculation unit 23 calculates the allocation cost c jk We will explain (Equation 4) or (Equation 5) as specific formulas for calculating delay. Note that as a value indicating the variance of delay, (Equation 4) uses variance, and (Equation 5) uses standard deviation. By using standard deviation instead of variance, there are no terms that include squares, so the scale of each term can be adjusted to some extent.
[0039]
number
[0040] α, β (α, β≧0, α+β≦1) are parameters for adjusting the trade-off between the three allocation indices, and are determined arbitrarily by the service provider, user, or network operator depending on the service requirements, etc. The first term on the right-hand side of (Equation 4), “1-α-β”, is a hyperparameter that places more importance on the “average delay within the group” as its value increases. “α” in the second term on the right-hand side of (Equation 4) is a hyperparameter that places more importance on “variation in delay within a group” as its value increases. The third term on the right side of (Equation 4), "β", is a hyperparameter that places more importance on the "maximum delay within the group" as its value increases. Note that the formula after β on the third term on the right side is the formula for calculating the maximum delay within the group.
[0041] In other words, in (Equation 4) or (Equation 5), the priority of the three types of indicators can be adjusted according to the distribution of the three hyperparameters as follows: When α=0 and β=0, only the average delay is optimized (Case 2: Settings suitable for quasi-synchronous type). When α≠0 and β=0 (α+β<1) (e.g., α=0.5, β=0), the average delay and variance (standard deviation) are optimized. When α = 1 and β = 0 (α + β = 1), only the variance (standard deviation) is optimized (Case 3: Settings suitable for a fair environment). When α=0 and β≠0 (α+β<1), the average delay and maximum delay are optimized. When α=0 and β=1 (α+β=1), only the maximum delay is optimized (Case 1: Settings suitable for fully synchronous type). When α≠0 and β≠0 (α+β=1), the variance (standard deviation) and maximum delay are optimized. When α ≠ 0 and β ≠ 0 (α + β < 1), the average delay, variance (standard deviation), and maximum delay are all optimized.
[0042]
number
[0043] The allocation calculation unit 23 calculates the allocation cost c jkAs a formula for calculating the above, (Formula 6) may be used instead of (Formula 4) using variance, and (Formula 7) may be used instead of (Formula 5) using standard deviation. In (Equation 6) and (Equation 7), three types of hyperparameters (α, β, γ) are used. This allows for a high degree of freedom in parameter setting, but it also makes handling (optimal parameter setting) more difficult.
[0044] The first term on the right-hand side, “α,” is a hyperparameter that places more importance on the “average delay within the group” as its value increases. The second term on the right-hand side, “β,” is a hyperparameter that places more importance on “variability in delays within a group” the larger its value. “γ” in the third term on the right-hand side is a hyperparameter that places more importance on the “maximum delay within the group” as its value becomes larger. On the other hand, (Formula 4) and (Formula 5) have one less parameter and a narrower setting range. However, since the weights can be set as percentages, they are likely to be easier to use than those using three types of hyperparameters (α, β, γ).
[0045]
number
[0046] Equation 8 shows the constraints (subject to) corresponding to the objective function of Equation 3. The constraints are as follows: -No more than one DC can be assigned to a group. - The number of users accommodated does not exceed the capacity of each DC. · Each user's actual delay meets the delay requirement.
[0047] The problem formulated as (Equation 3) to (Equation 8) above is a combinatorial optimization problem, and in order to find a globally optimal solution, the allocation calculation unit 23 needs to investigate all combinations (brute force calculation). The amount of calculation for this problem at this time is enormous, being on the order of the amount of calculation (m to the nth power), where n is the number of groups and m is the number of DCs.
[0048] Therefore, the greedy algorithm and the local search method will be described in order as approximation algorithms that the allocation calculation unit 23 uses instead of the brute force calculation. The allocation calculation unit 23 uses the greedy algorithm alone, or uses the greedy algorithm and the local search method in combination. This makes it possible to obtain an optimal solution (or a suboptimal solution with a score close to the optimal solution) that can be obtained by the brute force calculation with less calculation effort than the brute force calculation.
[0049] Figure 4 is a flowchart showing the main process of the greedy algorithm. The greedy algorithm is a method of dividing a large problem into multiple small problems, evaluating the small problems individually, and adopting the candidate with the highest evaluation value. The allocation calculation unit 23 creates a cost table (S101) based on the request from the request receiving unit 21 and the NW data from the NW data collecting unit 22, as described later in Fig. 6. The allocation calculation unit 23 calculates the minimum cost for each group in the cost table of S101 (S102). The allocation calculation unit 23 sorts each group in the cost table in ascending order based on the minimum cost value (S103).
[0050] The allocation calculation unit 23 assigns an initial value of 1 to the group variable j (S104). Here, the allocation calculation unit 23 executes a loop for selecting groups j one by one in order up to the number of groups in the cost table (S105 to S107), and calls a subroutine (FIG. 5) for allocating DC to group j in this loop (S106). In the process of S106, if there is no allocation destination DC that can satisfy the delay requirement of a certain user, or if the capacity of the DC is insufficient, there is a possibility that a group cannot be allocated.
[0051] FIG. 5 is a flowchart showing the subroutine process (S106) of the greedy method in FIG. The allocation calculation unit 23 reads the j-th group row of the cost table (S111), and attempts to allocate to the DC with the smallest cost among them (S112). If the delay requirement of the user is satisfied (S113, Yes) and the capacity of the DC is sufficient (S114, Yes), the allocation calculation unit 23 allocates group j to that DC (S115). On the other hand, if (S113, No) or (S114, No), the allocation calculation unit 23 deletes the DC from the cost table of the j-th group (S116).
[0052] FIG. 6 is an explanatory diagram showing an example of the greedy algorithm process shown in FIGS. For ease of explanation, the following problem is set in Figure 6. I want to assign six groups (G1-G6) to three DCs (DC1-DC3). Each DC can be assigned to up to two groups. k The unit is the number of users, but here it is specified as the number of groups for simplicity. For simplicity, we do not consider the user delay requirements (i.e., D=∞). Since we only consider the average delay, we set α = β = 0. Of course, other parameter settings can be used.
[0053] The cost table 201 stores the allocation cost c jk 4, the cost table 201 is generated by sorting the cost table 201 in ascending order by the minimum value, and the result is the cost table 202 (S103). The DC allocation tables 211 to 217 are the calculation results “x jk For example, in the DC allocation table 214, two groups, "G4, G2," are assigned to DC1, no group is assigned to DC2 (symbol "-"), and one group, "G5," is assigned to DC3.
[0054] According to the following procedure, the allocation calculation unit 23 allocates each group to each DC by calling the subroutine of S106, starting from the group located at the top of the cost table 202. (G4 in the first row) The allocation calculation unit 23 allocates G4 to DC1 with the smallest cost (=6.0) (DC allocation table 211→DC allocation table 212). (G2 in the second row) The allocation calculation unit 23 allocates G2 to DC1 that has the smallest cost (DC allocation table 212→DC allocation table 213). (G5 in the third row) The allocation calculation unit 23 allocates G5 to DC3 which has the smallest cost (DC allocation table 213→DC allocation table 214). (G6 in the fourth row) The allocation calculation unit 23 attempts to allocate G6 to DC1, which has the smallest cost, but DC1 has insufficient capacity. Therefore, the allocation calculation unit 23 allocates G6 to DC3, which has the second smallest cost (DC allocation table 214 → DC allocation table 215). (G3 in the fifth row) The allocation calculation unit 23 allocates G3 to DC2 which has the smallest cost (DC allocation table 215→DC allocation table 216). (G1 in the sixth row) The allocation calculation unit 23 allocates G1 to DC2 which has the smallest cost (DC allocation table 216→DC allocation table 217).
[0055] The greedy method has been described above with reference to FIGS. Below is an example of pseudocode that explains the greedy algorithm in detail. This pseudocode is a procedural language that performs assignment "A←1" (assigning the value 1 to variable A), loop control "for~end for, while~end while", branch control "if~end if", etc. In addition, line numbers (L01, L02, ...) are added to the beginning of each line of the pseudocode for explanation purposes. Each function performs a specific calculation based on the input variables given in "Input:~" and returns the calculation result as an output variable indicated in "Output:~".
[0056] First, the Greedy_Allocation function is shown. Input: α, β, w ij , d ik , D i , and C k for ∀i ∈ I, ∀j ∈ J, and ∀k ∈ K Output: x jk for ∀j ∈ J and ∀k ∈ K L01: function Greedy_Allocation(α, β, w ij , d ik , D i , C k ) L02: for all i ∈ I, j ∈ J, k ∈ K do L03: w[i][j] ← w ij , d[i][k] ← d ik L04: D[i] ← D i , C[k] ← C k L05: Calculate c jk using (Equation 4)~(Equation 7) L06: c[j][k] ← c jk L07: end for L08: for all j ∈ J do L09: J[j] ← j, L[j] ← min k c[j][k] L10: end for L11: Sort J in ascending order of L L12: X ← GroupDC_Mapping(J, c, w, d, D, C) L13: return X L14: end function
[0057] Greedy_Allocation function(α, β, w ij , d ik , D i , C kIn L05, a cost table is created using α and β, and preprocessing is performed to assign DCs preferentially to groups with the smallest minimum cost in the table (L11). Note that the actual DC assignment is performed using the argument w ij ,d ik ,D i ,C k Then, the GroupDC_Mapping function is called and executed with the created cost table c and the permutation J that references the cost table as arguments (L12). In the flowchart of FIG. 4, S100 corresponds to L01, S101 corresponds to L05, S102 corresponds to L09, S103 corresponds to L11, and S106 corresponds to L12.
[0058] Next, the GroupDC_Mapping function is shown. L16: function GroupDC_Mapping(J,c,w,d,D,C) L17: for j'=1 to size(J) do L18: j←J[j'] L19: Discover I j from I use w L20: X[j]←DC_Selection(c[j],I j ,d,D,C) L21: if X[j]=∞ then L22: D[i]←∞ for ∀i∈I j L23: X[j]←DC_Selection(c[j],I j ,d,D,C) L24: end if L25: end for L26: return X L27: end function
[0059] The GroupDC_Mapping function (J, c, w, d, D, C) refers to the given cost table c in order according to permutation J (L17) (i.e., extracts a row c[j] in the cost table), and obtains the assignment by sequentially calling the DC_Selection function for assigning DCs to each group (L20, L23). If the DC_Selection function indicates that there is no DC that can satisfy the user's delay requirement D, the delay requirement D is ignored and the assignment is performed. In addition, X[j]←k in L20 and L23 has the value 1(x jk '=1 if k'=k), or 0 if not assigned (x jk '=0 otherwise). In the flowchart of FIG. 4, S104, S105, and S107 correspond to the for statements L17 to L25, and S112 corresponds to L20 and L23, respectively.
[0060] Additionally, the DC_Selection function is shown. L29: function DC_Selection(c[j],I j ,d,D,C) L30: tmp←c[j] L31: while True do L32: k←arg min k' tmp[k'] L33: if tmp[k]=∞ then L34: return ∞ L35: end if L36: if d[i][k]≦D[i] for ∀i∈I and |I j |≦C[k] then L37: C[k]←C[k]-|I j | L38: return k L39: else L40: tmp[k]←∞ L41: end if L42: end while L43: end function
[0061] DC_Selection function(c[j],I j ,d,D,C), group member I j For each user, the delay requirement D is satisfied and the remaining capacity C is smaller than the group size |I j | Among the DCs with the largest delay cost c[j][k] (L36), k is selected as the allocation destination (L37, L38). 5, S113 and S114 correspond to L36, S115 corresponds to L37, and S116 corresponds to L40. Note that "tmp[k]←∞" in L40 is equivalent to deleting the group from the allocation targets by setting the group cost to infinity.
[0062] As described above, when the allocation calculation unit 23 uses the greedy algorithm alone, it is sufficient to call the Greedy_Allocation function. This allows the groups to be sorted and the allocation to be prioritized from the smallest cost, thereby enabling highly accurate optimization in a short calculation time. On the other hand, the allocation calculation unit 23 may combine the proposed algorithm with the local search algorithm to find an even better solution.
[0063] Below is the pseudocode for the algorithm that combines the proposed method and the local search method. Input: N,α,β,w ij ,d ik ,D i , and C k Output: x jk M01: X←Greedy_Allocation(α,β,w ij ,d ik ,D i ,C k ) M02: Calculate the total cost x of X like (Eq. 3) M03: n←0 M04: while n++ <N do M05: Randomize the order of J M06: X'←GroupDC_Mapping(J,c,w,d,D,C) M07: Calculate the total cost t' x of X' M08: if t' x <t x then M09: X←X',t x ←t' x M10: end if M11: end while
[0064] In this pseudo code (M01 to M11), first, the allocation calculation unit 23 executes the Greedy_Allocation function (M01). Next, the allocation calculation unit 23 executes the GroupDC_Mapping function a fixed number of times (N times in M04) (M06). At this time, in the "sorting cost table" part, the allocation calculation unit 23 randomly changes the permutation of the groups (M05). Then, the allocation calculation unit 23 selects the allocation with the lowest overall cost among the N repetitions (M08 to M10). This pseudo code (M01 to M11) adds a search count to repeat the GroupDC_Mapping function N times, which may result in a smaller allocation cost than the greedy method, although the calculation cost increases. Note that the search count N is set arbitrarily by the service provider or the distributed environment operator.
[0065] Here, attention is focused on the number of groups given to the request receiving unit 21, and the requests are classified as follows. (Class 1) offline allocation is a case where all groups to be allocated are given to the request receiving unit 21 in advance. (Classification 2) batch allocation is a case where a part of the groups to be allocated (multiple groups) is sequentially given to the request receiving unit 21, and (relatively small-scale) offline allocation is performed each time. For example, in a large-scale system, several groups are created in, for example, 10 seconds, so in this case there is a need to perform batch allocation every 10 seconds. (Classification 3) Online allocation is a case where groups to be allocated are provided one by one to the request receiving unit 21, and allocation is performed each time. For example, this can be the case where groups are not formed frequently enough to perform batch processing, or where it is desired to minimize the time from group formation to allocation completion.
[0066] The Greedy_Allocation function explained so far assumes that a large number of groups are provided to the request receiving unit 21 (offline allocation or batch processing). On the other hand, if groups to be allocated to the request receiving unit 21 arrive sequentially, the following pseudo code for online allocation can be executed. Input: α,β,w ij ,d ik ,D i , and C k for ∀i∈I, ∀j∈J, and ∀k∈K Output: x jk for ∀j∈J and ∀k∈K N01: while True do N02: if receive an offload request for group j then N03: Calculate c jk for ∀k∈K N04: c[k]←c jk N05: X[j]←DC_Selection(c[j],I j ,d,D,C) N06: if X[j]=∞ then N07: D[i]←∞ for ∀i∈I j N08: X[j]←DC_Selection(c[j],I j ,d,D,C) N09: end if N10: return X[j] N11: end if N12: end while
[0067] In this pseudo code (N01 to N12), first, when the allocation calculation unit 23 receives an allocation request for group j (N02), it calculates the allocation cost c jk (N03), and create a cost table only for group j (N04). Then, the allocation calculation unit 23 executes the DC_Selection function for group j (N05, N08). At this time, the allocation calculation unit 23 calculates the capacity C k =C[k] is constantly monitored, and when group j leaves DC, the capacity is increased accordingly.
[0068] Below, in order to show the amount of calculation for each of (Classification 1) to (Classification 3), the number of times the functions of each classification are called is shown as an example. (Classification 1) When the number of groups = 10 is given at once as offline allocation, the procedure is as follows. In (Classification 1), when only the greedy algorithm is executed, the Greedy_Allocation function is executed once, the GroupDC_Mapping function is executed once, and the DC_Selection function is executed 10 times or more. Note that when the DC_Selection function is called more than 10 times, it means that there is no DC that can satisfy the user's delay requirement (when the return value of line L20 is ∞), and the process moves to line L23 and the DC_Selection function is called again. When executing the greedy method and local search together in (Classification 1), after executing the Greedy_Allocation function once, the GroupDC_Mapping function and the DC_Selection function are repeated N times as a set (Greedy_Allocation function once, GroupDC_Mapping function 1+N times, and DC_Selection function 10×(1+N) times or more). N is a parameter that can be set arbitrarily by the operator, etc.
[0069] (Classification 2) If the batch allocation is such that the number of groups is 10, it is given in three stages in the order of "number of groups = 5" → "number of groups = 3" → "number of groups = 2", as shown below. If you run only the greedy algorithm in (Classification 2), the result will be as follows. · Execute the Greedy_Allocation function once (when the number of groups is 5) + once (when the number of groups is 3) + once (when the number of groups is 2), for a total of three times. · Execute the GroupDC_Mapping function once (when the number of groups is 5) + once (when the number of groups is 3) + once (when the number of groups is 2) for a total of three times. Execute the DC_Selection function 5 or more times (when the number of groups is 5) + 3 or more times (when the number of groups is 3) + 2 or more times (when the number of groups is 2) for a total of 10 or more times.
[0070] When executing the Greedy Allocation method and local search together in (Classification 2), the Greedy_Allocation function is executed once each, and then the GroupDC_Mapping function and DC_Selection function are executed as a set, which are repeated N times during each batch processing, as shown below. · Execute the Greedy_Allocation function once each time, a total of three times. ·Execute the GroupDC_Mapping function (1+N) three times. Execute the DC_Selection function at least 5×(1+N) times + at least 3×(1+N) times + at least 2×(1+N) times, for a total of at least 10×(1+N) times.
[0071] (Classification 3) When the number of groups = 10 is given one by one as online allocation, the result is as follows. If only the greedy algorithm is executed in (Classification 3), the DC_Selection function is called once or twice 10 times, so it is executed a total of 10 times or more. In (Classification 3), it is not possible to perform the greedy algorithm and local search together. This is because when there is only one group, the allocation order is irrelevant, and there is no room for local search.
[0072] [effect] The resource allocation device 2 of the present invention includes a request receiving unit 21 that receives a request to allocate a state management unit 5 for sharing a state for each group made up of multiple user terminals 4 within the group to one of multiple DCs 3 deployed in a distributed cloud environment 8; The system is characterized by having an allocation calculation unit 23 that calculates an allocation cost when allocating a state management unit 5 to each DC3 using an allocation index according to the requirements of the group, and determines the DC3 to which the state management unit 5 is to be allocated according to the allocation cost.
[0073] This allows the user terminals 4 that are members of a group to assign the state management unit 5 to a destination suitable for the application that the group will use to share the state management unit 5. This makes it possible to assign resources according to the requirements of each group formed by multiple users.
[0074] The present invention is characterized in that the allocation calculation unit 23 calculates the delay time between each user terminal 4 constituting a group and the DC 3, and sets the average delay of these calculated delay times as the allocation index for the state management unit 5.
[0075] This makes it possible to find allocations that satisfy the majority of users in applications involving a large number of people, such as survival games.
[0076] The present invention is characterized in that the allocation calculation unit 23 calculates the delay time between each user terminal 4 constituting a group and the DC 3, and sets the maximum delay of these calculated delay times as the allocation index for the state management unit 5.
[0077] This makes it possible to find allocation destinations suitable for applications that require strict synchronization of communications among all users belonging to a group, such as fighting games.
[0078] The present invention is characterized in that the allocation calculation unit 23 calculates the delay time between each user terminal 4 constituting a group and the DC 3, and uses the variance or standard deviation of these calculated delay times as the allocation index for the state management unit 5.
[0079] This makes it possible to find allocation destinations suitable for real-time applications, such as racing games, which particularly require fairness in the playing environment between users.
[0080] The present invention is characterized in that the allocation calculation unit 23 calculates the allocation destination of each group by an approximation algorithm using a greedy method for a combinatorial optimization problem of minimizing the sum of the allocation costs of each group of requests received by the request receiving unit 21.
[0081] This makes it possible to calculate appropriate allocation destinations for combinatorial optimization problems with a smaller amount of calculation than with brute force calculations.
[0082] The present invention is characterized in that the allocation calculation unit 23 calculates the allocation destination of each group by an approximation algorithm that combines a greedy algorithm and a local search method for a combinatorial optimization problem of minimizing the sum of the allocation costs of each group of requests received by the request receiving unit 21.
[0083] This increases the chances of finding a better allocation than if the greedy algorithm were used alone. [Explanation of symbols]
[0084] 1 Service provision equipment 2 Resource Allocation Device 3 DC (Data Center) 4. User terminal 5 State Management Department 8. Distributed Cloud Environment 9. Online System 21 Request Reception Unit 22 Network Data Collection Department 23 Allocation Calculation Unit 24 Control Unit
Claims
1. a request receiving unit that receives a request to assign a state management unit for sharing a state for each group consisting of a plurality of user terminals within the group to one of a plurality of data centers deployed in a distributed cloud environment; and an allocation calculation unit that calculates an allocation cost when allocating the state management unit to each of the data centers using an allocation index according to requirements requested by the group, and determines the data center to which the state management unit is to be allocated according to the allocation cost. Resource allocation device.
2. The allocation calculation unit calculates a delay time between each of the user terminals constituting the group and the data center, and sets an average delay of the calculated delay times as an allocation index for the state management unit. The resource allocation device according to claim 1 .
3. The allocation calculation unit calculates a delay time between each of the user terminals constituting the group and the data center, and sets the maximum delay of the calculated delay times as an allocation index for the state management unit. The resource allocation device according to claim 1 .
4. The allocation calculation unit calculates a delay time between each of the user terminals constituting the group and the data center, and sets a variance or a standard deviation of the calculated delay times as an allocation index for the state management unit. The resource allocation device according to claim 1 .
5. The allocation calculation unit calculates the allocation destination of each group by an approximation algorithm using a greedy method for a combinatorial optimization problem of minimizing a sum of allocation costs of each group of requests received by the request receiving unit. A resource allocation device according to any one of claims 1 to 4.
6. The allocation calculation unit calculates the allocation destination of each group by an approximation algorithm that uses a greedy algorithm and a local search algorithm in combination for a combinatorial optimization problem of minimizing a sum of allocation costs of each group of requests received by the request receiving unit. A resource allocation device according to any one of claims 1 to 4.
7. The resource allocation device includes a request receiving unit and an allocation calculation unit, The request receiving unit receives a request to assign a state management unit for sharing a state for each group consisting of a plurality of user terminals within the group to one of a plurality of data centers deployed in a distributed cloud environment; The allocation calculation unit calculates an allocation cost when allocating the state management unit to each of the data centers using an allocation index according to requirements requested by the group, and determines the data center to which the state management unit is to be allocated according to the allocation cost. Resource allocation methods.
8. A resource allocation program for causing a computer to function as the resource allocation device according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method for maintaining group data in mobile radio system
JP1997508255A
