Commit e866c04f authored by liliars's avatar liliars
Browse files

submission json

parent b5709dbc
......@@ -57,4 +57,10 @@ Your json submission file should have these entries like the example bellow:
"max_cpu": 0.5
}
}
```
You can test the plugin by running a simples job as follows:
```bash
$ curl -H "Content-Type: application/json" --data @adaptive-submission.json <your_asperathos_url:port>/submissions
```
\ No newline at end of file
{
"plugin": "kubejobs",
"plugin_info": {
"username": "admin",
"password": "adaptive123",
"cmd": [
"python",
"factorial.py"
],
"img": "matheusmelo/asperathos_factorial",
"redis_workload": "https://gist.githubusercontent.com/matheuscmelo/3b4f47948a15b14862edd79f7e7bc4ee/raw/9da12cf9549c57dcec68d58c2bf9c85c1281c650/workload_f3",
"job_resources_lifetime": 1200,
"init_size": 1,
"control_plugin": "adaptive_kubejobs",
"control_parameters": {
"schedule_strategy":"default",
"actuator": "k8s_replicas",
"check_interval": 10,
"trigger_down": 1,
"trigger_up": 1,
"min_rep": 1,
"max_rep": 10,
"actuation_size": 1,
"metric_source": "redis",
"max_ram": 0.7,
"max_cpu": 0.5
},
"monitor_plugin": "kubejobs",
"monitor_info": {
"expected_time": 1000
},
"enable_visualizer": true,
"visualizer_plugin": "k8s-grafana",
"visualizer_info": {
"datasource_type": "influxdb"
},
"env_vars": {}
},
"enable_auth": false
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment