This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2017-220390, filed on Nov. 15, 2017, the entire contents of which are incorporated herein by reference.
The embodiments discussed herein are a data collection method, an information processing apparatus, and a distributed processing system.
It has been known that each edge server connected to a network autonomously distributes tasks to other edge servers at a high load. For example, each edge server periodically collects from resource usage ratios of all resources from all edge servers. When a processing load concentrates on a particular edge server, the edge server distributes tasks to edge servers that meet the demand. Related art is disclosed in Japanese Laid-open Patent Application Publication Nos. 2005-251160, 2004-318594, and 2004-341912, and so forth.
However, as a first problem, when each edge server periodically collects from the resource usage ratios of all resources from all edge servers, the number of messages at the collection becomes too large.
To suppress the number of messages from becoming too large, each edge server may form a group with adjacent edge servers, and periodically collects the usage state of each resource in the group. However, as a second problem, when the processing load concentrates on a particular edge server, if tasks may not be distributed among the edge servers in the group, it is requested to search distributed targets by a hop-by-hop method, taking much time. In consideration of such situation, it is desirable to reduce the resource search time while suppressing an increase in the number of messages.
According to an aspect of the embodiments, a data collection method executed by a distributed processing system having a plurality of groups, the plurality of groups each having a plurality of information processing apparatuses, the data collection method includes extracting, by a first information processing apparatus among the plurality of information processing apparatuses, a predetermined resource that takes much time to search an information processing apparatus satisfying a request resource amount from among a plurality of resources to be collected; notifying information related to the extracted predetermined resource to a second information processing apparatus that belongs to a first group of the first information processing apparatus; periodically collecting, by a second information processing apparatus among the plurality of information processing apparatuses, resource amounts of the plurality of resources to be collected from information processing apparatuses belonging to a second group other than the first group, the second information processing apparatus belonging to the second group; acquiring an resource amount of the predetermined resource of the information processing apparatuses belonging to the second group from the collected resource amounts at a predetermined timing; and when the acquired resource amount satisfies a predefined resource amount, periodically notifying apparatus information related to the information processing apparatuses belonging to the second group and the resource amounts of the plurality of resources to be collected by the second information processing apparatus to the first information processing apparatus.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention.
Embodiments of a data collection method, an information processing apparatus, and a distributed processing system, which are disclosed in of this application, will be described below in detail with reference to figures. The embodiments is not limited to this.
[Configuration of Distributed Processing System]
The “group” described herein refers to a collection of the edge servers 1 each having a small delay in the network, and the edge servers 1 overlappingly belong to the group. For example, each edge server 1 belongs to a plurality of groups.
The “scarcity level” described herein refers to the extent to which a resource does not satisfy the request resource amount. For example, the “scarcity level” refers to a ratio of the edge servers that do not satisfy the request resource amount for the resource to all edge servers. The resource with high scarcity level represents the resource for which the number of edge servers that do not satisfy the request resource amount is larger than other resources. For the resource with high scarcity level, the number of edge servers that satisfy the request resource amount is small. For this reason, when periodically collecting the resource amount, the edge server 1 grasps server information related to the edge servers 1 out of the group that satisfy the request resource amount for the resource with scarcity level.
The distributed processing system 9 includes the plurality of edge servers 1 and a management server 2. The plurality of edge server 1 are interconnected via the network. The plurality of edge server 1 each are connected to the management server 2 via the network.
The management server 2 monitors loads of the plurality of edge servers 1 in the distributed processing system 9. For example, the management server 2 calculates the scarcity level of all resources collected from the edge server 1 every predetermined time. The management server 2 transmits the scarcity level of all resources to all edge servers 1 at a predetermined timing. The predetermined timing may be a timing at which the scarcity level of any of all resources changes, or a predetermined regular or irregular timing.
The edge server 1 includes a controller 10 and a storage unit 30.
The controller 10 corresponds to an electronic circuit such as a central processing unit (CPU). The controller 10 has an internal memory that stores a program prescribing various processing procedures and control data, and uses the program or the data to execute various processing. The controller 10 includes a reception unit 11, a distributed resource management unit 12, a previous search resource determination unit 13, a periodical notification unit 14, a resource search unit 15, a response unit 16, and a registration unit 17. In addition, the edge server 1 includes a data reception unit 18, a data and task management unit 19, a task deployment place determination unit 20, and a task execution unit 21. The data reception unit 18, the data and task management unit 19, the task deployment place determination unit 20, and the task execution unit 21 are included in a task scheduler.
The storage unit 30 is a semiconductor memory element such as a Random Access Memory (RAM) and a flash memory, or a storage device such as a hard disc and an optical disc. The storage unit 30 includes scarcity level information 31, request frequency information 32, resource value information 33, address information 34, request resource information 35, data information 36, and task information 37.
The scarcity level information 31 is information related to the scarcity level for each resource. For example, the scarcity level information 31 is information related to the average number of search hops requested to satisfy the request resource amount acquired from the scarcity level for a resource. For example, the scarcity level is a ratio of the edge servers that do not satisfy the request resource amount for the resource to all edge servers. Accordingly, as the scarcity level for the resource is higher, the average number of search hops requested to satisfy the request resource amount increases. On the contrary, as the scarcity level for the resource is lower, the average number of search hops requested to satisfy the request resource amount decreases. That is, the scarcity level information 31 applies information related to the average number of search hops as the information related to the scarcity level. An example of scarcity level information 31 will be described later.
The request frequency information 32 is information related to the request frequency for each resource. An example of request frequency information 32 will be described later.
The resource value information 33 is information related to resource values of the edge server 1 in the group and the edge server 1 out of the group. The resource value of the edge server 1 in the group is the resource values to all resources. The resource value of the edge server 1 out of the group is the resource value for the resource determined by convolution of the scarcity level information 31 and the request frequency information 32 for each resource. For example, convolution may be addition or multiplication. Hereinafter, convolution will be described as multiplication. An example of resource value information 33 will be described later.
The address information 34 is information related to addresses of the edge servers 1 in the group and addresses of the edge servers 1 out of the group. In the address information 34, in the case where the request resource is present out of the group when the request resource has depleted in the group, a flag indicating that the request resource is being searched is associated with the address. An example of address information 34 will be described later.
The request resource information 35 is information related to the resource (request resource) requested for each task. In the request resource information 35, the request resource requested by the task is associated with the resource usage amount. An example of request resource information 35 will be described later.
The data information 36 is information related to processing target data. An example of data information 36 will be described later.
The task information 37 is information related to tasks. For example, the task information 37 is information that associates a task to be executed with processing target data processed by the task. An example of task information 37 will be described later.
The reception unit 11 receives various main signal messages from other edge servers 1 and the management server 2.
The distributed resource management unit 12 manages distributed resources. The distributed resource management unit 12 transmits a control message to each of the previous search resource determination unit 13, the periodical notification unit 14, the resource search unit 15, the response unit 16, the registration unit 17, and the task deployment place determination unit 20 to respective predetermined timings.
The previous search resource determination unit 13 refers to the scarcity level information 31 and the request frequency information 32, and determines a resource to be previously searched. For example, the previous search resource determination unit 13 converts the scarcity level for all resources transmitted from the management server 2 into the scarcity level information 31. For example, for each resource, the previous search resource determination unit 13 converts the ratio of the edge servers that do not satisfy the request resource amount to all edge servers into the average number of search hops requested to satisfy the request resource amount. For each resource, the previous search resource determination unit 13 sets the average number of search hops as the information related to the scarcity level to the scarcity level information 31. For each resource, the previous search resource determination unit 13 multiplies the scarcity level information 31 by the request frequency information 32, and selects a predetermined number of resources from the top of multiplied values. The previous search resource determination unit 13 determines whether or not the ranking of the selected resources has changed. When the ranking of the selected resources has changed, the previous search resource determination unit 13 transmits a previous search request including information related to the selected previous search resources to the edge servers 1 in the group. The “previous search request” described herein refers to a search request previously requested before the resource becomes depleted. For example, the previous search resource determination unit 13 determines the resource that tends to become depleted, and requests the edge servers 1 in the group to search the determined resource before depleted, at periodic notification. When the ranking of the selected resources has not changed, the previous search resource determination unit 13 has already transmitted the search request to the edge servers 1 in the group and thus, does not transmit the previous search request.
The determination of the previous search resource will be described below with reference to
The lower diagram illustrates the average number of search hops requested to satisfy the request resource amount for each resource. As the scarcity level for the resource is higher, the average number of search hops becomes larger. It is due to that when the number of edge servers that satisfy the request resource amount is small, the average number of search hops requested to satisfy the request resource amount is small, taking much time for search. Similarly, as the scarcity level for the resource is lower, the average number of search hops is smaller. It is due to that when the number of edge servers that satisfy the request resource amount is large, the average number of search hops requested to satisfy the request resource amount is small, taking less time for search. Accordingly, the average number of search hops may be applied as the information related to the scarcity level.
Returning to
The periodical notification unit 14 periodically notifies a periodical notification message to the edge servers 1 in the group.
For example, the periodical notification unit 14 acquires resource values of the edge servers 1 in the group for the previous search resource from the resource value information 33 from a predetermined timing. The periodical notification unit 14 determines whether or not the edge server 1 that satisfies the request resource amount is present for the previous search resource. If the edge server 1 that satisfies the request resource amount is present, the periodical notification unit 14 acquires an address the edge server 1 from the address information 34. The periodical notification unit 14 transmits the periodical notification message including an address of the edge server 1 that satisfies the request resource amount for the previous search resource in addition to the resource value information related to all resources of the own edge server 1, to the edge servers 1 in the group. If the edge server 1 that satisfies the request resource amount is absent, the periodical notification unit 14 transmits the periodical notification message including only the resource value information related to all resources of the own edge server 1, to the edge servers 1 in the group.
If the periodical notification unit 14 receives a below-mentioned resource search request from the edge server 1 out of the group, the periodical notification unit 14 executes following processing. The periodical notification unit 14 acquires the resource value of the resource requested for resource search request from the resource value information 33, and transmits the periodical notification message including the own resource value information and result information to notification destinations that are the edge servers 1 out of the group. The “resource search request” refers to a resource request that requests the edge servers out of the group to search the resource depleted in the edge servers 1 in the group.
When the resource becomes depleted, the resource search unit 15 searches for the depleted resource from other edge servers 1 that satisfy the request resource amount. For example, the resource search unit 15 executes following processing for each resource. For the resource, the resource search unit 15 acquires resource values of the edge servers 1 in the group from the resource value information 33. For the resource, the resource search unit 15 sums the resource values acquired from the edge servers 1 in the group. If the sum exceeds a threshold value, the resource search unit 15 determines that the resource has depleted. The resource search unit 15 determines whether or not the edge server 1 that satisfies the request resource amount of this resource is present out of the group, based on the address information 34. If the edge server 1 that satisfies the request resource amount of this resource is present out of the group, the resource search unit 15 transmits the resource search request for this resource to the concerned edge server 1. If the edge server 1 that satisfies the request resource amount of this resource is absent out of the group, the resource search unit 15 transmits the resource search request for this resource to the edge server 1 having a small delay in the network, which is determined from topology information.
When receiving the resource search request, the response unit 16 responds to the request. For example, the response unit 16 acquires the resource value of the requested resource from the resource value information 33. If the own edge server 1 satisfies the request resource amount of the resource, the response unit 16 transmits a periodical notification request (periodical notification message) including the resource value of the requested resource to the registration unit 17. If the own edge server 1 does not satisfy the request resource amount of the resource, and other edge servers 1 satisfy the request resource amount of the resource, the response unit 16 transfers the resource search request to the other edge servers 1 concerned. If the own edge server 1 does not satisfy the request resource amount of the resource, and other edge servers 1 do not satisfy the request resource amount of the resource, the response unit 16 transfers a re-search request to a re-search request source.
When receiving the re-search request, the response unit 16 responds to the request. For example, the response unit 16 refers to the address information 34, and selects the second edge server 1 next to the edge server 1 to which the resource search request is transmitted most recently. The response unit 16 transmits the resource search request to the selected edge server 1.
When receiving the previous search request, the registration unit 17 registers information related to the resource included in the previous search request, in a column of the request resource in the address information 34. The registration unit 17 transfers the previous search request to the edge servers 1 in a previous search request range (TTL: Time To Live) according to the number of the edge servers 1 in the group. The previous search request range described herein may be represented as any number of hops. As an example, when two edge servers 1 are present in the group, the number of hops may be set to one. When six edge servers 1 are present in the group, the number of hops may be set to five. For example, using the previous search request range, the registration unit 17 transfers the previous search request to all edge servers 1 in the group.
When receiving the periodical notification message, the registration unit 17 registers the resource value of the resource of the edge server 1 that is the notification source in the periodical notification messages, in the resource value information 33. If the periodical notification message includes information out of the group, the registration unit 17 registers the address and the type of the previous search resource in the information out of the group, in the address information 34.
The data reception unit 18 receives data from an IoT (Internet of Things) device. The IoT device is, for example, portable communication equipment and however, may be any device connected via the Internet to enable monitoring and control.
The data and task management unit 19 manages data and tasks. For example, the data and task management unit 19 registers data received by the data reception unit 18 as the processing target data in the data information 36. The data and task management unit 19 associates a task to be executed with the processing target data to manage the task. The data and task management unit 19 manages the resource requested for each task together with the resource usage amount.
The task deployment place determination unit 20 determines the place where the task is deployed. For example, the task deployment place determination unit 20 acquires the resource usage amount of the resource requested by the task from the request resource information 35. The task deployment place determination unit 20 refers to the resource value information 33, and if the place (address) that satisfies the request for the resource is present, deploys the task at this place. If the place that satisfies the request for the resource is absent, the task deployment place determination unit 20 puts the task into a waiting queue.
The task execution unit 21 executes the task deployed by the task deployment place determination unit 20.
[Description of Periodical Notification]
Here, periodical notification will be described with reference to
As illustrated in
After that, if the resource with high scarcity level becomes depleted in the group α, the resource search unit 15 of the edge server A transmits the resource search request for this resource to the edge server C out of the group. Thereby, even if the resource becomes depleted in the group, the resource search unit 15 may request the resource search to the edge server 1 out of the group expected to satisfy the request resource amount of the resource, thereby reducing search time.
[Flow of Data Collection Processing]
In the edge server a, the reception unit 11 receives the scarcity level from the management server 2. The previous search resource determination unit 13 determines the previous search resource based on the scarcity level information 31 converted from the scarcity level and the request frequency information 32 (<1>). Then, the previous search resource determination unit 13 transmits the previous search request to the edge server b in the group α (<2-1>).
In the edge server b, when receiving the previous search request, the registration unit 17 registers information related to the resource included in the previous search request, in the address information 34 (<2-2>).
In the edge server c, the periodical notification unit 14 performs the periodical notification to the edge server b in the same group β at a time predetermined by a periodical timer (<3-1>, <3-2>). For example, the periodical notification unit 14 transmits a periodical notification message including the resource value information related to all resources of the own edge server 1 to the edge server b.
In the edge server b, when receiving the periodical notification message, the registration unit 17 registers the resource value information related to the edge server c that is the notification source in the group β (<3-3>). The periodical notification unit 14 performs periodical notification to the edge server a in the same group α at a time predetermined by a periodical timer (<5-1>, <5-2>). For example, if the edge server 1 that satisfies the request resource amount for the previous search resource is present, the periodical notification unit 14 transmits the periodical notification message including an address of the edge server 1 in addition to the resource value information related to all resources of the own edge server 1, to the edge server a. Here, if the edge server c is present as the edge server 1 that satisfies the request resource amount for the previous search resource, the periodical notification unit 14 transmits the periodical notification message further including the address of the edge server c and the type of the previous search resource to the edge server a.
In the edge server a, when receiving the periodical notification message, the registration unit 17 registers resource value information related to the edge server b that is the notification source in the group α (<5-3>). In addition, the registration unit 17 registers the address of the edge server c out of the group and the type of the resource in the address information 34 (<6>).
In the edge server a, it is assumed that the resource in the group α exceeds a threshold value (<7>). Then, the resource search unit 15 determines presence or absence of the address out of the group that satisfies the request resource amount of the resource exceeding the threshold value (<8>). If the address out of the group that satisfies the request resource amount of the resource exceeding the threshold value is present, the resource search unit 15 transmits the resource search request to the edge server c at the address (<9-1>).
In the edge server c, when receiving the resource search request, the response unit 16 determines whether or not the own edge server 1 satisfies the resource amount of the requested request resource (<9-2>). If the own edge server 1 satisfies the resource amount of the requested the request resource, the response unit 16 transmits the periodical notification request (periodical notification message) to the registration unit 17 (<10-1>). The registration unit 17 registers the resource amount of the requested request resource of the edge server c that is the notification source in the resource value information 33, and registers the request resource and an address of the request source in the address information 34 (<10-2>). After that, the periodical notification unit 14 transmits a periodical notification message including resource value information and result information of the own edge server 1 registered by the registration unit 17 to the edge server a out of the group indicated by the address of the request source requested for resource search request. If the own edge server 1 does not satisfy the resource amount of the requested request resource, and other edge servers 1 satisfy the resource amount of the requested request resource, the response unit 16 transfers the resource search request to the other edge servers 1 concerned (<12>). If the own edge server 1 does not satisfy the resource amount of the requested request resource, and other edge servers 1 do not satisfy the resource amount of the requested request resource, the response unit 16 transfers the re-search request to the edge server a that is the resource search request source (<13>).
In the edge server a, if an address out of the group that satisfies the request resource amount of the resource exceeding a threshold value is absent, the resource search unit 15 transmits the resource search request to the edge server 1 having a small delay in the network acquired from the topology information (<14>).
[Sequence of Data Collection Processing]
When receiving the scarcity level from the management server 2 (S11), the edge server a determines whether or not the scarcity level has changed (S12). If the scarcity level does has not changed (S12; No), the edge server a does not determine the previous search resource. On the contrary, if the scarcity level has changed (S12; Yes), the edge server a determines the previous search resource (S13).
The edge server a transmits the previous search request including information related to the determined previous search resource to the edge servers b, c in the group α (S14, S15).
It is assumed as follows. The edge server b receives resource value information related to all resources of the edge server d from the edge server d in the same group β. The resource value information received from the edge server d does not satisfy the request of the previous search resource. The edge server c receives resource value information related to all resources of the edge server e from the edge server e in the same group γ. The resource value information received from the edge server e satisfies the request of the previous search resource.
Under such situation, the edge server b determines whether or not the edge server that satisfies the request of the previous search resource transmitted from the edge server a is present in the group β (S16). Since the edge server that satisfies the request of the previous search resource is not present in the group β, the edge server b transmits a periodical notification message including only resource value information related to all resources of the edge server b to the edge server a (S17).
The edge server c determines whether or not the edge server that satisfies the request of the previous search resource transmitted from the edge server a is present in the group γ (S16). Since the edge server that satisfies the request of the previous search resource is present in the group γ, the edge server c transmits a periodical notification message including an address of the edge server e that satisfies the request of the previous search resource in addition to the resource value information related to all resources of the edge server c, to the edge server a (S18).
After that, when the resource value of the previous search resource in the group α exceeds a threshold value, the edge server a transmits the resource search request expected to satisfy the request of the previous search resource to the edge server e (S19, S20). Thereby, even if the resource becomes depleted in the group α, the edge server a may request the resource search to the edge server e out of the group, which is expected to satisfy the request resource amount of the resource, to reduce search time.
When succeeding the resource search in the edge server e, the edge server a may add the edge server e to the group α to extend the group a (S21, S22). Thereby, after the extension of the group α, even if the edge server a does not request the resource search out of the group, the edge server a may directly search the resource in the group to reduce search time.
When failing the resource search for the edge server e, the edge server a transmits the re-search request of the previous search resource to the edge server f having a small delay in the network acquired from topology information (S23 to S25).
When succeeding the resource search for the edge server f, the edge server a may add the edge server f to the group α to extend the group α (S26, S27). Thereby, after the extension of the group α, even if the edge server a does not request the resource search out of the group, the edge server a may directly search the resource in the group, to reduce search time.
[Example of Scarcity Level Information]
[Example of Request Frequency Information]
[Example of Resource Value Information]
[Example of Address Information]
As an example, when the address is “aaa”, “0” is set to the group flag, “all” is set to the request resource, “GPU” is set to the previous search resource, “0” is set to the search flag, and “t1” is set to the delay. When the address is “ccc”, “1” is set to the group flag, “memory” is set to the request resource, “Null” is set to the previous search resource, “0” is set to the search flag, and “t3” is set to the delay. When the address is “ddd”, “1” is set to the group flag, “GPU” is set to the request resource, “Null” is set to the previous search resource, “1” is set to the search flag, and “t4” is set to the delay.
[Example of Request Resource Information]
[Example of Data Information]
[Example of Task Information]
[Example of Periodical Notification]
An example of the periodical notification message transmitted by the periodical notification unit 14 will be described with reference to
As an example, when the notification flag is “0”, “CPU” is set to the resource, “20%” is set to the resource usage amount, and “Null” is set to the address of edge server in group. When the notification flag is “1”, “GPU” is set to the resource, “Null” is set to the resource usage amount, and “xxx” is set to the address of edge server in group.
[Example of Resource Search Request]
An example of the resource search request message transmitted by the resource search unit 15 is described with reference to
[Example of Previous Search Request]
An example of the previous search request message transmitted by the previous search resource determination unit 13 will be described below with reference to
[Example of Re-Search Request]
An example of the re-search request message transmitted by the response unit 16 is described below with reference to
[Flow Chart of Previous Search Resource Determination Processing]
As illustrated in
The previous search resource determination unit 13 multiplies information related to the request frequency by information related to the scarcity level for each resource to calculate the ranking (S112). For example, the previous search resource determination unit 13 multiplies the number of resource requests by the average number of search hops for each resource, and ranks the resources based on the calculated multiplied values.
The previous search resource determination unit 13 selects X resources from the top of the calculated values (S113). X may be a predetermined number of units.
The previous search resource determination unit 13 determines whether or not the ranking of the selected resources has changed (S114). If the previous search resource determination unit 13 determines that the ranking has not changed (S114; No), the previous search resource determination unit 13 finishes previous search resource determination processing.
On the contrary, if the previous search resource determination unit 13 determines that the ranking has changed (S114; Yes), the previous search resource determination unit 13 transmits the previous search request to all edge servers 1 in the group (S115). For example, the previous search resource determination unit 13 refers to the address information 34, sets the selected resources as previous search resources, and transmits the previous search request including information related to the previous search resource to the edge servers 1 indicated by addresses with the group flag in the group. The previous search resource determination unit 13 finishes the previous search resource determination processing.
[Flow Chart of Periodical Notification Processing]
As illustrated in
The periodical notification unit 14 determines whether or not the notification destination is the ES in the group (S122). If the periodical notification unit 14 determines that the notification destination is the edge server (ES) 1 in the group (S122; Yes), the periodical notification unit 14 acquires the previous search resource for the notification destination in the group from the address information 34 (S123). The periodical notification unit 14 acquires the resource values of the edge servers 1 in the group for the previous search resource from the resource value information 33 (S124).
The periodical notification unit 14 determines whether or not the edge server 1 that satisfies the request resource amount is present (S125). If the periodical notification unit 14 determines that the edge server 1 that satisfies the request resource amount is present (S125; Yes), the periodical notification unit 14 acquires an address of the edge server 1 that satisfies the request resource amount from the address information 34 (S126).
The periodical notification unit 14 describes the resource value information related to all resources of the own edge server 1 and the acquired address in the periodical notification message, and transmits the message to the edge server 1 that is the notification destination (S127). The periodical notification unit 14 finishes periodical notification processing.
On the contrary, if the periodical notification unit 14 determines that the edge server 1 that satisfies the request resource amount is absent (S125; No), the periodical notification unit 14 executes following processing. The periodical notification unit 14 acquires resource value information related to all resources of the own edge server 1 from the resource value information 33. The periodical notification unit 14 describes the resource value information related to all resources of the own edge server 1 in the periodical notification message, and transmits the message to the edge server 1 that is the notification destination (S128). The periodical notification unit 14 finishes the periodical notification processing.
In S122, the periodical notification unit 14 determines that the notification destination is not the edge server (ES) 1 in the group (S122; No), the periodical notification unit 14 acquires the request resource for an address of the notification destination from the address information 34 (S129). That is, the resource search unit 15 of the own edge server 1 receives the resource search request, and satisfies the request resource amount of the request resource. As an example of the notification destination, in
The periodical notification unit 14 acquires the resource value of the request resource of the own edge server 1 from the resource value information 33 (S130). The periodical notification unit 14 describes resource value information related to the own edge server 1 in the periodical notification message, and transmits the message to the notification destination that is the edge servers 1 out of the group (S131). The periodical notification unit 14 finishes the periodical notification processing.
[Flow Chart of Resource Search Processing]
As illustrated in
The resource search unit 15 determines whether or not the sum exceeds a threshold value (S143). If the resource search unit 15 determines that the sum does not exceed the threshold value (S143; No), the resource search unit 15 does not search the resource. The resource search unit 15 proceeds to S147.
On the contrary, if the resource search unit 15 determines that the sum exceeds the threshold value (S143; Yes), the resource search unit 15 determines whether or not an entry of the edge server 1 out of the group for the selected resource is present based on the address information 34 (S144). If the resource search unit 15 determines that the entry of the edge server 1 out of the group for the selected resource is present (S144; Yes), the resource search unit 15 transmits the resource search request designating the request resource to the edge server 1 concerned (S145). The resource search unit 15 proceeds to S147.
On the contrary, if the resource search unit 15 determines that the entry of the edge server 1 out of the group for the selected resource is absent (S144; No), the resource search unit 15 selects the edge server 1 having a small delay from the address information 34, and transmits the resource search request designating the request resource to the selected edge server 1 (S146). At this time, the resource search unit 15 sets “1”, which represents that the resource is being searched, to the search flag corresponding to the address of the selected edge server 1 in the address information 34, and sets the request resource in the request resource column. The resource search unit 15 proceeds to S147.
In S147, the resource search unit 15 determines whether or not all resources have been selected (S147). If the resource search unit 15 determines that all resources have not been selected (S147; No), the resource search unit 15 proceeds to S141 to select a next resource.
On the contrary, if the resource search unit 15 determines that all resources have been selected (S147; Yes), the resource search unit 15 finishes resource search processing.
[Flow Chart of Response Processing]
As illustrated in
The response unit 16 determines whether or not the own edge server 1 satisfies the request resource usage amount of the request resource (S153). If the response unit 16 determines that the own edge server 1 satisfies the request resource usage amount of the request resource (S153; Yes), the response unit 16 determines whether or not the request source is not a periodical notification destination (S154). If the response unit 16 determines that request source is the periodical notification destination (S154; No), the response unit 16 finishes response processing.
On the contrary, if the response unit 16 determines that request source is not the periodical notification destination (S154; Yes), the response unit 16 periodical notification-registers the request resource to the request source (S155). For example, the response unit 16 transmits the periodical notification request including the resource value of the request resource to the registration unit 17. Then, the response unit 16 finishes the response processing.
In S153, if the response unit 16 determines that the own edge server 1 does not satisfy the request resource usage amount of the request resource (S153; No), the response unit 16 determines whether or not other edge server 1 satisfies the request resource amount of the request resource based on the resource value information 33 (S156). If the response unit 16 determines that other edge server 1 satisfies the request resource amount of the request resource (S156; Yes), the response unit 16 transfers the resource search request to the edge server 1 that satisfies the request resource amount (S157). Then, the response unit 16 finishes the response processing.
On the contrary, if the response unit 16 determines that other edge servers 1 do not satisfy the request resource amount of the request resource (S156; No), the response unit 16 transfers the re-search request to the resource search request source (S158). Then, the response unit 16 finishes the response processing.
As illustrated in
The response unit 16 transmits the resource search request to the selected edge server 1 (S163). Then, the response unit 16 finishes the response processing.
[Flow Chart of Registration Processing]
As illustrated in
The registration unit 17 determines whether or not the previous search request range (TTL) is larger than 0 (S173). If the registration unit 17 determines that TTL is larger than 0 (S173; Yes), the registration unit 17 transmits the previous search request to all edge servers 1 in the group (S174). The registration unit 17 finished registration processing.
On the contrary, if registration unit 17 determines that the TTL is not larger than 0 (S173; No), the registration unit 17 finishes the registration processing without transferring the previous search request.
As illustrated in
On the contrary, if the registration unit 17 determines that the resource is being searched (S182; No), the registration unit 17 sets a search flag to “0” indicating that the resource is not being searched, for the entry searched in the address information 34, and sets the request resource to Null (S183). The registration unit 17 proceeds to S184.
In S184, the registration unit 17 registers the resource value of the notification source of the periodical notification in the periodical notification message, in the resource value information 33 (S184). The registration unit 17 determines whether or not information out of group is present in the periodical notification message (S185). If the registration unit 17 determines that the information out of group is present (S185; Yes), the registration unit 17 registers the address included in the information out of group and the type of the previous search resource in the address information 34 (S186). Then, the registration unit 17 finishes the registration processing.
On the contrary, if the registration unit 17 determines that the information out of group is absent (S185; No), the registration unit 17 finishes the registration processing.
[Flow Chart of Task Scheduler Processing]
As illustrated in
The task deployment place determination unit 20 acquires the resource value of the resource requested by the task to be executed, from the resource value information 33 (S193).
The task deployment place determination unit 20 determines whether or not the resource that satisfies the request is present (S194). If the task deployment place determination unit 20 determines that the resource that satisfies the request is present (S194; Yes), the task deployment place determination unit 20 deploys the task to be executed at the address of the edge server 1 having the resource that satisfies the request (S195). The task execution unit 21 executes the task in the deployed edge server 1 (S196). The task execution unit 21 finishes task scheduler processing.
On the contrary, if the task deployment place determination unit 20 determines that the resource that satisfies the request is absent (S194; No), the task deployment place determination unit 20 puts the task to be executed into a waiting queue (S197). The task deployment place determination unit 20 finishes the task scheduler processing.
A new edge server 1 may participate in the distributed processing system 9. In this case, for example, the new edge server 1 may transmit a participation request to the management server 2. For example, the management server 2 that accepted the participation request notifies addresses of the edge server 1 having a small delay in the network and the new edge server 1 to the new edge server 1. The new edge server 1 determines the edge servers 1 at the notified addresses as a group, and request periodical notification to the edge servers 1 in the group. The management server 2 informs the edge servers 1 in the group that the new edge server 1 is included in the group consisting of the new edge server 1 and the edge server 1 having a small delay in the network. The edge servers 1 in the group requests periodical notification to the new edge server 1. The management server 2 informs a change in the entire system after the participation of the new edge server 1, to the edge servers 1 in the system. Thereby, the distributed processing system 9 enables smooth participation of the new edge server 1.
The management server 2 according to Embodiment 1 may be offered in the form of cloud.
According to Embodiment 1, the management server 2 monitors the load of the plurality of edge servers 1 in the distributed processing system 9. However, in place of the management server 2, each edge server 1 may autonomously monitor the load in a distributed manner.
According to Embodiment 1, the first edge server 1 narrows down the plurality of resources to be collected to a predetermined resource that takes much time to search the information processing apparatus that satisfies the request resource amount. The first edge server 1 notifies information related to the narrowed predetermined resource to the second edge server 1 belonging to the first group of the first edge server 1. The second edge server 1 periodically collects the resource amounts of the plurality of resources to be collected from the edge servers 1 belonging to a second group other than the first group, to which the second edge server 1 belongs. The second edge server 1 acquires the resource amount of the predetermined resource from the edge servers 1 belonging to the second group at a predetermined timing, based on the collected information. If the resource amount of a predetermined resource satisfies a predefined resource amount, the second edge server 1 adds apparatus information related to the edge server 1 to the resource amounts of the plurality of resources to be collected in the second edge server 1, and periodically notifies the information to the first edge server 1. With such configuration, even if the predetermined resource becomes depleted in the first group, the first edge server 1 may reduce the time requested to search the edge server 1 that satisfies the request resource amount of the predetermined resource. The first edge server 1 may suppress the number of messages requested for searching the predetermined resource.
In Embodiment 1, the resource amount of the predetermined resource of all edge servers 1 in the first group is satisfied, the first edge server 1 executes following processing. The first edge server 1 searches the predetermined resource for the edge servers 1 included in the second group, which is expected to satisfy the resource amount of the predetermined resource. With such configuration, using resource information related to the group (second group) to which the own edge server does not belong, the first edge server 1 searches the resource that does not satisfy the resource amount in the group. Thereby, the first edge server 1 may search the predetermined resource once to suppress the number of messages.
In Embodiment 1, using the number of the edge servers 1 that do not satisfy the request resource amount for each type of the resource, the first edge server 1 calculates the average number of hops requested to search the edge server 1 that satisfies the request resource amount. The first edge server 1 acquires the request frequency of the resource for each type of resource. The first edge server 1 convolutes the number of calculated search hops and the acquired request frequency for each type of resource. Using resultant values acquired by convolution for each type pf resource, the first edge server 1 narrows down to the predetermined resource. With such configuration, the first edge server 1 may narrow down to the predetermined resource that easily becomes depleted, thereby previously searching the predetermined resource to reduce the size of the message at periodical collection.
The edge server 1 according to Embodiment 1 transfers the previous search request to the edge server 1 in the previous search request range (TTL) corresponding to the number of the edge servers 1 in the group. For example, using the previous search request range, the edge server 1 transfers the previous search request to all edge servers 1 in the group. For example, the previous search request range is represented by the number of hops. For example, when the number of edge servers 1 in the group is two, the number of hops is set to 1. However, the edge server 1 is not limited to this, and may use the previous search request range to transfer the previous search request to the edge servers 1 in the group as well as the edge servers 1 out of the group. For example, the previous search request range may be determined depending on the number of edge servers in the system or the number of massages.
Thus, the case where an edge server 1 according to Embodiment 2 uses the previous search request range to transfer the previous search request to the edge servers 1 in the group as well as the edge servers 1 out of the group will be described below.
The configuration of the edge server 1 according to Embodiment 2 is the same as the configuration of the edge server 1 according to Embodiment 1 in
[Flow of Data Collection Processing]
In the edge server a, the previous search resource determination unit 13 transmits the previous search request to the edge server b in the group α. The previous search request include resource information and TTL of “2”.
In the edge server b, when receiving the previous search request, the registration unit 17 registers the resource information included in the previous search request, in the address information 34. In addition, since TTL included in the previous search request is “2”, the registration unit 17 decrements the value of TTL. The registration unit 17 transfers the previous search request to the edge server c randomly selected in the group β (<21>). The previous search request includes resource information and TTL of “1”.
In the edge server c, when receiving the previous search request, the registration unit 17 registers the resource information included in the previous search request, in the address information 34. In addition, since TTL included in the previous search request is “1”, the registration unit 17 decrements the value of TTL. Then, since TTL becomes 0, the registration unit 17 stops the transfer of the previous search request (<22>).
In the edge server c, when receiving the periodical notification message, the registration unit 17 registers resource value information related to the edge server d that is the notification source in the group γ. The periodical notification unit 14 performs periodical notification to the edge server b in the same group β at a time predetermined by a periodical timer (<23>). For example, if the edge server 1 that satisfies the request resource amount for the previous search resource is present, the periodical notification unit 14 transmits a periodical notification message including an address of this edge server 1 in addition to the resource value information related to all resources of the own edge server 1, to the edge server b. Here, if the edge server d is present as the edge server 1 that satisfies the request resource amount for the previous search resource, the periodical notification unit 14 transmits the periodical notification message further including the address of the edge server d to the edge server b.
In the edge server b, when receiving the periodical notification message, the registration unit 17 registers resource value information related to the edge server c that is the notification source in the group β. The periodical notification unit 14 performs periodical notification to the edge server a in the same group α at a time predetermined by a periodical timer (<24>). For example, if the edge server 1 that satisfies the request resource amount for the previous search resource is present, the periodical notification unit 14 transmits a periodical notification message including an address of this edge server 1 in addition to the resource value information related to all resources of the own edge server 1, to the edge server a. Here, if the edge server d is present as the edge server 1 that satisfies the request resource amount for the previous search resource, the periodical notification unit 14 transmits the periodical notification message further including the address of the edge server d to the edge server a.
In the edge server a, when receiving the periodical notification message, the registration unit 17 registers resource value information related to the edge server b that is the notification source in the group α. In addition, if the address of the edge server d is added to the periodical notification message, the registration unit 17 registers the address of the edge server d out of the group and the type of the resource in the address information 34.
In the edge server a, it is assumed that a resource in the group a exceeds a threshold value. Then, the resource search unit 15 determines whether or not an address out of the group that satisfies the request resource amount of the resource exceeding the threshold value is present. If the address out of the group that satisfies the request resource amount of the resource exceeding the threshold value is present, the resource search unit 15 transmits the resource search request to the edge server c at the address. Here, if the edge server d satisfies the request resource amount for the previous search resource, the edge server a directly transmits the resource search request to the edge server d (<25>).
In Embodiment 2, the previous search request range is determined depending on the number of edge servers in the system or the number of messages. However, the previous search request range is not limited to this, and may be determined from the average number of search hops indicated in the scarcity level information 31. It is due to that the average number of search hops is the average number of hops requested to satisfy the request resource amount in searching the request resource amount of the resource.
According to Embodiment 2, the edge server 1 may recognize the usage state of the previous search resource in the edge server 1 deriving in the group as well as the edge server 1 out of the group. As a result, even if the previous search resource becomes depleted in the group, the edge server 1 may reduce the time requested to search the edge server 1 that satisfies the request resource amount of the previous search resource. The edge server 1 may suppress the number of messages requested for searching the previous search resource.
In Embodiments 1 and 2, when the resource in the group exceeds the threshold value, the resource search unit 15 determines whether or not the edge server 1 that satisfies the request resource amount of the exceeding resource (search resource) is present out of the group. If the search resource is absent out of the group, the resource search unit 15 transmits the resource search request for the search resource to the edge server 1 having a small delay in the network, which is found based on topology information. However, the resource search unit 15 is not limited to this, and may transmit the resource search request for the search resource to randomly selected one of the edge servers 1 in the group. Further, in the edge server 1 that received the resource search request, if the own edge server 1 does not satisfy the request resource amount of the search resource, and other edge servers 1 do not satisfy the request resource amount of the search resource, the response unit 16 executes following processing. The response unit 16 does not transfer the re-search request to the resource search request source, but randomly selects one of other edge servers 1, and transmits the resource search request for the search resource to the selected edge server 1. This may reduce the number of messages of the re-search request transmitted by the edge server 1 that received the resource search request when the search resource exceeds the threshold value.
[Others]
According to Embodiments 1 and 2, each components of the illustrated devices is not necessarily configured physically as illustrated. For example, the specific distribution and integration modes of the devices are not limited to the illustrated modes, and whole or a part of the devices may be functionally or physically distributed or integrated in any unit depending on various loads and usage states. For example, the previous search resource determination unit 13, the periodical notification unit 14, the resource search unit 15, the response unit 16, and the registration unit 17 may be integrated into the distributed resource management unit 12. For example, the data reception unit 18, the data and task management unit 19, the task deployment place determination unit 20, and the task execution unit 21 may be integrated into a task scheduler unit. For example, the registration unit 17 may be distributed to a processing unit in the case of receiving the previous search request and a processing unit in the case of receiving the periodical notification message. For example, the response unit 16 may be distributed to a processing unit in the case of receiving the resource search request and a processing unit in the case of receiving the re-search request. The storage unit 30 may be connected as an external device of the edge server 1 via a communication network.
Various processing described in Embodiments may be implemented by causing a computer such as a personal computer or a workstation to execute a previously prepared program. An example of the computer that executes a data collection system performing the same functions as the edge server 1 illustrated in
As illustrated in
The drive device 213 is, for example, a device for a removable disc 211. The HDD 205 stores a data collection program 205a and data collection related information 205b.
The CPU 203 reads the data collection program 205a, expands the program in the memory 201, and executes the program as a process. Such process corresponds to each function unit of the edge server 1. The data collection related information 205b corresponds to information stored in the storage unit 30 of the edge server 1. For example, the removable disc 211 stores various information including the data collection program 205a.
The data collection program 205a is not necessarily stored in the HDD 205 in advance. For example, the program may be stored in any suitable “portable physical medium” such as a flexible disc (FD), a CD-ROM (Compact Disk Read Only Memory), a DVD (Digital Video Disk), a magneto-optical disc, and IC card, which is inserted into the computer 200. The computer 200 may read the data collection program 205a from the portable physical medium and execute the data collection program 205a.
All examples and conditional language provided herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2017-220390 | Nov 2017 | JP | national |