Skip to content

Commit

Permalink
update influx enterprise scripts (solana-labs#31117)
Browse files Browse the repository at this point in the history
* update influx enterprise scripts
  • Loading branch information
joeaba authored Apr 10, 2023
1 parent 2613ad7 commit 68d57b1
Show file tree
Hide file tree
Showing 11 changed files with 248 additions and 855 deletions.
1 change: 1 addition & 0 deletions metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ In oder to explore validator specific metrics from mainnet-beta, testnet or devn
For local cluster deployments you should use:

* https://internal-metrics.solana.com:8888/
* https://internal-metrics.solana.com:8889/

## Public Grafana Dashboards

Expand Down
26 changes: 23 additions & 3 deletions metrics/influx-enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,28 @@
[Influx_Enterprise](https://solana-labs.atlassian.net/wiki/spaces/DEVOPS/pages/25788425/Influx+Enterprise+Integration)


influxdb-meta.conf -- is the meta node configuration file in which we have to defined the servers and configuration.
## Deploy an Influx Enterprise Cluster

influxdb.conf -- is the data node configuration file in which we have to defined the servers and configuration.
An influx enterprise cluster requires two type of nodes, meta nodes and data notes in order to operate properly:

default -- is the nginx load balancer configuration file of the VM named influxdb-enterprise.
### Influxdb Meta Nodes

Meta nodes are the ones that keep state about the cluster, including which servers, databases, users, continuous queries, retention policies, subscriptions, and blocks of time exist.
You need at least 3 meta nodes running at all times. To replace the meta nodes or add more you can use the `setup-meta-nodes.sh` script updating the requires variables:

1. SERVERS="<LIST_OF_SERVERS>"
2. LICENSE_KEY="<YOUR_LICENSE_KEY>"
3. VERSION="<INFLUXDB_VERSION>"

### Influxdb Data Nodes

Data nodes are the ones that store all time series data and handles all writes and queries. You can have as many data nodes as possible that add up to the number on vCPU that your license allows.
To replace the data nodes or add more you can use the `setup-data-nodes.sh` script updating the requires variables:

1. SERVERS="<LIST_OF_SERVERS>"
2. LICENSE_KEY="<YOUR_LICENSE_KEY>"
3. VERSION="<INFLUXDB_VERSION>"

### Status Check

The `status.sh` script runs periodically on BuildKite to make sure that both, the data and meta services are running properly in all the servers of the cluster. If it detects that the service is not running it will try to redeploy it and send an alert to Discord and PagerDuty in case it fails to do so.
140 changes: 0 additions & 140 deletions metrics/influx-enterprise/influxdb-meta.conf

This file was deleted.

Loading

0 comments on commit 68d57b1

Please sign in to comment.