The Service Location Server (SLS) commands enable users to search for providing hosts according to different criteria.
The SLS will only return the top n responses to a query, where n varies with server load. Users may further limit the number of responses using the "-l" option. To get the other responses, use "-s 100 -l 100" to skip the first 100 rows and get rows 101 to 200, "-s 200 -l 100" to get rows 201 to 300, etc.
tycoon sls query_cost_efficiency
resource_name
Query the Service Location Service for the most cost efficient resources. The printed values are the address of the auctioneer, the capacity to price ratio, the capacity, and the price. The capacity measured according to the resource type (e.g., CPU cycles for CPU, bytes for memory and disk, etc.). The price is the average price over past hour per second of usage. For example, a price of 3.17e-08 (1 / (60*60*24*365)) means that a year of usage currently costs 1 credit.
Note that the SLS may limit the number of responses. See "tycoon sls -h" for information on how to control this.
tycoon sls query_avail
Query the Service Location Service for the services that have the highest availability. Availability is calculated as the amount of time that a service is registered with the SLS divided by the time from the service's first registration until now.
Note that the SLS may limit the number of responses. See "tycoon sls -h" for information on how to control this.
tycoon sls query_sql
query
Query the Service Location Service (SLS) for available services using an arbitrary SQL selection statement. The "tycoon_auctioneer" table contains one row for each auctioneer with each column containing information about that auctioneer.
Omit the use of "select" and "limit" in the query. For example, the following is valid:
$ tycoon sls query_sql "address from tycoon_auctioneer"
The following are not valid:
$ tycoon sls query_sql "address from tycoon_auctioneer limit 10" $ tycoon sls query_sql "select address from tycoon_auctioneer"
See the SQLite documentation for more details on the syntax. Get the SLS's schema by querying as follows:
$ tycoon sls query_sql "* from sqlite_master"
Note that the SLS may limit the number of responses. See "tycoon sls -h" for information on how to control this.
tycoon sls register
key
value
[hash]
Register a network service with the Service Location Service. This is primarily used for testing.
tycoon sls unregister
key
[hash]
Unregister a network service with the Service Location Service. This is primarily used for testing.