From 1fe25a93fbba7f5b7d784b1540d6dd6c3c66be9d Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Tue, 14 May 2024 12:16:59 -0400 Subject: [PATCH] manual, devs, grid deployment --- .../developers/grid_deployment/snapshots.md | 96 +++++++++---------- collections/developers/internals/internals.md | 2 +- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/collections/developers/grid_deployment/snapshots.md b/collections/developers/grid_deployment/snapshots.md index f88da46..a0da310 100644 --- a/collections/developers/grid_deployment/snapshots.md +++ b/collections/developers/grid_deployment/snapshots.md @@ -65,30 +65,30 @@ You can set a cron job to execute a script running rsync to create the snapshots - First download the script. - Main net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/mainnet/create_snapshot.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/mainnet/create_snapshot.sh +``` - Test net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/testnet/create_snapshot.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/testnet/create_snapshot.sh +``` - Dev net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/devnet/create_snapshot.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/devnet/create_snapshot.sh +``` - Set the permissions of the script - ``` - chmod +x create_snapshot.sh - ``` +``` +chmod +x create_snapshot.sh +``` - Make sure to a adjust the snapshot creation script for your specific deployment - Set a cron job - ``` - crontab -e - ``` +``` +crontab -e +``` - Here is an example of a cron job where we execute the script every day at 1 AM and send the logs to `/var/log/snapshots/snapshots-cron.log`. - ```sh - 0 1 * * * sh /opt/snapshots/create-snapshot.sh > /var/log/snapshots/snapshots-cron.log 2>&1 - ``` +```sh +0 1 * * * sh /opt/snapshots/create-snapshot.sh > /var/log/snapshots/snapshots-cron.log 2>&1 +``` ### Start All the Services @@ -96,25 +96,25 @@ You can start all services by running the provided scripts. - Download the script. - Main net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/mainnet/startall.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/mainnet/startall.sh +``` - Test net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/testnet/startall.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/testnet/startall.sh +``` - Dev net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/devnet/startall.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/devnet/startall.sh +``` - Set the permissions of the script - ``` - chmod +x startall.sh - ``` +``` +chmod +x startall.sh +``` - Run the script to start all services via docker engine. - ``` - ./startall.sh - ``` +``` +./startall.sh +``` ### Stop All the Services @@ -122,25 +122,25 @@ You can stop all services by running the provided scripts. - Download the script. - Main net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/mainnet/stopall.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/mainnet/stopall.sh +``` - Test net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/testnet/stopall.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/testnet/stopall.sh +``` - Dev net - ``` - wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/devnet/stopall.sh - ``` +``` +wget https://github.com/threefoldtech/grid_deployment/blob/development/grid-snapshots/devnet/stopall.sh +``` - Set the permissions of the script - ``` - chmod +x stopall.sh - ``` +``` +chmod +x stopall.sh +``` - Run the script to stop all services via docker engine. - ``` - ./stopall.sh - ``` +``` +./stopall.sh +``` ## Expose the Snapshots with Rsync diff --git a/collections/developers/internals/internals.md b/collections/developers/internals/internals.md index ce29a8c..dd1d888 100644 --- a/collections/developers/internals/internals.md +++ b/collections/developers/internals/internals.md @@ -4,7 +4,7 @@ We present in this section of the developers book a partial list of system compo

Table of Contents

-- [Reliable Message Bus (RMB)](rmb_toc.md) +- [Reliable Message Bus - RMB](rmb_toc.md) - [Introduction to RMB](rmb_intro.md) - [RMB Specs](rmb_specs.md) - [RMB Peer](peer.md)