<p>Hey George,</p>
<p>Initially, I got a sync error, so I deleted the files in 'chain' and 'wallets' from appdata Daedalus Mainnet folder and did a full resync. The issue is that it's been more than 24 hrs and it's at 78% synced.</p>
<p>Is there a way to speed up the Daedalus Mainnet sync process?</p>
<p>Thank you,
Florin</p>

CC BY-SA 4.0
2023-08-08T15:29:21.440Z
2023-08-08T15:31:24.657Z
2023-08-08T15:31:24.657Z
Florin's TradingHub
<p>Your node is starting slow because it was not stopped normally.
You can add more CPU Cores to the process, but this will still not start the cardano-node quick when it is stopped abnormally. But you can still make it start fast in this case by creating an empty file with the name &quot;clean&quot; in the db folder, while it is stopped, and then start it.</p>
<p>If you can post the systemd service file you use for the cardano-node service definition, I can tell you what to change so that the service is stopped normally.</p>
<p>EDIT: I updated your service file:</p>
<pre><code>[Unit]
Description=Cardano Node for mainnet
After=network.target

[Service]
User=cardano
Type=simple
RemainAfterExit=yes
ExecStart=/home/cardano/.local/bin/cardano-node run +RTS -N -RTS --database-path /home/cardano/cnode/db --socket-path /home/cardano/cnode/sockets/node.socket --port 3001 --config /home/cardano/cnode/config/mainnet-config.json  --topology /home/cardano/cnode/config/mainnet-topology.json
Restart=on-failure
KillSignal= SIGINT
TimeoutStopSec=300
LimitNOFILE=32768
RestartSec=5

[Install]
WantedBy=multi-user.target
</code></pre>

CC BY-SA 4.0
2022-04-30T09:42:48.987Z
Thanks, I have asked about cleanly shutting down cardano-node before and never really got a good answer, question edited to include systemd file.  Also if more cores can be added, that would also be good, how can I do that please?
Scalextrix
CC BY-SA 4.0
2022-04-30T10:08:56.047Z
I edited my post with the required modifications to your service file.
George - APEX Stake Pool
CC BY-SA 4.0
2022-04-30T12:55:15.703Z
Thanks, I didnt want the RTS flags but the other parts were useful
Scalextrix
CC BY-SA 4.0
2022-04-30T08:49:22.360Z
2022-04-30T10:08:19.793Z
2022-04-30T10:08:19.793Z
George - APEX Stake Pool
<p>cardano-node is now taking around 50 minutes to start on my hardware, I dont do it often but its quite slow.  I think the issue is the process where it replays all the block chunks.</p>
<p>That seems to be pretty much a single threaded process, is there any way to parallelize it with more CPU cores?</p>
<p>Systemd service file:</p>
<pre><code>[Unit]
Description=Cardano Node for mainnet
After=network.target

[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/home/cardano/.local/bin/cardano-node run --database-path /home/cardano/cnode/db --socket-path /home/cardano/cnode/sockets/node.socket --port 3001 --config /home/cardano/cnode/config/mainnet-config.json  --topology /home/cardano/cnode/config/mainnet-topology.json
Restart=on-failure
RestartSec=60
User=cardano

[Install]
WantedBy=multi-user.target
</code></pre>

<cardano-node>
Any way to speed up cardano-node startup?
# Any way to speed up cardano-node startup?

(Asked by: username_0 on 2022-04-30)

cardano-node is now taking around 50 minutes to start on my hardware, I dont do it often but its quite slow.  I think the issue is the process where it replays all the block chunks.
That seems to be pretty much a single threaded process, is there any way to parallelize it with more CPU cores?
Systemd service file:
[Unit]
Description=Cardano Node for mainnet
After=network.target

[Service]
Type=simple
RemainAfterExit=yes
ExecStart=/home/cardano/.local/bin/cardano-node run --database-path /home/cardano/cnode/db --socket-path /home/cardano/cnode/sockets/node.socket --port 3001 --config /home/cardano/cnode/config/mainnet-config.json  --topology /home/cardano/cnode/config/mainnet-topology.json
Restart=on-failure
RestartSec=60
User=cardano

[Install]
WantedBy=multi-user.target

**Tags:** cardano-node

---

## 2 answers

### Answer by username_2 on 2022-04-30. Score: 2 | Accepted answer

Your node is starting slow because it was not stopped normally.
You can add more CPU Cores to the process, but this will still not start the cardano-node quick when it is stopped abnormally. But you can still make it start fast in this case by creating an empty file with the name "clean" in the db folder, while it is stopped, and then start it.
If you can post the systemd service file you use for the cardano-node service definition, I can tell you what to change so that the service is stopped normally.
EDIT: I updated your service file:
[Unit]
Description=Cardano Node for mainnet
After=network.target

[Service]
User=cardano
Type=simple
RemainAfterExit=yes
ExecStart=/home/cardano/.local/bin/cardano-node run +RTS -N -RTS --database-path /home/cardano/cnode/db --socket-path /home/cardano/cnode/sockets/node.socket --port 3001 --config /home/cardano/cnode/config/mainnet-config.json  --topology /home/cardano/cnode/config/mainnet-topology.json
Restart=on-failure
KillSignal= SIGINT
TimeoutStopSec=300
LimitNOFILE=32768
RestartSec=5

[Install]
WantedBy=multi-user.target

> **Comments:**
> **username_0**: Thanks, I have asked about cleanly shutting down cardano-node before and never really got a good answer, question edited to include systemd file.  Also if more cores can be added, that would also be good, how can I do that please?  
> **username_2**: I edited my post with the required modifications to your service file.  
> **username_0**: Thanks, I didnt want the RTS flags but the other parts were useful  

---

### Answer by username_1 on 2023-08-08. Score: 0

Hey George,

Initially, I got a sync error, so I deleted the files in 'chain' and 'wallets' from appdata Daedalus Mainnet folder and did a full resync. The issue is that it's been more than 24 hrs and it's at 78% synced.

Is there a way to speed up the Daedalus Mainnet sync process?

Thank you,
Florin


---

