(→Availability) |
(→Availability) |
||
(5 intermediate revisions by one user not shown) | |||
Line 11: | Line 11: | ||
==Availability== | ==Availability== | ||
*[[servers#Dynamic Server|Dynamic Server]] | *[[servers#Dynamic Server|Dynamic Server]] | ||
+ | *Cascade Virtual Machine | ||
==Required Data Parameters== | ==Required Data Parameters== | ||
Line 27: | Line 28: | ||
* interval_length is the difference between interval_end and interval_start | * interval_length is the difference between interval_end and interval_start | ||
* ticks is the number of raw data points from the database that were used to create the returned data point. | * ticks is the number of raw data points from the database that were used to create the returned data point. | ||
+ | |||
+ | Different performance data will be returned depending on whether the {$serverid} refers to a Dynamic Server or a VM. | ||
+ | |||
+ | Here is data for a Dynamic Server: | ||
<pre> | <pre> | ||
Array | Array | ||
( | ( | ||
− | [success] => true, | + | [success] => 'true', |
[data] => Array | [data] => Array | ||
( | ( | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[1365537644] => Array | [1365537644] => Array | ||
( | ( | ||
Line 374: | Line 105: | ||
[interface_public_tx_drop] => 0 | [interface_public_tx_drop] => 0 | ||
[interface_private_tx_drop] => 0 | [interface_private_tx_drop] => 0 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[interval_start] => 1365537644 | [interval_start] => 1365537644 | ||
[interval_end] => 1365538224 | [interval_end] => 1365538224 | ||
Line 445: | Line 111: | ||
) | ) | ||
− | + | ) | |
− | + | ) | |
− | + | </pre> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | + | And here is data for a VM: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <pre> | |
− | + | ( | |
− | + | [success] => 'true', | |
− | + | [data] => Array | |
− | + | ( | |
− | + | [1365539419] => Array | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [ | + | |
( | ( | ||
[tick_ids] => Array | [tick_ids] => Array | ||
Line 588: | Line 129: | ||
[0] => MongoId Object | [0] => MongoId Object | ||
( | ( | ||
− | [$id] => | + | [$id] => 51647cc2521554d859000e3b |
) | ) | ||
Line 595: | Line 136: | ||
[format] => flat1 | [format] => flat1 | ||
[aggregation] => raw | [aggregation] => raw | ||
− | [ | + | [vm_id] => 212960 |
− | [ | + | [hostname] => cloud.quintet.ca |
− | + | [uberid] => 179099 | |
− | + | ||
− | + | ||
− | [ | + | |
[ts] => MongoDate Object | [ts] => MongoDate Object | ||
( | ( | ||
− | [sec] => | + | [sec] => 1365540019 |
[usec] => 0 | [usec] => 0 | ||
) | ) | ||
− | [ | + | [disk_usage] => 11075664 |
− | [ | + | [max_vcpus] => 24 |
− | [ | + | [cpu_nanoseconds] => 509350000000 |
− | + | [disk_primary_read_requests] => 0 | |
− | + | [disk_primary_read_bytes] => 0 | |
− | + | [disk_primary_write_requests] => 599 | |
− | + | [disk_primary_write_bytes] => 6246400 | |
− | + | [disk_swap_read_requests] => 0 | |
− | + | [disk_swap_read_bytes] => 0 | |
− | [ | + | [disk_swap_write_requests] => 0 |
− | [ | + | [disk_swap_write_bytes] => 0 |
− | + | [interface_public_rx_packets] => 10 | |
− | [ | + | [interface_public_rx_bytes] => 660 |
− | [ | + | |
− | [ | + | |
− | [ | + | |
− | [ | + | |
− | [ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [interface_public_rx_packets] => | + | |
− | + | ||
− | [interface_public_rx_bytes] => | + | |
− | + | ||
[interface_public_rx_errors] => 0 | [interface_public_rx_errors] => 0 | ||
− | |||
[interface_public_rx_drop] => 0 | [interface_public_rx_drop] => 0 | ||
− | + | [interface_public_tx_packets] => 0 | |
− | [interface_public_tx_packets] => | + | [interface_public_tx_bytes] => 0 |
− | + | ||
− | [interface_public_tx_bytes] => | + | |
− | + | ||
[interface_public_tx_errors] => 0 | [interface_public_tx_errors] => 0 | ||
+ | [interface_public_tx_drop] => 0 | ||
+ | [interface_private_rx_packets] => 1365 | ||
+ | [interface_private_rx_bytes] => 100354 | ||
+ | [interface_private_rx_errors] => 0 | ||
+ | [interface_private_rx_drop] => 0 | ||
+ | [interface_private_tx_packets] => 0 | ||
+ | [interface_private_tx_bytes] => 0 | ||
[interface_private_tx_errors] => 0 | [interface_private_tx_errors] => 0 | ||
− | |||
[interface_private_tx_drop] => 0 | [interface_private_tx_drop] => 0 | ||
− | [ | + | [vcpu_nanoseconds_0] => 33410000000 |
− | + | [vcpu_nanoseconds_1] => 19150000000 | |
− | + | [vcpu_nanoseconds_2] => 18480000000 | |
− | + | [vcpu_nanoseconds_3] => 18530000000 | |
− | + | [vcpu_nanoseconds_4] => 18910000000 | |
− | + | [vcpu_nanoseconds_5] => 18090000000 | |
− | + | [vcpu_nanoseconds_6] => 18650000000 | |
− | + | [vcpu_nanoseconds_7] => 18370000000 | |
− | + | [vcpu_nanoseconds_8] => 18360000000 | |
− | + | [vcpu_nanoseconds_9] => 18180000000 | |
− | + | [vcpu_nanoseconds_10] => 17980000000 | |
− | + | [vcpu_nanoseconds_11] => 18600000000 | |
− | + | [vcpu_nanoseconds_12] => 17970000000 | |
− | + | [vcpu_nanoseconds_13] => 18470000000 | |
− | + | [vcpu_nanoseconds_14] => 17590000000 | |
− | + | [vcpu_nanoseconds_15] => 18290000000 | |
− | + | [vcpu_nanoseconds_16] => 18170000000 | |
− | + | [vcpu_nanoseconds_17] => 19020000000 | |
− | + | [vcpu_nanoseconds_18] => 17260000000 | |
− | + | [vcpu_nanoseconds_19] => 18230000000 | |
− | + | [vcpu_nanoseconds_20] => 17730000000 | |
− | + | [vcpu_nanoseconds_21] => 19540000000 | |
− | + | [vcpu_nanoseconds_22] => 18170000000 | |
− | + | [vcpu_nanoseconds_23] => 17500000000 | |
− | + | [interval_start] => 1365539419 | |
− | + | [interval_end] => 1365540019 | |
− | + | [interval_length] => 600 | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | [interval_start] => | + | |
− | [interval_end] => | + | |
− | [interval_length] => | + | |
[ticks] => 1 | [ticks] => 1 | ||
) | ) |
The server stats command returns performance stats for a server over a given time period.
Contents |
The data returned will be an associative array where each key is a unix timestamp and the value is the aggregated data for that time. Some pieces of data to note:
Different performance data will be returned depending on whether the {$serverid} refers to a Dynamic Server or a VM.
Here is data for a Dynamic Server:
Array ( [success] => 'true', [data] => Array ( [1365537644] => Array ( [tick_ids] => Array ( [0] => MongoId Object ( [$id] => 516475b6bb8d32b953001331 ) ) [format] => flat1 [aggregation] => raw [server_id] => 212981 [agent] => dom0d [revision] => 2.20 [hypervisor] => qemu [hypervisor_version] => 0.14.1 [uptime] => 6634187.65 [ts] => MongoDate Object ( [sec] => 1365538224 [usec] => 0 ) [load1] => 0 [load5] => 0.01 [load15] => 0.05 [memused] => 4675832 [memfree%] => 42.82 [swapused] => 5060 [swapfree%] => 99.87 [localused] => 19881256 [localfree%] => 95.89 [disk_ios_pending] => 0 [time_user] => 19 [time_nice] => 0 [time_system] => 5 [time_idle] => 4679 [time_iowait] => 0 [time_irq] => 0 [time_softirq] => 0 [time_steal] => 0 [time_guest] => 13 [disk_reads_completed] => 0 [disk_read_sectors] => 0 [disk_read_bytes] => 0 [disk_writes_completed] => 336 [disk_write_sectors] => 7488 [disk_write_bytes] => 3833856 [interface_public_rx_packets] => 107 [interface_private_rx_packets] => 5567 [interface_public_rx_bytes] => 19285 [interface_private_rx_bytes] => 679315 [interface_public_rx_errors] => 0 [interface_private_rx_errors] => 0 [interface_public_rx_drop] => 0 [interface_private_rx_drop] => 20 [interface_public_tx_packets] => 500 [interface_private_tx_packets] => 280 [interface_public_tx_bytes] => 36414 [interface_private_tx_bytes] => 71063 [interface_public_tx_errors] => 0 [interface_private_tx_errors] => 0 [interface_public_tx_drop] => 0 [interface_private_tx_drop] => 0 [interval_start] => 1365537644 [interval_end] => 1365538224 [interval_length] => 580 [ticks] => 1 ) ) )
And here is data for a VM:
( [success] => 'true', [data] => Array ( [1365539419] => Array ( [tick_ids] => Array ( [0] => MongoId Object ( [$id] => 51647cc2521554d859000e3b ) ) [format] => flat1 [aggregation] => raw [vm_id] => 212960 [hostname] => cloud.quintet.ca [uberid] => 179099 [ts] => MongoDate Object ( [sec] => 1365540019 [usec] => 0 ) [disk_usage] => 11075664 [max_vcpus] => 24 [cpu_nanoseconds] => 509350000000 [disk_primary_read_requests] => 0 [disk_primary_read_bytes] => 0 [disk_primary_write_requests] => 599 [disk_primary_write_bytes] => 6246400 [disk_swap_read_requests] => 0 [disk_swap_read_bytes] => 0 [disk_swap_write_requests] => 0 [disk_swap_write_bytes] => 0 [interface_public_rx_packets] => 10 [interface_public_rx_bytes] => 660 [interface_public_rx_errors] => 0 [interface_public_rx_drop] => 0 [interface_public_tx_packets] => 0 [interface_public_tx_bytes] => 0 [interface_public_tx_errors] => 0 [interface_public_tx_drop] => 0 [interface_private_rx_packets] => 1365 [interface_private_rx_bytes] => 100354 [interface_private_rx_errors] => 0 [interface_private_rx_drop] => 0 [interface_private_tx_packets] => 0 [interface_private_tx_bytes] => 0 [interface_private_tx_errors] => 0 [interface_private_tx_drop] => 0 [vcpu_nanoseconds_0] => 33410000000 [vcpu_nanoseconds_1] => 19150000000 [vcpu_nanoseconds_2] => 18480000000 [vcpu_nanoseconds_3] => 18530000000 [vcpu_nanoseconds_4] => 18910000000 [vcpu_nanoseconds_5] => 18090000000 [vcpu_nanoseconds_6] => 18650000000 [vcpu_nanoseconds_7] => 18370000000 [vcpu_nanoseconds_8] => 18360000000 [vcpu_nanoseconds_9] => 18180000000 [vcpu_nanoseconds_10] => 17980000000 [vcpu_nanoseconds_11] => 18600000000 [vcpu_nanoseconds_12] => 17970000000 [vcpu_nanoseconds_13] => 18470000000 [vcpu_nanoseconds_14] => 17590000000 [vcpu_nanoseconds_15] => 18290000000 [vcpu_nanoseconds_16] => 18170000000 [vcpu_nanoseconds_17] => 19020000000 [vcpu_nanoseconds_18] => 17260000000 [vcpu_nanoseconds_19] => 18230000000 [vcpu_nanoseconds_20] => 17730000000 [vcpu_nanoseconds_21] => 19540000000 [vcpu_nanoseconds_22] => 18170000000 [vcpu_nanoseconds_23] => 17500000000 [interval_start] => 1365539419 [interval_end] => 1365540019 [interval_length] => 600 [ticks] => 1 ) ) )