frontendclient

command
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

Frontend API Client Stub

frontendclient is a fake client for the Frontend API. It pretends to be a number of real game clients connecting to Open Match and requests a match, as a group. It then waits for results to come back from the Frontend API, and prints them to your screen. You can generate these results using the entire Open Match end-to-end workflow - querying the backend, running an MMF, and assigning players to a match - or you can manually test the results pathway by directly putting the results you want into redis.

Only to be used for testing, and only in isolated environments (not in production!)

Ping files

This application requires files filled with statistics used to generate simulated client latencies. Example files with placeholder data (with every possible route taking 75ms) are provided. More realistic data can be found on public sites such as https://wondernetwork.com/wonderproxy or you can provide your own in the format below.

Format

Ping files are tab-delimited data, in this order: City Distance Average % of SOLf/o min max mdev Last Checked

city.percent file

This is a file with of all the cities you want to generate simulated clients from, and associated numbers representing the percent of clients to simulate from those cities. All the percentages are normalized to fall within the range of 0 - 1 (floating point). Developers who want to modify the file should consult the source code to learn more of how it works and is used.

Building

Easiest using Google Cloud Build:

gcloud builds submit --substitutions TAG_NAME=latest --config cloudbuild.yaml

Further reading

More information about this program can be found in the development guide.

Documentation

Overview

This is a testing program that stubs multiple frontend api clients, all requesting matchmaking as a group. This assumes it is run within a k8s cluster, and that the frontend api is up and can be accessed through a k8s service called 'om-frontendapi'.

Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
Package player is a module used for generating stubbed players to put into the matchmaking pool.
Package player is a module used for generating stubbed players to put into the matchmaking pool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL