# Is it safe to restart the Core node each day at specific time just like the Relay?

**URL:** <https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335>\
**Category:** Operate a Stake Pool\
**Created:** [30 April 2021 18:16 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335 "2021-04-30T18:16:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmihaylov](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/gmihaylov/32/30097_2.png) [@gmihaylov](https://forum.cardano.org/u/gmihaylov)\
**Post date:** [30 April 2021 18:16 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/1 "2021-04-30T18:16:47Z")

</div>

Hello guys,  
I have set up a scheduled restart of the Relay node every night at 3 A.M. just after the mainnet-topology.json update from [https://api.clio.one/htopology/v1/fetch/](https://api.clio.one/htopology/v1/fetch/). After the 1.26.2 update the Core node seems to use a lot of CPU and sometimes it hangs and can’t connect to the Relay. Is it safe to restart the Core node each day at specific time just like the Relay?

Thanks!

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [30 April 2021 18:50 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/2 "2021-04-30T18:50:31Z")

</div>

It is safe only if at that time around the node is not scheduled to create block.  
does the mempool trace enabled in the config? that usually solves the high CPU usage.  
in which state it hangs? during a running state? or during a starting state? in starting state it can hang up to ~5 min…

---

<div class="post-metadata">

**Author:** ![gmihaylov](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/gmihaylov/32/30097_2.png) [@gmihaylov](https://forum.cardano.org/u/gmihaylov)\
**Post date:** [30 April 2021 20:22 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/3 "2021-04-30T20:22:22Z")

</div>

@lapasz TraceMemPool is true on both Relay & Core Nodes

No, it doesn’t stuck at the start. It loses the connection to the Relay node at some point, let’s say 10 hours after the last restart of the Core node. That started to happen when I migrated to 1.26.2. From the screenshot below, seems that the relay is also loosing connection to other relays.

![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/8/b/8b420b15d353566ab16727afdea1b0331c58802c.png)

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [30 April 2021 20:29 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/4 "2021-04-30T20:29:00Z")

</div>

ok, so try running the nodes without mempool trace and see what happens

---

<div class="post-metadata">

**Author:** ![gmihaylov](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/gmihaylov/32/30097_2.png) [@gmihaylov](https://forum.cardano.org/u/gmihaylov)\
**Post date:** [30 April 2021 20:34 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/5 "2021-04-30T20:34:21Z")

</div>

![2021-04-30 23-29-48](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/9/1/91e30c8a349e4d63e561adb2dc1fc3006c95d5a4.gif)

Looking at the RTView the the Relay Node is showing that it can’t connect to the Core node (192.168.220.220:6000), The Core node (at the right side) is blinking the Relay node 192.168.220.220:3001. At the same time the Grafana shows the both nodes synced and processing TX’s.

---

<div class="post-metadata">

**Author:** ![laplasz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/laplasz/32/15238_2.png) [@laplasz](https://forum.cardano.org/u/laplasz)\
**Post date:** [30 April 2021 21:05 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/6 "2021-04-30T21:05:53Z")

</div>

somehow the core rejects the connection attempt… would be good to know why… but right now I dont have any idea - in the block producer config do you have TraceBlockFetchClient enabled?

---

<div class="post-metadata">

**Author:** ![tomdx](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/tomdx/32/44498_2.png) [@tomdx](https://forum.cardano.org/u/tomdx)\
**Post date:** [1 May 2021 05:42 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/7 "2021-05-01T05:42:37Z")

</div>

It is probably best to [obtain the leaderlog](https://tdiesler.gitbook.io/cardano/v/iohk/plain-docker/running-the-nodes#leaderlog-schedule) first, to be sure that your pool is not scheduled for a block before you do any maintenance.

---

<div class="post-metadata">

**Author:** ![gmihaylov](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/gmihaylov/32/30097_2.png) [@gmihaylov](https://forum.cardano.org/u/gmihaylov)\
**Post date:** [1 May 2021 14:16 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/8 "2021-05-01T14:16:58Z")

</div>

I set TraceMemPool = false on the BP node. There is a little improvement. But still the BP node looses the connection to the Relay node sometimes and the Relay looses the connection to other relays.

This is the graph from the last three hours:  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/0/d/0d7eef8590fd43b0cb05e7e17daf6945485f9f6d.png)

Both the relay and the core node are running on the same machine. And I think the problem is because there is not enough memory. Both nodes are using 100% of the total of 8Gigs. I think it’s time to upgrade to 16gigs of RAM

 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/a/1/a17d8c4f38e5842216d2874f929fe910ac940b86.png)

---

<div class="post-metadata">

**Author:** ![Psychomb](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/psychomb/32/16719_2.png) [@Psychomb](https://forum.cardano.org/u/Psychomb)\
**Post date:** [1 May 2021 15:49 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/9 "2021-05-01T15:49:40Z")

</div>

8Gb requirement is for one node on one machine. So yeah, I’d say running BP and relay on the same machine, on top of being a bad practice, is also hard to do now.

---

<div class="post-metadata">

**Author:** ![gmihaylov](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/gmihaylov/32/30097_2.png) [@gmihaylov](https://forum.cardano.org/u/gmihaylov)\
**Post date:** [1 May 2021 17:28 UTC](https://forum.cardano.org/t/is-it-safe-to-restart-the-core-node-each-day-at-specific-time-just-like-the-relay/59335/10 "2021-05-01T17:28:45Z")

</div>

Yeah, I know that. At the beginning I started the two nodes on the same bare metal server only for the proof of concept. Now I think it’s time to separate the core node to new machine 🙂
