Service addressing in distributed environment
First Claim
Patent Images
1. A method comprising:
- generating a service querying request, the service querying request including a querying condition;
acquiring a first server address list of a target service corresponding to the querying condition;
presetting a failure database, the failure database storing an association relationship between one or more failed server addresses and corresponding statistical numbers of failure times, the corresponding statistical numbers of failure times being based on types of failure and used to make statistics on a number of failure times of the one or more failed server addresses within a preset time period;
acquiring a failed server address list of a preset number of failed server addresses selected from the one or more failed addresses that have top rankings based on respective statistical numbers of failure times of the one or more failed addresses, the preset number representing a maximum number of failed servers to be isolated, the maximum number based on a demand associated with the querying condition and being less than or equal to an actual number of failed servers;
deleting the failed server address list from the first server address list to obtain a second server address list;
selecting a target server address from the second server address list; and
initiating an invocation of the target service to the target server address.
3 Assignments
0 Petitions
Accused Products
Abstract
An example service addressing method in a distributed environment includes: generating a service querying request, the service querying request including a querying condition; acquiring a first server address list of a target service corresponding to the querying condition; acquiring a failed server address list; deleting the failed server address list from the first server address list to obtain a second server address list; selecting a target server address from the second server address list; and initiating an invocation of the target service to the target server address. The techniques of the present disclosure improve the efficiency of the service invocation.
-
Citations
20 Claims
-
1. A method comprising:
-
generating a service querying request, the service querying request including a querying condition; acquiring a first server address list of a target service corresponding to the querying condition; presetting a failure database, the failure database storing an association relationship between one or more failed server addresses and corresponding statistical numbers of failure times, the corresponding statistical numbers of failure times being based on types of failure and used to make statistics on a number of failure times of the one or more failed server addresses within a preset time period; acquiring a failed server address list of a preset number of failed server addresses selected from the one or more failed addresses that have top rankings based on respective statistical numbers of failure times of the one or more failed addresses, the preset number representing a maximum number of failed servers to be isolated, the maximum number based on a demand associated with the querying condition and being less than or equal to an actual number of failed servers; deleting the failed server address list from the first server address list to obtain a second server address list; selecting a target server address from the second server address list; and initiating an invocation of the target service to the target server address. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An apparatus comprising:
-
one or more processors; and memory communicatively coupled to the one or more processors, the memory storing a plurality of modules including; a request generating module that generates a service querying request, the service querying request including a querying condition; a first address acquiring module that acquires a first server address list of a target service corresponding to the querying condition; a database presetting module that presets a failure database, the failure database storing an association relationship between one or more failed server addresses and corresponding statistical numbers of failure times, the corresponding statistical numbers of failure times being based on types of failure and used to make statistics on a number of failure times of the one or more failed server addresses within a preset time period; a failure address acquiring module that acquires a failed server address list of a preset number of failed server addresses selected from the one or more failed addresses that have top rankings based on respective statistical numbers of failure times of the one or more failed addresses, the preset number representing a maximum number of failed servers to be isolated, the maximum number based on a demand associated with the querying condition and being less than or equal to an actual number of failed servers; a second address acquiring module that deletes the failed server address list from the first server address list to obtain a second server address list; an address selecting module that selects a target server address from the second server address list; and a service invoking module that initiates an invocation of the target service to the target server address. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. One or more memories having stored thereon computer-executable instructions that are executable by one or more processors to perform operations comprising:
-
generating a service querying request, the service querying request including a querying condition; acquiring a first server address list of a target service corresponding to the querying condition; presetting a failure database, the failure database storing an association relationship between one or more failed server addresses and corresponding statistical numbers of failure times, the corresponding statistical numbers of failure times being based on types of failure and used to make statistics on a number of failure times of the one or more failed server addresses within a preset time period; acquiring a failed server address list of a preset number of failed server addresses selected from the one or more failed addresses that have top rankings based on respective statistical numbers of failure times of the one or more failed addresses, the preset number representing a maximum number of failed servers to be isolated, the maximum number based on a demand associated with the querying condition and being less than or equal to an actual number of failed servers; deleting the failed server address list from the first server address list to obtain a second server address list; selecting a target server address from the second server address list; and initiating an invocation of the target service to the target server address. - View Dependent Claims (19, 20)
-
Specification