You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,10 @@ To deploy Chaingraph locally, see the instructions in the [Contributing Guide](.
23
23
24
24
### Create a Cluster
25
25
26
-
As of late 2021, DigitalOcean is the most cost-effective cloud provider for Chaingraph deployments (differentiated primarily by pricing of egress bandwidth and persistent volume SSD storage).
26
+
As of 2023, DigitalOcean is the most cost-effective cloud provider for Chaingraph deployments (differentiated primarily by pricing of egress bandwidth and persistent volume SSD storage).
27
27
28
-
To set up a new cluster, **consider using [Chaingraph's referral code for a $100
29
-
credit](https://m.do.co/c/522a68c96ba3)** (supports `demo.chaingraph.cash`); this should cover a production-ready BCH mainnet deployment for ~30 days (approximately $85/month for SSD storage, one $10/month droplet, and $10/month for the load balancer and egress bandwidth).
28
+
To set up a new cluster, **consider using [Chaingraph's referral code for a $200
29
+
credit](https://m.do.co/c/cb25573fbfe7)** (supports `demo.chaingraph.cash`); this should cover a basic, production-ready BCH mainnet deployment for ~60 days (approximately $85/month for SSD storage, one $12/month droplet, and $12/month for the load balancer and egress bandwidth).
30
30
31
31
Whichever cloud provider you choose, for the below testnet deployment, provision at least 1 Kubernetes node of the least expensive type.
32
32
@@ -44,7 +44,7 @@ If you have previously added the `bitauth` repo, run `helm repo update` to fetch
44
44
45
45
### Deploy a Release
46
46
47
-
Using the default configuration, Chaingraph will be installed with a single`testnet4`[BCHN](https://gitlab.com/bitcoin-cash-node/bitcoin-cash-node) full node, an internally-managed Postgres instance, and no load balancer.
47
+
Using the default configuration, Chaingraph will be installed with one `chipnet` and one`testnet4`[BCHN](https://gitlab.com/bitcoin-cash-node/bitcoin-cash-node) full node, an internally-managed Postgres instance, and no load balancer.
48
48
49
49
This is an ideal configuration for experimenting with Chaingraph, as it can be deployed on very low-powered clusters (often even within the free tier provided by many cloud Kubernetes providers). See the [chart readme](./charts/chaingraph/readme.md) for information about other options.
When enabling mainnet, ensure the volume assigned to Postgres is large enough to hold the database with additional space for indexing (see [Approximate Space Usage](../../docs/schema.md#approximate-space-usage)). If using the internally-managed Postgres instance, this can be configured with the `postgres.volumeSize` value. (See also: [Expanding Volumes](#expanding-volumes).)
@@ -158,7 +158,7 @@ spec:
158
158
- ReadWriteOnce
159
159
resources:
160
160
requests:
161
-
storage: 625Gi# <- edit this value
161
+
storage: 730Gi# <- edit this value
162
162
```
163
163
164
164
If the specified volume size is larger than the existing volumes, the volumes will be automatically expanded by supporting Kubernetes systems. (Note: volume sizes cannot be reduced using this method.)
Copy file name to clipboardExpand all lines: docs/schema.md
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -51,31 +51,31 @@ Multi-node, multi-chain deployments share common history, so only divergent bloc
51
51
52
52
This section is periodically updated to provide approximate storage usage information for all default tables and indexes. Actual storage usage will be affected by file system compression and Postgres vacuuming progress. (Vacuuming frees wasted space in the database, so storage usage will fall in the hours/days after initial sync as the database reclaims unused space. The Postgres `VACUUM FULL` command locks the table and performs this compression immediately.)
53
53
54
-
The below table is derived from the [`/space` view in `pgHero`](../.github/CONTRIBUTING.md#using-pghero) on a recently-vacuumed Chaingraph Postgres database synced with only a single, mainnet BCH node.
54
+
The below table is derived from the [`/space` view in `pgHero`](../.github/CONTRIBUTING.md#using-pghero) on a recently-synced Chaingraph Postgres database with a single, mainnet BCH node.
"dev-cluster:prod-sim:restart:agent": "echo 'Restarting chaingraph-agent - the existing pod will begin shutdown, and a new pod will be created immediately. If both are logging to the same file, the logs may overlap momentarily.' && kubectl rollout restart deployment chaingraph-agent",
"local:postgres:tune": "yarn local:postgres:psql -c \"ALTER SYSTEM SET shared_buffers = '2048MB'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET effective_cache_size = '6144MB'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET maintenance_work_mem = '128MB'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET checkpoint_completion_target = '0.9'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET min_wal_size = '4GB'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET max_wal_size = '16GB'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET default_statistics_target = '500'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET random_page_cost = '1.1'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET max_connections = '50'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET work_mem = '8MB'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET max_worker_processes = '8'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET max_parallel_workers_per_gather = '4'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET max_parallel_workers = '8'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET max_parallel_maintenance_workers = '4'\" && yarn local:postgres:psql -c \"ALTER SYSTEM SET effective_io_concurrency = '200'\" || echo '\n(no need to set effective_io_concurrency on macOS, tuning complete. 👍)'",
0 commit comments