-
Notifications
You must be signed in to change notification settings - Fork 3
get_optimize
Alberto Gonzalez edited this page Jun 19, 2017
·
1 revision
Returns optimization settings.
GET /api/optimize/{type}/?sid={sid}
Host: <server host name>
Accept: application/json
AuthToken: <authentication token returned from authenticate>
Optional filters include:
| Filter | Description | Example |
|---|---|---|
| type | settings, one type, or comma separated list of types. 1-current, 2-trial, 3-recommended. If no type is specified, type 1-current settings, are returned | GET /api/optimize/1,2,3 |
| sid | on URL, get optimization settings for given system | GET /api/optimize/?sid=1 |
The optimization settings returned are listed in the table below:
| Parameter | Description | Type | Returned |
|---|---|---|---|
| current_asset | asset tag | string | for type 1 |
| current_iops | input/output per second | long | for type 1 |
| current_dedup_level | dedup level | long | for type 1 |
| current_mux | mux | long | for type 1 |
| current_mux_max | maximum mux allowed | long | for type 1 |
| current_mux_min | minimum mux allowed | long | for type 1 |
| current_compr | compression | long | for type 1 |
| trial_asset | asset tag | string | for type 2 |
| trial_iops | input/output per second | long | for type 2 |
| trial_dedup_level | dedup level | long | for type 2 |
| trial_mux | mux | long | for type 2 |
| trial_mux_max | maximum mux allowed | long | for type 2 |
| trial_mux_min | minimum mux allowed | long | for type 2 |
| trial_compr | compression | long | for type 2 |
| recommended_asset | asset tag | string | for type 3 |
| recommended_iops | input/output per second | long | for type 3 |
| recommended_dedup_level | dedup level | long | for type 3 |
| recommended_mux | mux | long | for type 3 |
| recommended_mux_max | maximum mux allowed | long | for type 3 |
| recommended_mux_min | minimum mux allowed | long | for type 3 |
| recommended_compr | compression | long | for type 3 |
| comment | move database recommendation | string | for type 3 |
GET /api/optimize/1,2,3
Host: <server host name>
Accept: application/json
AuthToken: 8a00sjerhterqerjlqkjlk443l4j56869h4f_)(fjdkasHHHHHkdal324
{
"data": {
"current_asset": "961b0ef0-51e1-4fd9-8977-8bce22836752",
"current_iops": 276,
"current_movedb": 1,
"current_dedup_level": 1,
"current_mux": 2,
"current_mux_max": 10,
"current_mux_min": 2,
"current_compr": "lz4",
"trial_asset": "961b0ef0-51e1-4fd9-8977-8bce22836752",
"trial_iops": 276,
"trial_movedb": 1,
"trial_dedup_level": 1,
"trial_mux": 2,
"trial_mux_max": 10,
"trial_mux_min": 2,
"trial_compr": "lz4",
"recommended_asset": "961b0ef0-51e1-4fd9-8977-8bce22836752",
"recommended_iops": 276,
"recommended_movedb": 1,
"recommended_dedup_level": 1,
"recommended_mux": 2,
"recommended_mux_max": 10,
"recommended_mux_min": 2,
"recommended_compr": "lz4",
"comment": " Slow iops=276 for database, recommend moving to new disk. Recommend moving the database to separate storage."
}