@@ -3,7 +3,7 @@ This document describes and examples the configuration of each module of DCache.
3
3
# ConfigServer Configuration
4
4
5
5
```
6
- # database infomation
6
+ # database infomation of db_dcache_relation
7
7
<Main>
8
8
<DB>
9
9
dbhost=
@@ -283,7 +283,7 @@ This document describes and examples the configuration of each module of DCache.
283
283
ProxyMaxSilentTime=1800
284
284
# interval for clearing Proxies
285
285
ClearProxyInterval=1800
286
- # 轮询迁移数据库的时间
286
+ # interval for polling unstart transfer task in db
287
287
TransferInterval=3
288
288
# number of threads used for polling
289
289
TimerThreadSize=20
@@ -305,7 +305,9 @@ This document describes and examples the configuration of each module of DCache.
305
305
MaxTransferThreadEachGroup=8
306
306
</Transfer>
307
307
<Switch>
308
- # 自动切换超时的检测间隔(秒)
308
+ # whether to enable auto switch
309
+ enable = N
310
+ # interval for checking whether need to switch (seconds)
309
311
SwitchCheckInterval= 10
310
312
# timeout for automatic switching (seconds)
311
313
SwitchTimeOut=60
@@ -345,17 +347,20 @@ This document describes and examples the configuration of each module of DCache.
345
347
```
346
348
<Main>
347
349
<DB>
348
- Sql=CREATE TABLE `${TABLE}` (`stattime` timestamp NOT NULL default CURRENT_TIMESTAMP,`f_date` date NOT NULL default '1970-01-01',`f_tflag` varchar(8) NOT NULL default '',`app_name` varchar(20) default NULL,`module_name` varchar(50) default NULL,`group_name` varchar(100) default NULL,`idc_area` varchar(10) default NULL,`server_status` varchar(10) default NULL,`master_name` varchar(128) NOT NULL default '',`master_ip` varchar(16) default NULL,`set_name` varchar(15) NOT NULL default '',`set_area` varchar(15) NOT NULL default '',`set_id` varchar(15) NOT NULL default '',`value1` varchar(255) default NULL,`value2` varchar(255) default NULL,`value3` varchar(255) default NULL,`value4` varchar(255) default NULL,`value5` varchar(255) default NULL,`value6` varchar(255) default NULL,`value7` varchar(255) default NULL,`value8` varchar(255) default NULL,`value9` varchar(255) default NULL,`value10` varchar(255) default NULL,`value11` varchar(255) default NULL,`value12` varchar(255) default NULL,`value13` varchar(255) default NULL,`value14` varchar(255) default NULL,`value15` varchar(255) default NULL,`value16` varchar(255) default NULL,`value17` varchar(255) default NULL,`value18` varchar(255) default NULL,`value19` varchar(255) default NULL,`value20` varchar(255) default NULL,`value21` varchar(255) default NULL,`value22` varchar(255) default NULL,`value23` varchar(255) default NULL,`value24` varchar(255) default NULL,`value25` varchar(255) default NULL,`value26` varchar(255) default NULL,`value27` varchar(255) default NULL,`value28` varchar(255) default NULL,`value29` varchar(255) default NULL,`value30` varchar(255) default NULL,`value31` varchar(255) default NULL,`value32` varchar(255) default NULL,`value33` varchar(255) default NULL,`value34` varchar(255) default NULL,`value35` varchar(255) default NULL,KEY(`f_date`,`f_tflag`,`master_name`,`master_ip`),KEY `IDX_MASTER_NAME` (`master_name`),KEY `IDX_MASTER_IP` (`master_ip`),KEY `IDX_TIME` (`stattime`),KEY `IDX_F_DATE` (`f_date`))ENGINE\=MyISAM
349
- TbNamePre=t_property_realtime
350
- AppName=dcache_idc5min_147
350
+ #maximum properties to monitoring
351
+ PropertyFieldNum=48
352
+ TbNamePre=t_property_realtime
353
+ AppName=dcache_idc5min_147
354
+ #database to stroe monitoring data
351
355
<property>
352
356
dbhost=
353
- dbname=taf_property_147
357
+ dbname=db_dcache_property
354
358
dbuser=
355
359
dbpass=
356
360
dbport=
357
361
charset=gbk
358
362
</property>
363
+ #database of db_dcache_relation
359
364
<relation>
360
365
charset=gbk
361
366
dbname=db_dcache_relation
@@ -366,47 +371,62 @@ This document describes and examples the configuration of each module of DCache.
366
371
</relation>
367
372
</DB>
368
373
<HashMap>
369
- InsertInterval=1
374
+ #interval to dump memory data to database(minutes)
375
+ InsertInterval=5
370
376
</HashMap>
371
377
<NameMap>
372
- BakCenterError = property1
373
- BinLogErr = property2
374
- BinLogSyn = property3
375
- CacheError = property4
376
- Chunks/OnceElement = property5
377
- BackUpObjAdapter.connectRate = property6
378
- BackUpObjAdapter.queue = property7
379
- BinLogObjAdapter.connectRate = property8
380
- BinLogObjAdapter.queue = property9
381
- CacheObjAdapter.connectRate = property10
382
- CacheObjAdapter.queue = property11
383
- RouterClientObjAdapter.connectRate = property12
384
- RouterClientObjAdapter.queue = property13
385
- WCacheObjAdapter.connectRate = property14
386
- WCacheObjAdapter.queue = property15
387
- asyncqueue = property16
388
- memsize = property17
389
- DataMemUsedRatio = property18
390
- DbError = property19
391
- DbException = property20
392
- DirtyNum = property21
393
- DirtyRatio = property22
394
- ElementCount = property23
395
- Exception = property24
396
- HitCount = property25
397
- MemSize = property26
398
- getBatchCount = property27
399
- setBatchCount = property28
400
- MKMemUsedRatio = property29
401
- eraseCount = property30
402
- eraseCountUnexpire = property31
403
- asyncqueue0 = property32
404
- Jmem0DataUsedRatio = property33
405
- Jmem1DataUsedRatio = property34
406
- ColdDataRatio = property35
407
- expireCount = property36
408
- OnlyKeyCount = property37
409
- BigChunk = property38
378
+ # value1 to value20 for obj and tars server fixed property
379
+ CacheObjAdapter.queue = value1
380
+ WCacheObjAdapter.queue = value2
381
+ BinLogObjAdapter.queue = value3
382
+ RouterClientObjAdapter.queue = value4
383
+ ControlAckObjAdapter.queue = value5
384
+ BackUpObjAdapter.queue = value6
385
+ sendrspqueue = value7
386
+ asyncqueue = value8
387
+ memsize = value9
388
+ reservedPro10 = value10
389
+ reservedPro11 = value11
390
+ reservedPro12 = value12
391
+ reservedPro13 = value13
392
+ reservedPro14 = value14
393
+ reservedPro15 = value15
394
+ reservedPro16 = value16
395
+ reservedPro17 = value17
396
+ reservedPro18 = value18
397
+ reservedPro19 = value19
398
+ reservedPro20 = value20
399
+
400
+ # value21 for dcache property
401
+ CacheMemSize_MB = value21
402
+ DataMemUsage = value22
403
+ CacheHitRatio = value23
404
+
405
+ TotalCountOfRecords = value24
406
+ ProportionOfDirtyRecords = value25
407
+ CountOfDirtyRecords = value26
408
+ CountOfOnlyKey = value27
409
+
410
+ M/S_ReplicationErr = value28
411
+ M/S_ReplicationLatency = value29
412
+ CacheError = value30
413
+ ProgramException = value31
414
+
415
+ ReadRecordCount = value32
416
+ WriteRecordCount = value33
417
+ evictedRecordCount = value34
418
+ evictedCountOfUnexpiredRecord = value35
419
+ expiredRecordCount = value36
420
+
421
+ ChunkUsedPerRecord = value37
422
+ MaxMemUsageOfJmem = value38
423
+ ProportionOfColdData = value39
424
+
425
+ DbError = value40
426
+ DbException = value41
427
+ BackupError = value42
428
+
429
+ MKV_MainkeyMemUsage = value43
410
430
</NameMap>
411
431
</Main>
412
432
@@ -434,3 +454,39 @@ This document describes and examples the configuration of each module of DCache.
434
454
RouterObj = DCache.RouterServer.RouterObj
435
455
</Main>
436
456
```
457
+
458
+ # OptServer Configuration
459
+
460
+ ```
461
+ <Main>
462
+ # admin registry obj
463
+ AdminRegObj = tars.tarsAdminRegistry.AdminRegObj
464
+ <DB>
465
+ <tars>
466
+ charset = utf8
467
+ dbname = db_tars
468
+ dbhost =
469
+ dbport =
470
+ dbuser =
471
+ dbpass =
472
+ </tars>
473
+ <relation>
474
+ charset = utf8
475
+ dbname = db_dcache_relation
476
+ dbhost =
477
+ dbport =
478
+ dbuser =
479
+ dbpass =
480
+ </relation>
481
+ </DB>
482
+ <Release>
483
+ ThreadCount = 5
484
+ </Release>
485
+ <Uninstall>
486
+ Timeout = 20
487
+ BakPath = /data/dcacheuninstall/
488
+ ThreadCount = 2
489
+ </Uninstall>
490
+ </Main>
491
+ ```
492
+
0 commit comments