Hi,

I have set a private network of 5 nodes. I want to check if the network is running fine. What are the points which I should check for getting this confirmed ?

OrbitLens Thanks that helped me a bit. The stellar_core.latest_ledger and history.latest_ledger are same. Which means horizon and stellar core are in sync.

If I want to monitor the close time between two ledgers - is there any command? This will help me to determine if the network is slow or not.

Basically I tried to get the dashoard code to my local and changed the horizon url pointing to my horizon. In network status, it shows that network is down. However I checked the code of stellar dashboard, it says that if close time between last 2 ledger is >90 sec then the network is down.

I have checked manually the close time difference between two ledgers for latest 200 records. The max gap was 5 sec. So I am bit confused, if the problem is with network or with the dashboard code?

    bks

    If I want to monitor the close time between two ledgers - is there any command?

    The simplest option is to fetch https://horizon.stellar.org/ledgers/?order=desc&limit=50 and analyze difference on closed_at field. You can easily calculate last ledger closing time and avg time. In case if the ledger closing time need to be monitored on regular basis, this API endpoint can be used in streaming mode.

    Basically I tried to get the dashoard code to my local and changed the horizon url pointing to my horizon. In network status, it shows that network is down.

    If you are running private network, your network passphrase may be different from those Stellar Public or Test Networks. It means that instead of

    StellarSdk.Network.usePublicNetwork()

    you should use

    StellarSdk.Network.use(new Network('your network passphrase here'))

    The horizon url itself is not enough.

    • bks replied to this.

      OrbitLens I Don't think so because when I launch the dashboard, initially it says up & running and after a min or so, it goes to slow and then down. If this was the case then It would not even load the ledger of my network.

      OrbitLens I got the issue, it was expecting a secured horizon where as I started horizon in http port. Somewhere in dashboard code it was checking for https connection.