Skip to content

Server Setup

Boombastic edited this page Dec 14, 2016 · 1 revision

3 Servers work as witness node server, one of them acts as master server, besides running witness node, it also runs www service and load balancer.

Master Server has higher hardware setup, witness nodes only run witness node, they have lower hardware setup.

Servers

  • art1.artwook.com (master server)

    • 4 core 8G
    • 120.26.223.17
    • witness node
    • web: www.artwook.com
    • web socket server: ws.artwook.com
      • load balancer of (art1, art2, art3)
  • art2: witness node

    • 2 core 4G
    • 121.40.51.203
    • witness node
  • art3: witness node

    • 2 core 4G
    • 120.26.115.184
    • witness node

Ledger

source: github.com/artwook/ledger

it should be pulled and compiled at art1 (or some other compiling server if art1 is heavily loaded) and distribute binary to art2 and art3.

Build and Distribute

ssh runner@art1
cd data/ledger
# fetch new code
git pull origin master
# build binary
./build.sh
# copy binary to art2 and art3
./distribute.sh

Start witness node

TODO

ssh runner@art1
cd data/ledger
# run witness
./run.sh
# run wallet
./wallet.sh

Clone this wiki locally