Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solana add option to increase LimitNOFILE #304

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dysnix/solana/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: solana
description: Solana blockchain node Helm chart
type: application

version: 0.1.27
version: 0.1.28
appVersion: "v1.17.34"

keywords:
Expand Down
53 changes: 34 additions & 19 deletions dysnix/solana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

A Helm chart to deploy Solana node inside Kubernetes cluster.

## UnableToSetOpenFileDescriptorLimit error

This error means that containerd runtime has lower that 1,000,000 open files limit.
To fix this, you can set inside values the following:

```yaml
securityContext:
capabilities:
add:
- SYS_RESOURCE

increaseLimitNOFILE: true
```

## Parameters

### Global parameters
Expand Down Expand Up @@ -68,25 +82,26 @@ A Helm chart to deploy Solana node inside Kubernetes cluster.

### Solana node configuration

| Name | Description | Value |
| -------------------------------------------- | ------------------------------------------------------------------ | ---------------------------------------------------------------- |
| `solanaArgs` | `solana-validator` arguments | `{}` |
| `gracefulShutdown.timeout` | Seconds to wait for graceful shutdown | `120` |
| `gracefulShutdown.options` | `solana-validator exit` arguments | `{}` |
| `gracefulShutdown.options.force` | Do not wait for restart-window, useful for non-validators | `false` |
| `gracefulShutdown.options.skip-health-check` | Skip health check before exit | `false` |
| `gracefulShutdown.options.skip-health-check` | Skip check for a new snapshot before exit | `false` |
| `rustLog` | Logging configuration | `solana=info,solana_metrics=warn` |
| `plugins.enabled` | Enable download of Geyser plugins | `false` |
| `plugins.yellowstoneGRPC.enabled` | Enable download of Yellowstone gRPC | `false` |
| `plugins.yellowstoneGRPC.version` | Yellowstone gRPC version | `v1.14.2+solana.1.17.33` |
| `plugins.yellowstoneGRPC.baseUrl` | URL from where the plugin is downloaded | `https://github.com/rpcpool/yellowstone-grpc/releases/download/` |
| `plugins.yellowstoneGRPC.listenIP` | Yellowstone gRPC listen IP address, without port | `$(MY_POD_IP)` |
| `plugins.yellowstoneGRPC.config` | Yellowstone gRPC config.json file | `look in values.yaml` |
| `identity.validatorKeypair` | Validator keypair string (required) | `""` |
| `identity.voteKeypair` | Vote keypair string (required only for validator) | `""` |
| `identity.existingSecret` | Use existing secret with keypairs instead of specifying them above | `""` |
| `identity.mountPath` | Keypair files mount path | `/secrets` |
| Name | Description | Value |
| -------------------------------------------- | ----------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `solanaArgs` | `solana-validator` arguments | `{}` |
| `increaseLimitNOFILE` | Increase number of file descriptors for Solana process. Requires `CAP_SYS_RESOURCE` | `false` |
| `gracefulShutdown.timeout` | Seconds to wait for graceful shutdown | `120` |
| `gracefulShutdown.options` | `solana-validator exit` arguments | `{}` |
| `gracefulShutdown.options.force` | Do not wait for restart-window, useful for non-validators | `false` |
| `gracefulShutdown.options.skip-health-check` | Skip health check before exit | `false` |
| `gracefulShutdown.options.skip-health-check` | Skip check for a new snapshot before exit | `false` |
| `rustLog` | Logging configuration | `solana=info,solana_metrics=warn` |
| `plugins.enabled` | Enable download of Geyser plugins | `false` |
| `plugins.yellowstoneGRPC.enabled` | Enable download of Yellowstone gRPC | `false` |
| `plugins.yellowstoneGRPC.version` | Yellowstone gRPC version | `v1.14.2+solana.1.17.33` |
| `plugins.yellowstoneGRPC.downloadURL` | From where the plugin needs to be downloaded | `https://github.com/rpcpool/yellowstone-grpc/releases/download/` |
| `plugins.yellowstoneGRPC.listenIP` | Yellowstone gRPC listen IP address, without port | `$(MY_POD_IP)` |
| `plugins.yellowstoneGRPC.config` | Yellowstone gRPC config.json file | `look in values.yaml` |
| `identity.validatorKeypair` | Validator keypair string (required) | `""` |
| `identity.voteKeypair` | Vote keypair string (required only for validator) | `""` |
| `identity.existingSecret` | Use existing secret with keypairs instead of specifying them above | `""` |
| `identity.mountPath` | Keypair files mount path | `/secrets` |

### Solana ledger db persistence config

Expand Down
3 changes: 3 additions & 0 deletions dysnix/solana/templates/scripts/_start.tpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

{{- if .Values.increaseLimitNOFILE }}
ulimit -n 1000000
{{- end }}
exec solana-validator
{{- range $arg, $val := .Values.solanaArgs }}
{{- if and $arg $val }} \{{ end }}
Expand Down
4 changes: 4 additions & 0 deletions dysnix/solana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ solanaArgs:
minimal-snapshot-download-speed: 104857600 # 100 MB/s
account-index: [] # indexing for better rpc performance

## @param increaseLimitNOFILE Increase number of file descriptors for Solana process. Requires `CAP_SYS_RESOURCE`
##
increaseLimitNOFILE: false

## Graceful shutdown options
##
gracefulShutdown:
Expand Down
Loading