-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes 1611: adds page for boilerplate config and clarifies profiles
Signed-off-by: m4sterbunny <[email protected]>
- Loading branch information
1 parent
5caba7a
commit 8a7d582
Showing
4 changed files
with
59 additions
and
68 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
docs/public-networks/how-to/use-configuration-file/defaults.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Default configurations | ||
sidebar_position: 1 | ||
todo: For future maintenance, this page would be better setup to import single-sourced partials that also serve the cli/options page. However, for PoC, the duplication/poor maintainability is tolerated for now. | ||
--- | ||
|
||
# Default configurations | ||
|
||
Besu is [highly-configurable](index.md#configuration-order-of-precedence), yet its default configurations provide a viable boilerplate. | ||
|
||
This page provides a high level overview of the opinionated default configurations of vanilla Besu. By applying these defaults, a node is optimized for staking. These defaults may be used alongside a [pre-configured profile](profile.md) to support common use cases. | ||
|
||
For example, using the [staking profile](profile.md#staker-profile) with the boilerplate config directs Besu to use Mainnet, creating a staking-optimized node ready to run with a [validator](https://ethereum.org/en/developers/docs/nodes-and-clients/node-architecture/#validators) and [consensus client](https://ethereum.org/en/developers/docs/nodes-and-clients/node-architecture/#consensus-client) | ||
|
||
## Configuration | ||
|
||
|Command|Default|Notes| | ||
|---------------------------|--------------------|------------------------------------------| | ||
|[`config-file`](../../reference/cli/options/#config-file)|None|Vanilla Besu assumes no configuration file| | ||
|
||
## Storage | ||
|
||
|Command|Default|Notes| | ||
|---------------------------|--------------------|------------------------------------------| | ||
|[`data-storage-format`](../../reference/cli/options/#data-storage-format)|BONSAI|Besu applies the most space-effiecient storage method| | ||
|
||
## Peering | ||
|
||
|Command|Default|Notes| | ||
|---------------------------|--------------------|------------------------------------------| | ||
|[`discovery-enabled`](../../reference/cli/options/#discovery-enabled)|True|Besu assumes the node will connect P2P| | ||
|[`p2p-enabled`](../../reference/cli/options/#discovery-enabled)|True|Besu assumes the node will connect P2P| | ||
|[`engine-rpc-enabled`](../../reference/cli/options/#engine-rpc-enabled)|True|Besu assumes the Engine API will be required to communicate with the consensus layer| | ||
|
||
:::note | ||
For a comprehensive understanding, all defaults are provided in the [reference](../../reference/cli/options.md). | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 16 additions & 59 deletions
75
docs/public-networks/how-to/use-configuration-file/profile.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,39 @@ | ||
--- | ||
sidebar_position: 1 | ||
title: Use a profile | ||
sidebar_position: 2 | ||
--- | ||
|
||
# Use a profile | ||
# Use a profile | ||
|
||
To help you get started quickly, Besu provides pre-configured profiles containing custom settings | ||
for some common use cases. | ||
You can load these profiles using the [`--profile`](../../reference/cli/options.md#profile) CLI option. | ||
For example: | ||
Load a profile using the [`--profile` CLI option](../../reference/cli/options.md#profile). | ||
|
||
```bash | ||
besu --config-file=config.toml --profile=staker | ||
``` | ||
|
||
In this example, `config.toml` is the user-provided [configuration file](index.md), and `staker` is | ||
the pre-configured profile containing custom settings. | ||
|
||
Any configuration options explicitly set in the configuration file or command line will overwrite | ||
the same options set in the profile. | ||
See the [configuration order of precedence](index.md#configuration-order-of-precedence) for more information. | ||
|
||
You can use the following profiles: | ||
You can optionally use profiles to extend Besu's configuration. Combined with the [boilerplate configuration](defaults.md), profiles simplify the process of applying vaiable defaults. Besu's pre-configured profiles optimize for the following supported use cases: | ||
|
||
- [Minimalist staker profile](#minimalist-staker-profile) | ||
- [Staker profile](#staker-profile) | ||
- [Enterprise/Private profile](#enterpriseprivate-profile) | ||
|
||
|
||
:::note | ||
|
||
A configuration explicitly set in the configuration file or command line will | ||
[override the same option/s](index.md#configuration-order-of-precedence) set in the profile. | ||
|
||
::: | ||
|
||
## Minimalist staker profile | ||
|
||
For stakers who want to maximize their hardware value but don't want to serve full sets of data to | ||
their peers, Besu provides a minimalist staker profile. | ||
See the | ||
[`--profile=minimalist_staker`](../../reference/cli/options.md#profile) is optimized for stakers who want to maximize their hardware value but don't want to serve full sets of data to their peers, See the | ||
[minimalist staker profile on GitHub](https://github.com/hyperledger/besu/blob/8b64023a121ea996ef60e4b7e2299c5807683f90/config/src/main/resources/profiles/minimalist-staker.toml) | ||
for the custom settings. | ||
|
||
To use the minimalist staker profile, run Besu with | ||
[`--profile`](../../reference/cli/options.md#profile) set to `minimalist_staker`: | ||
|
||
```bash | ||
besu --profile=minimalist_staker | ||
``` | ||
|
||
## Staker profile | ||
|
||
For stakers who want to maximize their hardware value and also want to serve full sets of data to | ||
their peers, Besu providers a staker profile. | ||
See the | ||
[`--profile=staker`](../../reference/cli/options.md#profile) is optimized for stakers who want to maximize their hardware value while also serving full sets of data to their peers. See the | ||
[staker profile on GitHub](https://github.com/hyperledger/besu/blob/8b64023a121ea996ef60e4b7e2299c5807683f90/config/src/main/resources/profiles/staker.toml) | ||
for the custom settings. | ||
|
||
To use the staker profile, run Besu with [`--profile`](../../reference/cli/options.md#profile) set to `staker`: | ||
|
||
```bash | ||
besu --profile=staker | ||
``` | ||
|
||
## Enterprise/Private profile | ||
|
||
For private network operators who want to minimize confusion by setting sensible defaults, Besu | ||
provides an enterprise/private profile. | ||
This profile is designed to handle specific use cases for private network operators. | ||
See the | ||
[enterprise/private profile on GitHub](https://github.com/hyperledger/besu/blob/8b64023a121ea996ef60e4b7e2299c5807683f90/config/src/main/resources/profiles/enterprise-private.toml) | ||
[`--profile=private` / `--profile=enterprise`](../../reference/cli/options.md#profile) supports private network operators and enterprises by handling specific use cases that apply to private network operators. See the [enterprise/private profile on GitHub](https://github.com/hyperledger/besu/blob/8b64023a121ea996ef60e4b7e2299c5807683f90/config/src/main/resources/profiles/enterprise-private.toml) | ||
for the custom settings. | ||
|
||
To use the enterprise/private profile, run Besu with | ||
[`--profile`](../../reference/cli/options.md#profile) set to `enterprise` or `private`: | ||
|
||
```bash | ||
besu --profile=enterprise | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
besu --profile=private | ||
``` | ||
|
||
:::note | ||
`enterprise` and `private` are aliases for the same profile. | ||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters