fix harmony.sh RUN command
update README_HARMONY.md enable prometheus for harmony.sh
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
RUN mkdir -p /harmony/harmony_db_0 /harmony/harmony_db_1 /harmony/harmony_db_2 /harmony/harmony_db_3 /harmony/log /harmony/.hmy
|
mkdir -p /harmony/harmony_db_0 /harmony/harmony_db_1 /harmony/harmony_db_2 /harmony/harmony_db_3 /harmony/log /harmony/.hmy
|
||||||
|
|
||||||
cat<<-EOF > rclone.conf
|
cat<<-EOF > rclone.conf
|
||||||
[release]
|
[release]
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ version: '3.1'
|
|||||||
services:
|
services:
|
||||||
harmony-mainnet:
|
harmony-mainnet:
|
||||||
build: ./harmony/build
|
build: ./harmony/build
|
||||||
command: bash -c "/harmony.sh && /binary --log.dir /harmony/log --run.shard 1 --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony"
|
command: bash -c "/harmony.sh && /binary --log.dir /harmony/log --run.shard 1 --dns.zone t.hmny.io --http.ip 0.0.0.0 --datadir /harmony --prometheus true"
|
||||||
sysctls:
|
sysctls:
|
||||||
net.core.somaxconn: 1024
|
net.core.somaxconn: 1024
|
||||||
# net.core.netdev_max_backlog: 65536
|
# net.core.netdev_max_backlog: 65536
|
||||||
@@ -58,7 +58,7 @@ services:
|
|||||||
image: prom/prometheus:v2.30.3
|
image: prom/prometheus:v2.30.3
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
volumes:
|
volumes:
|
||||||
- ./prometheus/prometheus-rpc.yml:/etc/prometheus/prometheus.yml
|
- ./prometheus/prometheus-harmony.yml:/etc/prometheus/prometheus.yml
|
||||||
- prometheus_data:/prometheus
|
- prometheus_data:/prometheus
|
||||||
command:
|
command:
|
||||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ harmony/log
|
|||||||
HARMONY QUERY
|
HARMONY QUERY
|
||||||
```
|
```
|
||||||
curl --location --request POST 'https://$DOMAIN/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "hmy_latestHeader", "params": [], "id": 1}'
|
curl --location --request POST 'https://$DOMAIN/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "hmy_latestHeader", "params": [], "id": 1}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[HMY CLI Flags](https://docs.harmony.one/home/network/validators/node-setup/installing-updating/installing-node/using-binary#option-2-setup-using-flag-parsing)
|
||||||
Reference in New Issue
Block a user