diff options
| author | lishu <[email protected]> | 2019-08-12 14:06:30 +0800 |
|---|---|---|
| committer | lishu <[email protected]> | 2019-08-12 14:06:30 +0800 |
| commit | 7c16243238ac90bdfdb8c2e57897ac0d45e940eb (patch) | |
| tree | 71fb750d6045a6ed8cc549c22cd10885cf376d52 /bin/conf | |
| parent | aa8c58e98beef3f68fb0fc2647db2b5efae997c4 (diff) | |
更新tango_cache
Diffstat (limited to 'bin/conf')
| -rw-r--r-- | bin/conf/main.conf | 84 |
1 files changed, 54 insertions, 30 deletions
diff --git a/bin/conf/main.conf b/bin/conf/main.conf index 94939cf..a6bb3ff 100644 --- a/bin/conf/main.conf +++ b/bin/conf/main.conf @@ -1,4 +1,4 @@ -[NETWORK] +[NETWORK] DataRecvPort=33082 SurveySendPort=22080 @@ -10,15 +10,16 @@ RecvQueueMaxnum=2000000 MediaHashThreadSafe=1 MediaHashSize=65536 MediaHashElemNum=1048576 -MediaHashExpireTime=300 +MediaHashExpireTime=240 [MAAT] TableInfo=./conf/table_info.conf FullCfgDir=/home/mesasoft/dd/ddrule/full/index/ IncCfgDir=/home/mesasoft/dd/ddrule/inc/index/ +EffectInvervalMs=1 [LOG] -LogLevel=30 +LogLevel=10 LogPath=./log/runtime.log #resp msg log @@ -31,35 +32,58 @@ MediaCreateLogPath= ./log/media_create.log MediaExpireLogPath= ./log/media_expire.log #field_stat -StatCycle=30 +StatCycle=2 StatFile=./log/dd_stat.log -SysinfoCycle=30 +SysinfoCycle=2 SysinfoFile=./log/dd_sysinfo.log [TANGO_CACHE] -#MINIO IP地址,目前只支持一个 -MINIO_IP_LIST=192.168.10.61-64; -MINIO_LISTEN_PORT=9000 - -#每个域名最多开启的链接数 -MAX_CONNECTION_PER_HOST=10 - -#bucket的名称 -CACHE_BUCKET_NAME=openbucket - -#缓存最大占用的内存空间大小,超出空间时上传失败 -MAX_USED_MEMORY_SIZE_MB=5120 - -#上传时Expires头部的过期时间,单位秒,最小60(1分钟) -CACHE_DEFAULT_TTL_SECOND=3600 - -#是否对对象的名称进行哈希,开启哈希有助于提高上传下载的速率 -CACHE_OBJECT_KEY_HASH_SWITCH=0 - -#WIRED LOAD BALANCER配置 -#WIREDLB_OVERRIDE=1 -#WIREDLB_TOPIC= -#WIREDLB_GROUP= -#WIREDLB_DATACENTER= - +#Addresses of minio. Format is defined by WiredLB. +minio_ip_list=192.168.10.180; +minio_listen_port=9000 +#For Non-Struct logs, we will use Nginx as a proxy to access each object. Set Nginx's port. +minio_proxy_port=9100 +#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=20 +#Maximum time the request is allowed to take(seconds). +#max_curl_transfer_timeout_s=0 + +#Bucket name in minio. +cache_bucket_name=ntcbucket +cache_bucket_num=32 +#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 +cache_upload_losf_size=4194304 +#When use LOSF mode, objects will be uploaded even if its total size doesnt reach $cache_upload_losf_size after timeouts. +#cache_upload_losf_timeout_s=10 +#Default TTL of objects, i.e. the time after which the object will expire(minumun 60s, i.e. 1 minute). +cache_default_ttl_second=36000 +#Whether to hash the object key before cache actions. GET/PUT may be faster if you open it. +cache_object_key_hash_switch=0 + +#Store way: 0-MINIO; 1-LOSF, META in REDIS, object in minio; 2-META and small object in Redis, large object in minio; +cache_store_object_way=1 +#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=512000 +#max_redis_session_num=800 +#If $cache_store_object_way is not 0, we will use redis to store meta and object. +redis_cluster_ip_list=192.168.10.180; +redis_cluster_port_range=9001-9004; +#Configs of WiredLB for Minios load balancer. +#wiredlb_override=1 +#wiredlb_topic= +#wiredlb_datacenter= +wiredlb_health_port=52101 +#wiredlb_group= + +log_fsstat_appname=TANGO_CACHE +log_fsstat_filepath=./field_stat.log +log_fsstat_interval=10 +log_fsstat_trig=1 +log_fsstat_dst_ip=127.0.0.1 +log_fsstat_dst_port=8125
\ No newline at end of file |
