Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filter_kubernetes: default metadata cache size 256 -> 1024 #8716

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions plugins/filter_kubernetes/kube_conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ struct flb_kube *flb_kube_conf_create(struct flb_filter_instance *ins,
}
}

flb_plg_info(ctx->ins, "Initializing k8s hash_table of %d entries", FLB_HASH_TABLE_SIZE);
if (ctx->kube_meta_cache_ttl > 0) {
ctx->hash_table = flb_hash_table_create_with_ttl(ctx->kube_meta_cache_ttl,
FLB_HASH_TABLE_EVICT_OLDER,
Expand Down
4 changes: 2 additions & 2 deletions plugins/filter_kubernetes/kube_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
*
* tag -> regex: pod name, container ID, container name, etc
*
* By default, we define a hash table for 256 entries.
* By default, we define a hash table for 1024 entries.
*/
#define FLB_HASH_TABLE_SIZE 256
#define FLB_HASH_TABLE_SIZE 1024

/*
* When merging nested JSON strings from Docker logs, we need a temporary
Expand Down