配置快照

标识

SDB_SNAP_CONFIGS

描述

配置快照列出数据库中指定节点的配置信息。

字段信息

字段信息详见 数据库配置

扩展参数示例

参数说明

构造扩展参数,请参考 SdbSnapshotOption

参数名参数类型描述是否必填
ModeString指定返回配置的模式,在 run 模式下,显示当前运行时配置信息,在 local 模式下,显示配置文件中配置信息,如 { “Mode”: “local” }。默认为 { “Mode”: “run” }。
ExpandBool是否扩展显示用户未配置的配置项,如:{ “Expand”: false }。默认 { “Expand”: true }

示例

  1. > var option = new SdbSnapshotOption().options( { "Mode": "local", "Expand": false } )
  2. > db.snapshot( SDB_SNAP_CONFIGS, option )
  3. {
  4. "NodeName": "sdbserver1:11830",
  5. "dbpath": "/opt/sequoiadb/database/data/11830/",
  6. "svcname": "11830",
  7. "role": "data",
  8. "catalogaddr": "sdbserver1:11823,sdbserver2:11823,sdbserver3:11823",
  9. "omaddr": "sdbserver1:11785",
  10. "businessname": "myService1",
  11. "clustername": "myCluster1"
  12. }
  13. ...

普通参数示例

  1. > db.snapshot( SDB_SNAP_CONFIGS, { GroupName:'group1', SvcName:'11830' } )
  2. {
  3. "NodeName": "sdbserver1:11830",
  4. "confpath": "/opt/sequoiadb/conf/local/11830/",
  5. "dbpath": "/opt/sequoiadb/database/data/11830/",
  6. "indexpath": "/opt/sequoiadb/database/data/11830/",
  7. "diagpath": "/opt/sequoiadb/database/data/11830/diaglog/",
  8. "auditpath": "/opt/sequoiadb/database/data/11830/diaglog/",
  9. "logpath": "/opt/sequoiadb/database/data/11830/replicalog/",
  10. "bkuppath": "/opt/sequoiadb/database/data/11830/bakfile/",
  11. "wwwpath": "/opt/sequoiadb/web/",
  12. "lobpath": "/opt/sequoiadb/database/data/11830/",
  13. "lobmetapath": "/opt/sequoiadb/database/data/11830/",
  14. "maxpool": 50,
  15. "diagnum": 20,
  16. "auditnum": 20,
  17. "auditmask": "SYSTEM|DDL|DCL",
  18. "svcname": "11830",
  19. "replname": "11831",
  20. "catalogname": "11833",
  21. "shardname": "11832",
  22. "httpname": "11834",
  23. "omname": "11835",
  24. "diaglevel": 3,
  25. "role": "data",
  26. "logfilesz": 64,
  27. "logfilenum": 20,
  28. "logbuffsize": 1024,
  29. "numpreload": 0,
  30. "maxprefpool": 0,
  31. "maxsubquery": 0,
  32. "maxreplsync": 10,
  33. "replbucketsize": 32,
  34. "syncstrategy": "KeepNormal",
  35. "preferedinstance": "M",
  36. "preferedinstancemode": "random",
  37. "instanceid": 0,
  38. "dataerrorop": 1,
  39. "memdebug": "FALSE",
  40. "memdebugsize": 0,
  41. "indexscanstep": 100,
  42. "dpslocal": "FALSE",
  43. "traceon": "FALSE",
  44. "tracebufsz": 256,
  45. "transactionon": "FALSE",
  46. "transactiontimeout": 60,
  47. "transisolation": 0,
  48. "translockwait": "FALSE",
  49. "translrbinit": 524288,
  50. "translrbtotal": 268435456,
  51. "sharingbreak": 7000,
  52. "startshifttime": 600,
  53. "catalogaddr": "sdbserver1:11823,sdbserver2:11823,sdbserver3:11823",
  54. "tmppath": "/opt/sequoiadb/database/data/11830/tmp/",
  55. "sortbuf": 256,
  56. "hjbuf": 128,
  57. "directioinlob": "FALSE",
  58. "sparsefile": "FALSE",
  59. "weight": 10,
  60. "usessl": "FALSE",
  61. "auth": "TRUE",
  62. "planbuckets": 500,
  63. "optimeout": 300000,
  64. "overflowratio": 12,
  65. "extendthreshold": 32,
  66. "signalinterval": 0,
  67. "maxcachesize": 0,
  68. "maxcachejob": 10,
  69. "maxsyncjob": 10,
  70. "syncinterval": 10000,
  71. "syncrecordnum": 0,
  72. "syncdeep": "FALSE",
  73. "archiveon": "FALSE",
  74. "archivecompresson": "TRUE",
  75. "archivepath": "/opt/sequoiadb/database/data/11830/archivelog/",
  76. "archivetimeout": 600,
  77. "archiveexpired": 240,
  78. "archivequota": 10,
  79. "omaddr": "sdbserver1:11785",
  80. "dmschkinterval": 0,
  81. "cachemergesz": 0,
  82. "pagealloctimeout": 0,
  83. "perfstat": "FALSE",
  84. "optcostthreshold": 20,
  85. "enablemixcmp": "FALSE",
  86. "plancachelevel": 2,
  87. "maxconn": 0,
  88. "svcscheduler": 0,
  89. "svcmaxconcurrency": 0,
  90. "businessname": "myService1",
  91. "clustername": "myCluster1",
  92. "usertag": ""
  93. }
  94. ...