You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

212 lines
3.7 KiB

  1. ######################################################
  2. # MySQL NDB Cluster Huge Sample Configuration File #
  3. ######################################################
  4. # This files assumes that you are using at least 9 #
  5. # hosts for running the cluster. Hostnames and paths #
  6. # listed below should be changed to match your setup #
  7. ######################################################
  8. [NDBD DEFAULT]
  9. NoOfReplicas: 2
  10. DataDir: /add/path/here
  11. FileSystemPath: /add/path/here
  12. # Data Memory, Index Memory, and String Memory #
  13. DataMemory: 6000M
  14. IndexMemory: 1500M
  15. StringMemory: 5
  16. # Transaction Parameters #
  17. MaxNoOfConcurrentTransactions: 4096
  18. MaxNoOfConcurrentOperations: 100000
  19. MaxNoOfLocalOperations: 100000
  20. # Transaction Temporary Storage #
  21. MaxNoOfConcurrentIndexOperations: 8192
  22. MaxNoOfFiredTriggers: 4000
  23. TransactionBufferMemory: 1M
  24. # Scans and buffering #
  25. MaxNoOfConcurrentScans: 300
  26. MaxNoOfLocalScans: 32
  27. BatchSizePerLocalScan: 64
  28. LongMessageBuffer: 1M
  29. # Logging and Checkpointing #
  30. NoOfFragmentLogFiles: 300
  31. FragmentLogFileSize: 16M
  32. MaxNoOfOpenFiles: 40
  33. InitialNoOfOpenFiles: 27
  34. MaxNoOfSavedMessages: 25
  35. # Metadata Objects #
  36. MaxNoOfAttributes: 1500
  37. MaxNoOfTables: 400
  38. MaxNoOfOrderedIndexes: 200
  39. MaxNoOfUniqueHashIndexes: 200
  40. MaxNoOfTriggers: 770
  41. # Boolean Parameters #
  42. LockPagesInMainMemory: 0
  43. StopOnError: 1
  44. Diskless: 0
  45. ODirect: 0
  46. # Controlling Timeouts, Intervals, and Disk Paging #
  47. TimeBetweenWatchDogCheck: 6000
  48. TimeBetweenWatchDogCheckInitial: 6000
  49. StartPartialTimeout: 30000
  50. StartPartitionedTimeout: 60000
  51. StartFailureTimeout: 1000000
  52. HeartbeatIntervalDbDb: 2000
  53. HeartbeatIntervalDbApi: 3000
  54. TimeBetweenLocalCheckpoints: 20
  55. TimeBetweenGlobalCheckpoints: 2000
  56. TransactionInactiveTimeout: 0
  57. TransactionDeadlockDetectionTimeout: 1200
  58. DiskSyncSize: 4M
  59. DiskCheckpointSpeed: 10M
  60. DiskCheckpointSpeedInRestart: 100M
  61. ArbitrationTimeout: 10
  62. # Buffering and Logging #
  63. UndoIndexBuffer: 2M
  64. UndoDataBuffer: 1M
  65. RedoBuffer: 32M
  66. LogLevelStartup: 15
  67. LogLevelShutdown: 3
  68. LogLevelStatistic: 0
  69. LogLevelCheckpoint: 0
  70. LogLevelNodeRestart: 0
  71. LogLevelConnection: 0
  72. LogLevelError: 15
  73. LogLevelCongestion: 0
  74. LogLevelInfo: 3
  75. MemReportFrequency: 0
  76. # Backup Parameters #
  77. BackupDataBufferSize: 2M
  78. BackupLogBufferSize: 2M
  79. BackupMemory: 64M
  80. BackupWriteSize: 32K
  81. BackupMaxWriteSize: 256K
  82. [MGM DEFAULT]
  83. PortNumber: 1186
  84. DataDir: /add/path/here
  85. [TCP DEFAULT]
  86. SendBufferMemory: 2M
  87. #######################################
  88. # Change HOST1 to the name of the NDB_MGMD host
  89. # Change HOST2 to the name of the NDB_MGMD host
  90. # Change HOST3 to the name of the NDB_MGMD host
  91. # Change HOST4 to the name of the NDBD host
  92. # Change HOST5 to the name of the NDBD host
  93. # Change HOST6 to the name of the NDBD host
  94. # Change HOST7 to the name of the NDBD host
  95. # Change HOST8 to the name of the NDBD host
  96. # Change HOST9 to the name of the NDBD host
  97. #######################################
  98. [NDB_MGMD]
  99. Id: 1
  100. HostName: HOST1
  101. ArbitrationRank: 1
  102. [NDB_MGMD]
  103. Id: 2
  104. HostName: HOST2
  105. ArbitrationRank: 1
  106. [NDB_MGMD]
  107. Id: 3
  108. HostName: HOST3
  109. ArbitrationRank: 1
  110. [NDBD]
  111. Id: 4
  112. HostName: HOST4
  113. [NDBD]
  114. Id: 5
  115. HostName: HOST5
  116. [NDBD]
  117. Id: 6
  118. HostName: HOST6
  119. [NDBD]
  120. Id: 7
  121. HostName: HOST7
  122. [NDBD]
  123. Id: 8
  124. HostName: HOST8
  125. [NDBD]
  126. Id: 9
  127. HostName: HOST9
  128. ######################################################
  129. # Note: The following can be MySQLD connections or #
  130. # NDB API application connecting to the cluster #
  131. ######################################################
  132. [API]
  133. Id: 10
  134. HostName: HOST1
  135. ArbitrationRank: 2
  136. [API]
  137. Id: 11
  138. HostName: HOST2
  139. ArbitrationRank: 2
  140. [API]
  141. Id: 12
  142. HostName: HOST3
  143. [API]
  144. Id: 13
  145. HostName: HOST4
  146. [API]
  147. Id: 14
  148. HostName: HOST5
  149. [API]
  150. Id: 15
  151. HostName: HOST6
  152. [API]
  153. Id: 16
  154. HostName: HOST7
  155. [API]
  156. Id: 17
  157. HostName: HOST8
  158. [API]
  159. Id: 19
  160. HostName: HOST9
  161. [API]
  162. Id: 20
  163. [API]
  164. Id: 21
  165. [API]
  166. Id: 22
  167. [API]
  168. Id: 23
  169. [API]
  170. Id: 24
  171. [API]
  172. Id: 25