NebulousLabs / docker-sia

The official docker image for the Sia daemon
https://sia.tech
MIT License
20 stars 1 forks source link

Possibility to have the consensus in another volume #50

Closed polpas closed 3 years ago

polpas commented 3 years ago

In order to have skynet and consensus working in full speed wirh an SSD is there a way to have them in a spearate volume?

Is it possible to pass it as an argument when we execute the docker file?

ro-tex commented 3 years ago

Well, siad controls where it stores the consensus and the rest of its data (except the apipassword) via the SIAD_DATA_DIR environment variable. So it will not allow you to control that via docker arguments alone.

What you could try is:

I haven't tried this and I'm not sure it would work but it seems like a potential way to achieve what you want.

Before doing all this, it's worth digging a little bit into the question. What, exactly, do you mean by "skynet and consensus working in full speed"? Are you trying to maximize Skynet's throughput and are worried that syncing the consensus will use up I/O and thus slow you down? While this is factually correct, syncing one block (and some small extra data) once per 10 minutes is not going to have any measurable effect on your host's disk throughput. So I wouldn't worry about it at all.

polpas commented 3 years ago

I enabled skynet and was worried that my disk access would prevent a good throughput considering placing both consensus and skynet in an ssd volume