search for: connection_r

Displaying 2 results from an estimated 2 matches for "connection_r".

Did you mean: connection_t
2019 Mar 05
0
[PATCH nbdkit] Add new filter for rate-limiting connections.
...;sys/time.h> + +#include <pthread.h> + +#include <nbdkit-filter.h> + +#include "bucket.h" + +#define THREAD_MODEL NBDKIT_THREAD_MODEL_PARALLEL + +/* Per-connection and global limit, both in bits per second, with zero + * meaning not set / not enforced. + */ +static uint64_t connection_rate = 0; +static uint64_t rate = 0; + +/* Bucket capacity controls the burst rate. It is expressed as the + * length of time in "rate-equivalent seconds" that the client can + * burst for after a period of inactivity. This could be adjustable + * in future. + */ +#define BUCKET_CAPACITY...
2019 Mar 05
2
[PATCH nbdkit] Add new filter for rate-limiting connections.
For virt-v2v we have been discussing how to limit network bandwidth. The initial discussion has been around how to use cgroups to do this limiting, and that is still probably what we will go with in the end. However this patch gives us another possibility for certain virt-v2v inputs, especially VDDK. We could apply a filter on top of the nbdkit plugin which limits the rate at which it copies