# Safe\_to\_bootstrap is not set to 1 when using Galera Arbitrator

**URL:** <https://forums.percona.com/t/safe-to-bootstrap-is-not-set-to-1-when-using-galera-arbitrator/24529>\
**Category:** Percona XtraDB Cluster 5.x\
**Tags:** mysql, percona\
**Created:** [August 18, 2023, 8:42am UTC](https://forums.percona.com/t/safe-to-bootstrap-is-not-set-to-1-when-using-galera-arbitrator/24529 "2023-08-18T08:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iam980](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@iam980](https://forums.percona.com/u/iam980)\
**Post date:** [August 18, 2023, 8:42am UTC](https://forums.percona.com/t/safe-to-bootstrap-is-not-set-to-1-when-using-galera-arbitrator/24529/1 "2023-08-18T08:42:01Z")

</div>

Hello,

Currently I am using thee nodes system -  
with 2 nodes of MySql instances and one node with Galera Arbitrator installed on it.

When shutting down nodes gracefully, with the arbitrator as the last node to be shut down - safe\_to\_bootstrap parameter value is not set to 1, on neither of mysql server nodes.

Is this the default behaviour by design ?

Is it possible to have safe\_to\_bootstrap parameter value set to 1 on the last of the mysql node being shut down, even in case when last node to be shut down is Arbitrator’s node ?

Thank you.  
Regards

Joseph

---

<div class="post-metadata">

**Author:** ![kedarpercona](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kedarpercona/32/809_2.png) [@kedarpercona](https://forums.percona.com/u/kedarpercona)\
**Post date:** [August 18, 2023, 9:12am UTC](https://forums.percona.com/t/safe-to-bootstrap-is-not-set-to-1-when-using-galera-arbitrator/24529/2 "2023-08-18T09:12:35Z")

</div>

Hello @iam980 and welcome to Percona Community.

Interesting question. By theory, the last node that safely leaves the cluster will have the safe\_to\_bootstrap set to 1. If garbd is the last to go down, ofcourse it doesn’t really maintain the data and cannot be bootstrapped =\> no point of safe\_to\_bootstrap there.  
The secondlast node doesn’t really have a way to know that the last node of the cluster is garbd or not! I have not tested this behaviour but if we’re doing a graceful shutdown, arbitrator should be the first one to go down and we will have no such questions.  
If you’ve already performed out of order shutdowns, you can always use wsrep-recover to identify the last txn to exec and start from there.

Finally to answer your question:

_“Is this the default behaviour by design ?”_ → I believe so. Have not checked.  
_“Is it possible to have safe\_to\_boot… last node to be shut down is Arbitrator’s node ?”_ → If it is graceful process, shutdown arbitrator first.

Thanks,  
K

---

<div class="post-metadata">

**Author:** ![iam980](https://avatars.discourse-cdn.com/v4/letter/i/858c86/32.png) [@iam980](https://forums.percona.com/u/iam980)\
**Post date:** [August 18, 2023, 10:22am UTC](https://forums.percona.com/t/safe-to-bootstrap-is-not-set-to-1-when-using-galera-arbitrator/24529/3 "2023-08-18T10:22:50Z")

</div>

Hello,

Thank You for the quick answer !

You helped me greatly -  
I will take your advice into account (about arbitrator to be the first node to go down, when performing graceful shutdowns)

Regards,  
Joseph
