Flame is a collection of data computing & analysis commands on the TFS collected data.
439
( ( *
)\ ) )\ ) ( ( `
(()/( (()/( )\ )\))( (
/(_)) /(_)) ((((_)( ((_)()\ )\
(_))_| (_)) )\ _ )\ (_()((_) ((_)
| |_ | | (_)_\(_) | \/ | | __|
| __| | |__ / _ \ | |\/| | | _|
|_| |____| /_/ \_\ |_| |_| |___|
Flame is a containerized collection of data computing & analysis commands on the TFS collected data. These CLIs are served by Google Python Fire.
More on Google Python Fire: https://github.com/google/python-fire
Flame is thinked to run along with docker: run an image on a mounted volume.
The machine that will run the flame container should have docker installed. Run this to install it:
apt-get update && apt-get -y install docker-ce docker-ce-cli containerd.io
docker run --name <some-flame> -e FLAME_<SOME_CONFIG>=<some-value> -v </local-volume-mount-point>:/flame-volume thefirstspine/flame:<tag> <the-command>
For the latest version of flame, use the latest tag. The desired volume to compute should be mounted to the /flame-volume path.
Example : docker run --name my-flame-container -v /block-storage/arena:/flame-volume thefirstspine/flame:latest python compute-games.py count_game_type
The command will simply print on the standard output the result of the command.
Based on the environment variables passed to the container, some features will be activated or not. Here’s a list of all available features:
| Variable key | Explaination | Example |
|---|---|---|
FLAME_DB_URL | The database Flame should connect to. | FLAME_DB_URL=mongodb://localhost:27017/database FLAME_DB_URL=postgresql://localhost:5432/database |
--rm flag.docker run --rm -a STDOUT … > myoutput.jsonThe computing commands are available inside collections served by Google Python Fire.
To run a command: <collection> <command> <options>
For instance: games.py get_game --game_id=123
All the computations related with the games.
Required database: games
| Command | Description | Options |
|---|---|---|
count_game_types | Get the number of played games by types |
|
The commands under this collection are related with the player data (e.g. wizards files)
Required database: wizards
| Command | Description | Options |
|---|---|---|
ranks | Ranks the players according to their victories |
|
All the Solid Pancake sessions.
Required database: solid-pancake>
| Command | Description | Options |
|---|---|---|
count_active_sessions_per_product_and_version | Get the sessions in the Solid Pancake service tracking |
|
count_sessions_per_product | Count the sessions per product |
|
Content type
Image
Digest
Size
411.9 MB
Last updated
almost 6 years ago
docker pull thefirstspine/flame