mirror of https://github.com/yandex/odyssey.git
odissey: use cache_limit_size as pipeline limit
This commit is contained in:
parent
fc78dcc409
commit
4ec923ce8b
|
@ -458,7 +458,7 @@ static inline int
|
|||
od_frontend_stream_hit_limit(od_client_t *client)
|
||||
{
|
||||
od_instance_t *instance = client->system->instance;
|
||||
return shapito_stream_used(client->stream) >= instance->scheme.readahead;
|
||||
return shapito_stream_used(client->stream) >= instance->scheme.cache_limit_size_ra;
|
||||
}
|
||||
|
||||
static od_frontend_rc_t
|
||||
|
|
|
@ -48,6 +48,7 @@ void od_scheme_init(od_scheme_t *scheme)
|
|||
scheme->client_max = 0;
|
||||
scheme->cache_limit = 100;
|
||||
scheme->cache_limit_size = 10 * 1024;
|
||||
scheme->cache_limit_size_ra = 8 * 1024;
|
||||
od_list_init(&scheme->storages);
|
||||
od_list_init(&scheme->routes);
|
||||
od_list_init(&scheme->listen);
|
||||
|
|
|
@ -142,6 +142,7 @@ struct od_scheme
|
|||
int client_max;
|
||||
int cache_limit;
|
||||
int cache_limit_size;
|
||||
int cache_limit_size_ra;
|
||||
/* temprorary storages */
|
||||
od_list_t storages;
|
||||
/* routes */
|
||||
|
|
Loading…
Reference in New Issue