yasiryagi 1b6a250bb1 Storage documentation (#850) 2 năm trước cách đây
..
config 1b6a250bb1 Storage documentation (#850) 2 năm trước cách đây
README.md 1b6a250bb1 Storage documentation (#850) 2 năm trước cách đây
docker-compose.yml 1b6a250bb1 Storage documentation (#850) 2 năm trước cách đây

README.md

Configure Joystream Node

Distributor Node

In joystream/distributor-node/config.yml configure the below section

logs:
  elastic:
    level: info
    endpoint: https://<elasticsearch.your.cool.url>

Storage Node

In /etc/systemd/system/storage-node.service add the -e flag

ExecStart=/root/.volta/bin/yarn storage-node server \
        -u ws://localhost:9944 \
        -w <workerId> \
        -o 3333 \
        -l /<root/joystream-storage>/log/ \
        -d /<root/joystream-storage> \
        -q http://localhost:8081/graphql \
        -p <Passowrd> \
        -k /root/keys/storage-role-key.json \
        -e https://<elasticsearch.your.cool.url> \
        -s

Configure Packetbeat and Metricbeat

git clone https://github.com/yasiryagi/elasticsearch-docker.git
cd elasticsearch-docker/client/

Edit config/packetbeat/packetbeat.yml:

  • name: Node Name
  • tags:
    • SP : Storage Provider
    • DP : Distributor Provicder
    • PB : Packetbeat
    • MB : Metricsbeat
  • packetbeat.interfaces.device: Your device interface
  • hosts : The elasticsearch host
  • username: Username provided by the admin
  • password: Username provided by the admin

Edit config/metricbeat/metricbeat.yml:

  • name: Node Name
  • tags:
    • SP : Storage Provider
    • DP : Distributor Provicder
    • PB : Packetbeat
    • MB : Metricsbeat
  • hosts : The elasticsearch host
  • username: Username provided by the admin
  • password: Username provided by the admin

Start the containers

docker-compose up -d