![]() |
GNUnet
0.11.x
|
Values we track for load calculations. More...
Data Fields | |
struct GNUNET_TIME_Relative | autodecline |
How fast should the load decline if no values are added? More... | |
struct GNUNET_TIME_Absolute | last_update |
Last time this load value was updated by an event. More... | |
uint64_t | cummulative_delay |
Sum of all datastore delays ever observed (in ms). More... | |
uint64_t | cummulative_squared_delay |
Sum of squares of all datastore delays ever observed (in ms). More... | |
uint64_t | cummulative_request_count |
Total number of requests included in the cummulative datastore delay values. More... | |
double | runavg_delay |
Current running average datastore delay. More... | |
double | load |
How high is the load? 0 for below average, otherwise the number of std. More... | |
struct GNUNET_TIME_Relative GNUNET_LOAD_Value::autodecline |
How fast should the load decline if no values are added?
Definition at line 40 of file load.c.
Referenced by GNUNET_LOAD_value_init(), GNUNET_LOAD_value_set_decline(), and internal_update().
struct GNUNET_TIME_Absolute GNUNET_LOAD_Value::last_update |
Last time this load value was updated by an event.
Definition at line 45 of file load.c.
Referenced by GNUNET_LOAD_update(), GNUNET_LOAD_value_init(), and internal_update().
uint64_t GNUNET_LOAD_Value::cummulative_delay |
Sum of all datastore delays ever observed (in ms).
Note that delays above 64k ms are excluded (to avoid overflow within first 4 billion requests).
Definition at line 52 of file load.c.
Referenced by calculate_load(), GNUNET_LOAD_get_average(), and GNUNET_LOAD_update().
uint64_t GNUNET_LOAD_Value::cummulative_squared_delay |
Sum of squares of all datastore delays ever observed (in ms).
Note that delays above 64k ms are excluded (to avoid overflow within first 4 billion requests).
Definition at line 59 of file load.c.
Referenced by calculate_load(), and GNUNET_LOAD_update().
uint64_t GNUNET_LOAD_Value::cummulative_request_count |
Total number of requests included in the cummulative datastore delay values.
Definition at line 64 of file load.c.
Referenced by calculate_load(), GNUNET_LOAD_get_average(), and GNUNET_LOAD_update().
double GNUNET_LOAD_Value::runavg_delay |
Current running average datastore delay.
Its relation to the average datastore delay and it std. dev. (as calcualted from the cummulative values) tells us our current load.
Definition at line 71 of file load.c.
Referenced by calculate_load(), GNUNET_LOAD_update(), and internal_update().
double GNUNET_LOAD_Value::load |
How high is the load? 0 for below average, otherwise the number of std.
devs we are above average, or 100 if the load is so high that we currently cannot calculate it.
Definition at line 78 of file load.c.
Referenced by calculate_load(), GNUNET_LOAD_get_load(), GNUNET_LOAD_update(), and internal_update().