MySQL  8.0.20
Source Code Documentation
xcom_profile.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef XCOM_CONFIG_H
24 #define XCOM_CONFIG_H
25 
26 /* Use global node set to decide if proposal should be sent */
27 #define PROPOSE_IF_LEADER
28 
29 /* Always use the full three phase Paxos protocol */
30 /* #define ALWAYS_THREEPHASE */
31 
32 /* Make node 0 the default arbitrator */
33 /* #define NODE_0_IS_ARBITRATOR */
34 
35 /* On first propose, wait for all nodes, not just majority */
36 /* #define WAIT_FOR_ALL_FIRST */
37 
38 /* Do not delay termination of xcom */
39 /* #define NO_DELAYED_TERMINATION */
40 
41 /* Define this if you want integrity check of message contents */
42 /* #define USE_CHECKSUM */
43 
44 /* React to garbage by sending more garbage back */
45 /* #define XCOM_ECM */
46 
47 /* #define USE_EXIT_TYPE */
48 
49 /* Run without sweeper task */
50 /* #define NO_SWEEPER_TASK */
51 
52 /* Impose upper limit on delivery time? */
53 /* #define DELIVERY_TIMEOUT */
54 
55 /* #define IGNORE_LOSERS */
56 
57 #define BUILD_TIMEOUT 3.0
58 
59 #define TERMINATE_DELAY 3.0
60 
61 /* Error injection for testing */
62 #define INJECT_ERROR 0
63 
64 /* #define USE_EXIT_TYPE */
65 /* #define NO_SWEEPER_TASK */
66 
67 /* #define ACCEPT_SITE_TEST */
68 
69 /* Define this to enable the binary event logger */
70 /* #define TASK_EVENT_TRACE */
71 
72 /* Make sweeper task run more often */
73 #define AGGRESSIVE_SWEEP
74 
75 /* Turn automatic batching on or off */
76 #define AUTOBATCH 1
77 
78 enum {
81  MAX_BATCH_SIZE = 0x3fffffff, /* Limit batch size to sensible ? amount */
82  MAX_BATCH_APP_DATA = 5000, /* Limit nr. of batched elements */
83  MAX_DEAD = 10,
84  PROPOSERS = 10 /* The number of proposers on one node */
85 };
86 
87 /* How long to wait for snapshots when trying to find the best node to recover
88  * from */
89 #define SNAPSHOT_WAIT_TIME 3.0
90 
91 #endif
Definition: xcom_profile.h:81
Definition: xcom_profile.h:80
Definition: xcom_profile.h:82
Definition: xcom_profile.h:84
Definition: xcom_profile.h:79
Definition: xcom_profile.h:83