36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
[TANGO_CACHE]
|
|
#Addresses of minio. Format is defined by WiredLB.
|
|
MINIO_IP_LIST=10.3.35.1;
|
|
MINIO_LISTEN_PORT=9000
|
|
#Maximum number of connections opened by per host.
|
|
#MAX_CONNECTION_PER_HOST=1
|
|
#Maximum number of requests in a pipeline.
|
|
#MAX_CNNT_PIPELINE_NUM=20
|
|
#Maximum parellel sessions(http and redis) is allowed to open.
|
|
#MAX_CURL_SESSION_NUM=100
|
|
#Maximum time the request is allowed to take(seconds).
|
|
#MAX_CURL_TRANSFER_TIMEOUT_S=0
|
|
|
|
#Bucket name in minio.
|
|
CACHE_BUCKET_NAME=openbucket
|
|
#Maximum size of memory used by tango_cache_client. Upload will fail if the current size of memory used exceeds this value.
|
|
MAX_USED_MEMORY_SIZE_MB=5120
|
|
#Default TTL of objects, i.e. the time after which the object will expire(minumun 60s, i.e. 1 minute).
|
|
CACHE_DEFAULT_TTL_SECOND=3600
|
|
#Whether to hash the object key before cache actions. GET/PUT may be faster if you open it.
|
|
CACHE_OBJECT_KEY_HASH_SWITCH=1
|
|
|
|
#Store way: 0-MINIO; 1-META in REDIS, object in minio; 2-META and small object in Redis, large object in minio;
|
|
CACHE_STORE_OBJECT_WAY=2
|
|
#If CACHE_STORE_OBJECT_WAY is 2 and the size of a object is not bigger than this value, object will be stored in redis.
|
|
REDIS_CACHE_OBJECT_SIZE=20480
|
|
#If CACHE_STORE_OBJECT_WAY is not 0, we will use redis to store meta and object.
|
|
REDIS_CLUSTER_ADDRS=10.4.35.33:9001,10.4.35.34:9001
|
|
#Configs of WiredLB for Minios load balancer.
|
|
#WIREDLB_OVERRIDE=1
|
|
#WIREDLB_TOPIC=
|
|
#WIREDLB_DATACENTER=
|
|
WIREDLB_HEALTH_PORT=52101
|
|
#WIREDLB_GROUP=
|
|
|