1 /*
2    Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
3 
4    This program is free software; you can redistribute it and/or modify
5    it under the terms of the GNU General Public License, version 2.0,
6    as published by the Free Software Foundation.
7 
8    This program is also distributed with certain software (including
9    but not limited to OpenSSL) that is licensed under separate terms,
10    as designated in a particular file or component or in included license
11    documentation.  The authors of MySQL hereby grant you an additional
12    permission to link the program and your derivative works with the
13    separately licensed software that they have included with MySQL.
14 
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18    GNU General Public License, version 2.0, for more details.
19 
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
23 */
24 
25 #ifndef MGMAPI_CONFIG_PARAMTERS_H
26 #define MGMAPI_CONFIG_PARAMTERS_H
27 
28 #define CFG_SYS_NAME                  3
29 #define CFG_SYS_PRIMARY_MGM_NODE      1
30 #define CFG_SYS_CONFIG_GENERATION     2
31 #define CFG_SYS_PORT_BASE             8
32 
33 #define CFG_NODE_ID                   3
34 #define CFG_NODE_BYTE_ORDER           4
35 #define CFG_NODE_HOST                 5
36 #define CFG_NODE_SYSTEM               6
37 #define CFG_NODE_DATADIR              7
38 #define CFG_TOTAL_SEND_BUFFER_MEMORY  9
39 #define CFG_LOCATION_DOMAIN_ID        10
40 #define CFG_NODE_DEDICATED            11
41 
42 /**
43  * DB config parameters
44  */
45 #define CFG_DB_NO_SAVE_MSGS           100
46 
47 #define CFG_DB_NO_REPLICAS            101
48 #define CFG_DB_NO_TABLES              102
49 #define CFG_DB_NO_ATTRIBUTES          103
50 #define CFG_DB_NO_TRIGGERS            105
51 
52 #define CFG_DB_NO_TRANSACTIONS        106
53 #define CFG_DB_NO_OPS                 107
54 #define CFG_DB_NO_SCANS               108
55 #define CFG_DB_NO_TRIGGER_OPS         109
56 #define CFG_DB_NO_INDEX_OPS           110
57 
58 #define CFG_DB_TRANS_BUFFER_MEM       111
59 #define CFG_DB_DATA_MEM               112
60 #define CFG_DB_INDEX_MEM              113
61 #define CFG_DB_MEMLOCK                114
62 
63 #define CFG_DB_START_PARTIAL_TIMEOUT   115
64 #define CFG_DB_START_PARTITION_TIMEOUT 116
65 #define CFG_DB_START_FAILURE_TIMEOUT   117
66 
67 #define CFG_DB_HEARTBEAT_INTERVAL     118
68 #define CFG_DB_API_HEARTBEAT_INTERVAL 119
69 #define CFG_DB_LCP_INTERVAL           120
70 #define CFG_DB_GCP_INTERVAL           121
71 #define CFG_DB_ARBIT_TIMEOUT          122
72 #define CFG_DB_ARBIT_METHOD           142
73 
74 #define CFG_DB_WATCHDOG_INTERVAL      123
75 #define CFG_DB_STOP_ON_ERROR          124
76 
77 #define CFG_DB_FILESYSTEM_PATH        125
78 #define CFG_DB_NO_REDOLOG_FILES       126
79 #define CFG_DB_NO_REDOLOG_PARTS       632
80 #define CFG_DB_REDOLOG_FILE_SIZE      140
81 
82 #define CFG_DB_TRANSACTION_CHECK_INTERVAL   129
83 #define CFG_DB_TRANSACTION_INACTIVE_TIMEOUT 130
84 #define CFG_DB_TRANSACTION_DEADLOCK_TIMEOUT 131
85 
86 #define CFG_DB_PARALLEL_BACKUPS           132
87 #define CFG_DB_BACKUP_MEM                 133
88 #define CFG_DB_BACKUP_DATA_BUFFER_MEM     134
89 #define CFG_DB_BACKUP_LOG_BUFFER_MEM      135
90 #define CFG_DB_BACKUP_WRITE_SIZE          136
91 #define CFG_DB_BACKUP_MAX_WRITE_SIZE      139
92 
93 #define CFG_DB_WATCHDOG_INTERVAL_INITIAL  141
94 
95 #define CFG_LOG_DESTINATION           147
96 
97 #define CFG_DB_DISCLESS               148
98 
99 #define CFG_DB_NO_ORDERED_INDEXES     149
100 #define CFG_DB_NO_UNIQUE_HASH_INDEXES 150
101 #define CFG_DB_NO_LOCAL_OPS           151
102 #define CFG_DB_NO_LOCAL_SCANS         152
103 #define CFG_DB_BATCH_SIZE             153
104 
105 #define CFG_DB_UNDO_INDEX_BUFFER      154
106 #define CFG_DB_UNDO_DATA_BUFFER       155
107 #define CFG_DB_REDO_BUFFER            156
108 
109 #define CFG_DB_LONG_SIGNAL_BUFFER     157
110 
111 #define CFG_DB_BACKUP_DATADIR         158
112 
113 #define CFG_DB_MAX_OPEN_FILES         159
114 #define CFG_DB_DISK_PAGE_BUFFER_MEMORY 160 /* used from 5.1 */
115 #define CFG_DB_STRING_MEMORY          161 /* used from 5.1 */
116 #define CFG_DB_INITIAL_OPEN_FILES     162 /* used from 5.1 */
117 
118 #define CFG_DB_DISK_PAGE_BUFFER_MEMORY 160
119 #define CFG_DB_STRING_MEMORY          161
120 
121 #define CFG_DB_DISK_SYNCH_SIZE        163
122 
123 #define CFG_DB_MEMREPORT_FREQUENCY    166
124 #define CFG_DB_BACKUP_REPORT_FREQUENCY    167
125 
126 #define CFG_DB_O_DIRECT               168
127 
128 #define CFG_DB_MAX_ALLOCATE           169
129 #define CFG_DB_MICRO_GCP_INTERVAL     170 /* micro gcp */
130 #define CFG_DB_MICRO_GCP_TIMEOUT      171
131 
132 #define CFG_DB_COMPRESSED_BACKUP      172
133 #define CFG_DB_COMPRESSED_LCP         173
134 
135 #define CFG_DB_SCHED_EXEC_TIME        174
136 #define CFG_DB_SCHED_SPIN_TIME        175
137 #define CFG_DB_REALTIME_SCHEDULER     176
138 #define CFG_DB_EXECUTE_LOCK_CPU       177
139 #define CFG_DB_MAINT_LOCK_CPU         178
140 
141 #define CFG_DB_SUBSCRIPTIONS          179
142 #define CFG_DB_SUBSCRIBERS            180
143 #define CFG_DB_SUB_OPERATIONS         181
144 #define CFG_DB_MAX_BUFFERED_EPOCHS    182
145 #define CFG_DB_SUMA_HANDOVER_TIMEOUT  183
146 
147 #define CFG_DB_STARTUP_REPORT_FREQUENCY 184
148 
149 #define CFG_DB_NODEGROUP              185
150 #define CFG_DB_MT_THREADS             186
151 #define CFG_NDBMT_LQH_THREADS         187
152 #define CFG_NDBMT_LQH_WORKERS         188
153 
154 #define CFG_DB_INIT_REDO              189
155 #define CFG_DB_THREAD_POOL            190
156 
157 #define CFG_NDBMT_CLASSIC             191
158 
159 #define CFG_DB_DD_FILESYSTEM_PATH     193
160 #define CFG_DB_DD_DATAFILE_PATH       194
161 #define CFG_DB_DD_UNDOFILE_PATH       195
162 #define CFG_DB_DD_LOGFILEGROUP_SPEC   196
163 #define CFG_DB_DD_TABLEPACE_SPEC      197
164 
165 #define CFG_DB_SGA                    198 /* super pool mem */
166 #define CFG_DB_DATA_MEM_2             199 /* used in special build in 5.1 */
167 
168 #define CFG_DB_LCP_TRY_LOCK_TIMEOUT   605
169 #define CFG_DB_MT_BUILD_INDEX         606
170 #define CFG_DB_HB_ORDER               607
171 
172 #define CFG_DB_DICT_TRACE             608
173 
174 #define CFG_DB_MAX_START_FAIL         609 /* For StopOnError=0 */
175 #define CFG_DB_START_FAIL_DELAY_SECS  610 /* For StopOnError=0 */
176 
177 #define CFG_DB_REDO_OVERCOMMIT_LIMIT  611
178 #define CFG_DB_REDO_OVERCOMMIT_COUNTER 612
179 
180 #define CFG_DB_EVENTLOG_BUFFER_SIZE   613
181 #define CFG_DB_NUMA                   614
182 #define CFG_DB_LATE_ALLOC             615
183 
184 #define CFG_DB_2PASS_INR              616
185 #define CFG_DB_PARALLEL_SCANS_PER_FRAG 617
186 
187 #define CFG_DB_CONNECT_CHECK_DELAY    618
188 
189 #define CFG_DB_START_NO_NODEGROUP_TIMEOUT 619
190 
191 #define CFG_DB_INDEX_STAT_AUTO_CREATE    620
192 #define CFG_DB_INDEX_STAT_AUTO_UPDATE    621
193 #define CFG_DB_INDEX_STAT_SAVE_SIZE      622
194 #define CFG_DB_INDEX_STAT_SAVE_SCALE     623
195 #define CFG_DB_INDEX_STAT_TRIGGER_PCT    624
196 #define CFG_DB_INDEX_STAT_TRIGGER_SCALE  625
197 #define CFG_DB_INDEX_STAT_UPDATE_DELAY   626
198 
199 #define CFG_DB_MAX_DML_OPERATIONS_PER_TRANSACTION 627
200 #define CFG_DB_MT_THREAD_CONFIG          628
201 
202 #define CFG_DB_CRASH_ON_CORRUPTED_TUPLE  629
203 #define CFG_DB_FREE_PCT                  630
204 
205 #define CFG_DB_LCP_SCAN_WATCHDOG_LIMIT   631
206 
207 /* 632 used for CFG_DB_NO_REDOLOG_PARTS */
208 
209 #define CFG_DB_AT_RESTART_SKIP_INDEXES   633
210 #define CFG_DB_AT_RESTART_SKIP_FKS       634
211 #define CFG_DB_SERVER_PORT               635
212 #define CFG_DB_TCPBIND_INADDR_ANY        636
213 #define CFG_DB_AT_RESTART_SUBSCRIBER_CONNECT_TIMEOUT 637
214 
215 #define CFG_DB_MIN_DISK_WRITE_SPEED   638
216 #define CFG_DB_MAX_DISK_WRITE_SPEED   639
217 #define CFG_DB_MAX_DISK_WRITE_SPEED_OTHER_NODE_RESTART   640
218 #define CFG_DB_MAX_DISK_WRITE_SPEED_OWN_RESTART   641
219 
220 /* <= 641 used */
221 #define CFG_MIXOLOGY_LEVEL            642
222 #define CFG_DB_PARALLEL_COPY_THREADS  643
223 #define CFG_DB_MAX_SEND_DELAY         644
224 #define CFG_DB_BACKUP_DISK_WRITE_PCT  645
225 
226 #define CFG_DB_SCHED_RESPONSIVENESS   646
227 
228 #define CFG_DB_SCHED_SCAN_PRIORITY    647
229 
230 #define CFG_DB_DISK_DATA_FORMAT       648
231 #define CFG_DB_ENABLE_PARTIAL_LCP     649
232 #define CFG_DB_O_DIRECT_SYNC_FLAG     650
233 
234 #define CFG_DB_UI_BUILD_MAX_BATCHSIZE 651
235 #define CFG_DB_FK_BUILD_MAX_BATCHSIZE 652
236 #define CFG_DB_REORG_BUILD_MAX_BATCHSIZE 653
237 #define CFG_DB_RECOVERY_WORK          654
238 #define CFG_DB_USE_SHM                655
239 #define CFG_DB_INSERT_RECOVERY_WORK   656
240 #define CFG_DB_WATCHDOG_IMMEDIATE_KILL 657
241 #define CFG_DB_ENABLE_REDO_CONTROL    658
242 #define CFG_DB_ENABLE_MT_BACKUP       659
243 
244 #define CFG_DB_RESERVED_INDEX_OPS     660
245 #define CFG_DB_RESERVED_TRIGGER_OPS   661
246 #define CFG_DB_RESERVED_OPS           662
247 #define CFG_DB_RESERVED_LOCAL_SCANS   663
248 #define CFG_DB_RESERVED_TRANSACTIONS  664
249 #define CFG_DB_RESERVED_SCANS         665
250 #define CFG_DB_RESERVED_TRANS_BUFFER_MEM 666
251 
252 #define CFG_DB_TRANSACTION_MEM        667
253 #define CFG_DB_MAX_DD_LATENCY         668
254 #define CFG_DB_DD_USING_SAME_DISK     669
255 #define CFG_DB_NODE_GROUP_TRANSPORTERS 670
256 #define CFG_DB_SPIN_METHOD            671
257 #define CFG_DB_SPIN_TIME_PER_CALL     672
258 
259 #define CFG_NODE_ARBIT_RANK           200
260 #define CFG_NODE_ARBIT_DELAY          201
261 #define CFG_EXTRA_SEND_BUFFER_MEMORY  203
262 
263 #define CFG_MGMD_MGMD_HEARTBEAT_INTERVAL 204
264 
265 #define CFG_DB_DISK_PAGE_BUFFER_ENTRIES 205
266 
267 #define CFG_DB_GCP_TIMEOUT           206
268 
269 #define CFG_MIN_LOGLEVEL          250
270 #define CFG_LOGLEVEL_STARTUP      250
271 #define CFG_LOGLEVEL_SHUTDOWN     251
272 #define CFG_LOGLEVEL_STATISTICS   252
273 #define CFG_LOGLEVEL_CHECKPOINT   253
274 #define CFG_LOGLEVEL_NODERESTART  254
275 #define CFG_LOGLEVEL_CONNECTION   255
276 #define CFG_LOGLEVEL_INFO         256
277 #define CFG_LOGLEVEL_WARNING      257
278 #define CFG_LOGLEVEL_ERROR        258
279 #define CFG_LOGLEVEL_CONGESTION   259
280 #define CFG_LOGLEVEL_DEBUG        260
281 #define CFG_LOGLEVEL_BACKUP       261
282 #define CFG_LOGLEVEL_SCHEMA       262
283 #define CFG_MAX_LOGLEVEL          262
284 
285 #define CFG_MGM_PORT                  300
286 
287 #define CFG_DB_MAX_BUFFERED_EPOCH_BYTES 350
288 
289 #define CFG_CONNECTION_NODE_1         400
290 #define CFG_CONNECTION_NODE_2         401
291 #define CFG_CONNECTION_SEND_SIGNAL_ID 402
292 #define CFG_CONNECTION_CHECKSUM       403
293 #define CFG_CONNECTION_NODE_1_SYSTEM  404
294 #define CFG_CONNECTION_NODE_2_SYSTEM  405
295 #define CFG_CONNECTION_SERVER_PORT    406
296 #define CFG_CONNECTION_HOSTNAME_1     407
297 #define CFG_CONNECTION_HOSTNAME_2     408
298 #define CFG_CONNECTION_GROUP          409
299 #define CFG_CONNECTION_NODE_ID_SERVER 410
300 #define CFG_CONNECTION_OVERLOAD       411
301 #define CFG_CONNECTION_PRESEND_CHECKSUM 412
302 
303 #define CFG_TCP_SERVER                452
304 #define CFG_TCP_SEND_BUFFER_SIZE      454
305 #define CFG_TCP_RECEIVE_BUFFER_SIZE   455
306 #define CFG_TCP_PROXY                 456
307 #define CFG_TCP_RCV_BUF_SIZE          457
308 #define CFG_TCP_SND_BUF_SIZE          458
309 #define CFG_TCP_MAXSEG_SIZE           459
310 #define CFG_TCP_BIND_INADDR_ANY       460
311 #define CFG_TCP_SPINTIME              461
312 
313 #define CFG_SHM_SEND_SIGNAL_ID        500
314 #define CFG_SHM_CHECKSUM              501
315 #define CFG_SHM_KEY                   502
316 #define CFG_SHM_BUFFER_MEM            503
317 #define CFG_SHM_SIGNUM                504 //Deprecated
318 #define CFG_SHM_SPINTIME              505
319 #define CFG_SHM_SEND_BUFFER_SIZE      506
320 
321 /**
322  * No longer used, deprecated
323  */
324 #define CFG_SCI_HOST1_ID_0            550
325 #define CFG_SCI_HOST1_ID_1            551
326 #define CFG_SCI_HOST2_ID_0            552
327 #define CFG_SCI_HOST2_ID_1            553
328 #define CFG_SCI_SEND_LIMIT            554
329 #define CFG_SCI_BUFFER_MEM            555
330 
331 #define CFG_602                       602 /* Removed: was OSE */
332 #define CFG_603                       603 /* Removed: was OSE */
333 #define CFG_604                       604 /* Removed: was OSE */
334 
335 /**
336  * API Config variables
337  *
338  */
339 #define CFG_MAX_SCAN_BATCH_SIZE       800
340 #define CFG_BATCH_BYTE_SIZE           801
341 #define CFG_BATCH_SIZE                802
342 #define CFG_AUTO_RECONNECT            803
343 #define CFG_HB_THREAD_PRIO            804
344 #define CFG_DEFAULT_OPERATION_REDO_PROBLEM_ACTION 805
345 #define CFG_DEFAULT_HASHMAP_SIZE      806
346 #define CFG_CONNECT_BACKOFF_MAX_TIME 807
347 #define CFG_START_CONNECT_BACKOFF_MAX_TIME 808
348 #define CFG_API_VERBOSE               809
349 
350 /**
351  * Internal
352  */
353 #define CFG_DB_STOP_ON_ERROR_INSERT   1
354 
355 #define CFG_TYPE_OF_SECTION           999
356 #define CFG_SECTION_SYSTEM            1000
357 #define CFG_SECTION_NODE              2000
358 #define CFG_SECTION_CONNECTION        3000
359 
360 #define NODE_TYPE_DB                  0
361 #define NODE_TYPE_API                 1
362 #define NODE_TYPE_MGM                 2
363 
364 #define CONNECTION_TYPE_TCP           0
365 #define CONNECTION_TYPE_SHM           1
366 #define CONNECTION_TYPE_SCI           2 /* Removed */
367 #define CONNECTION_TYPE_OSE           3 /* Removed. */
368 
369 #define ARBIT_METHOD_DISABLED         0
370 #define ARBIT_METHOD_DEFAULT          1
371 #define ARBIT_METHOD_WAITEXTERNAL     2
372 
373 #define OPERATION_REDO_PROBLEM_ACTION_ABORT 0
374 #define OPERATION_REDO_PROBLEM_ACTION_QUEUE 1
375 
376 #endif
377