Оптимальное использование ресурсов системы

Всем привет.
После расширения дискового пространства с 2тб до 13.5тб стало интересно, а можно как-нибудь оптимизировать использование ресурсов?
Система ubuntu 18.04, 7 дисков по примерно 2.7 тб каждый, упихано в RAID6 потому что некоторым дискам довольно плохо. Занято на данный момент около 2,2 тб, и это почти через месяц после апгрейда. Канал 300мбит, под ноду спокойно могу отдать 150-200мбит. Занятое место повышается на 40-60 гб в день, получается, большой объем дискового пространства простаивает впустую, трафик не задействован. Есть способы оптимизировать использование ресурсов? Поможет ли запуск нод, или сейчас запуск нескольких нод с одного айпи ведет к дисквалификации?

Добро пожаловать!
Storj Labs рекомендует не использовать RAID. Один узел должен быть запущен для каждого физического диска. Запустите столько узлов (даже на одном IP-адресе), сколько у вас физических дисков.
Вы можете запустить несколько узлов на одном IP-адресе, это не приведет к дисквалификации. Однако все узлы, работающие в одной подсети (на / 22), совместно используют файлы загрузки, выгрузки и собственные файлы. Это означает, что все узлы на одном IP-адресе функционируют как один большой узел (кроме аудита, они являются отдельными для каждого узла).
RAID не рекомендуется, потому что Storj имеет собственную репликацию данных. Если диск выходит из строя, просто замените его новым и запустите новый узел с новым идентификатором.

Я не говорю по-русски (я из Польши) и пользуюсь переводчиком. Если что-то в моем утверждении неясно, пожалуйста, спросите, я опишу это лучше.

на / 24
я также из Польши

So let’s assume
two addresses:
94.XX.125.10
and
94.XX.125.11
where XX are the same in both addresses sharing traffic? Do i understand correctly?

Hi, i can use english anyway. So, i have 2 disks, that are nearly die. That’s only reason i use raid6. I read theme about using raid or not, here. Using raid seems more profitable in long term perspective.
If i start node per each disk would all of them wait untill get 100 checkouts (or how it named, u should understand)?
Is anywhere a guide how to start multiple nodes on one machine?
Is there still a limit 1 processor core per node?

‘100 checkouts’ - correct name is “Audits”
Each node should have one processor core and 1GB of RAM reserved.

Is anywhere a guide how to start multiple nodes on one machine?

Just run the next nodes just like the first. This may seem harder at begin, but I recommend you start multiple nodes using CLI instead of GUI

Summary i have 8x3TiB hard drives and processor with 8 logical cores (xeon E3-1265L). And 16gb ram. Thats should be enought?
Is it any way to migrate from raid6 to 1hd back without stopping a node? becouse it will take more than 12hours, i think

Thats should be enought?

Without any problem. Storj is realy well optimized.

Is it any way to migrate from raid6 to 1hd back without stopping a node?

Unforutunately I don’t think so. You need to stop your node, migrate files and run it back online.
Remember that now there is no disqualification on the network for switching off the node for more than 5 hours. You can do it safely. Your node may lose some reputation while it is offline but will quickly regain it after restoring it online.

i already have low uptime. Migrating from hdd to raid tooks at about 18 hours
92,6% on stefan benten satellite

So you can wait a little bit for reputation will recover or no matter what, try to migrate the nodes and start them as soon as possible after moving.

92,6% on stefan benten satellite

Not good not terrible. I think you can migrate now without a problem. Reputation will recover after whole process.

hmm. Let’s try. And some more questions. Rating count for each node personaly, or summary for all of them? And what about monitoring? For each node its own dashboard or for all of them together?

Can i let node work while copy data, or thats bad idea?

Rating count for each node personaly, or summary for all of them?

Each node has separate audit indications and uptime.

And what about monitoring? For each node its own dashboard or for all of them together?

Each node has separate dashboard. You can collect all the data together from API with simple python script.

Can i let node work while copy data, or thats bad idea?

That’s terrible idea, don’t do this. Correct startup of the node in the new location can only guarantee the correct transfer of all files (1:1)

I’m started first node via cli, because using ubuntu server with no gui. Docker should detect conflict and prevent start storagenode becouse it already running, shouldn’t it?

This is docker run command for Linux, look at the last line:

docker run -d --restart unless-stopped -p 28967:28967 \
    -p 127.0.0.1:14002:14002 \
    -e WALLET="0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
    -e EMAIL="user@example.com" \
    -e ADDRESS="domain.ddns.net:28967" \
    -e BANDWIDTH="20TB" \
    -e STORAGE="2TB" \
    --mount type=bind,source="<identity-dir>",destination=/app/identity \
    --mount type=bind,source="<storage-dir>",destination=/app/config \
    --name storagenode storjlabs/storagenode:beta

change --name storagenode to --name storagenode2 or something like that.
Remember that each node needs a separate signed with token identity!

hmm, i got it. Any ports changing are necessary?

damn. Does it need separate authorization token?

Yes it need separete token and indentity

1 Like

Any ports changing are necessary?

Yes, if you running all nodes on same IP you need to change ports for node itself and dashboard. All services needs unique port numbers

this will last forever

Finally, my node back online. I tried to change ports, but node keeps staring offline. Only with default ports it starts normally.

Editing public adress helps to get node online. What to do with dashboard? Im trying to change it from 14002 to 14001 but it doesn’t work