Skip to content

Commit

Permalink
Merge pull request #5085 from kdembler/colossus-docs
Browse files Browse the repository at this point in the history
[Colossus] mention env variables for elastic config in the docs
  • Loading branch information
kdembler committed Apr 25, 2024
2 parents 4c464f4 + 05263bd commit 21352d4
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 30 deletions.
56 changes: 30 additions & 26 deletions storage-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/cancel-invite.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/cancel-invite.ts)_
_See code: [src/commands/leader/cancel-invite.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/cancel-invite.ts)_

## `storage-node leader:create-bucket`

Expand Down Expand Up @@ -244,7 +244,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/create-bucket.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/create-bucket.ts)_
_See code: [src/commands/leader/create-bucket.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/create-bucket.ts)_

## `storage-node leader:delete-bucket`

Expand All @@ -271,7 +271,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/delete-bucket.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/delete-bucket.ts)_
_See code: [src/commands/leader/delete-bucket.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/delete-bucket.ts)_

## `storage-node leader:invite-operator`

Expand Down Expand Up @@ -300,7 +300,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/invite-operator.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/invite-operator.ts)_
_See code: [src/commands/leader/invite-operator.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/invite-operator.ts)_

## `storage-node leader:remove-operator`

Expand All @@ -327,7 +327,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/remove-operator.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/remove-operator.ts)_
_See code: [src/commands/leader/remove-operator.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/remove-operator.ts)_

## `storage-node leader:set-bucket-limits`

Expand Down Expand Up @@ -357,7 +357,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/set-bucket-limits.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/set-bucket-limits.ts)_
_See code: [src/commands/leader/set-bucket-limits.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/set-bucket-limits.ts)_

## `storage-node leader:set-global-uploading-status`

Expand Down Expand Up @@ -385,7 +385,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/set-global-uploading-status.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/set-global-uploading-status.ts)_
_See code: [src/commands/leader/set-global-uploading-status.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/set-global-uploading-status.ts)_

## `storage-node leader:update-bag-limit`

Expand All @@ -412,7 +412,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-bag-limit.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-bag-limit.ts)_
_See code: [src/commands/leader/update-bag-limit.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-bag-limit.ts)_

## `storage-node leader:update-bags`

Expand Down Expand Up @@ -468,7 +468,7 @@ OPTIONS
Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-bags.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-bags.ts)_
_See code: [src/commands/leader/update-bags.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-bags.ts)_

## `storage-node leader:update-blacklist`

Expand Down Expand Up @@ -497,7 +497,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-blacklist.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-blacklist.ts)_
_See code: [src/commands/leader/update-blacklist.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-blacklist.ts)_

## `storage-node leader:update-bucket-status`

Expand Down Expand Up @@ -526,7 +526,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-bucket-status.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-bucket-status.ts)_
_See code: [src/commands/leader/update-bucket-status.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-bucket-status.ts)_

## `storage-node leader:update-data-fee`

Expand All @@ -553,7 +553,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-data-fee.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-data-fee.ts)_
_See code: [src/commands/leader/update-data-fee.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-data-fee.ts)_

## `storage-node leader:update-data-object-bloat-bond`

Expand Down Expand Up @@ -581,7 +581,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-data-object-bloat-bond.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-data-object-bloat-bond.ts)_
_See code: [src/commands/leader/update-data-object-bloat-bond.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-data-object-bloat-bond.ts)_

## `storage-node leader:update-dynamic-bag-policy`

Expand Down Expand Up @@ -611,7 +611,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-dynamic-bag-policy.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-dynamic-bag-policy.ts)_
_See code: [src/commands/leader/update-dynamic-bag-policy.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-dynamic-bag-policy.ts)_

## `storage-node leader:update-voucher-limits`

Expand Down Expand Up @@ -640,7 +640,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/leader/update-voucher-limits.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/leader/update-voucher-limits.ts)_
_See code: [src/commands/leader/update-voucher-limits.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/leader/update-voucher-limits.ts)_

## `storage-node operator:accept-invitation`

Expand Down Expand Up @@ -673,7 +673,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/operator/accept-invitation.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/operator/accept-invitation.ts)_
_See code: [src/commands/operator/accept-invitation.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/operator/accept-invitation.ts)_

## `storage-node operator:set-metadata`

Expand Down Expand Up @@ -704,7 +704,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/operator/set-metadata.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/operator/set-metadata.ts)_
_See code: [src/commands/operator/set-metadata.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/operator/set-metadata.ts)_

## `storage-node server`

Expand All @@ -726,7 +726,7 @@ OPTIONS
-e, --elasticSearchEndpoint=elasticSearchEndpoint Elasticsearch endpoint (e.g.: http://some.com:8081).
Log level could be set using the ELASTIC_LOG_LEVEL
enviroment variable.
environment variable.
Supported values: warn, error, debug, info.
Default:debug
Expand Down Expand Up @@ -779,11 +779,15 @@ OPTIONS
-z, --logFileChangeFrequency=(yearly|monthly|daily|hourly|none) [default: daily] Log files update frequency.
--elasticSearchIndexPrefix=elasticSearchIndexPrefix Elasticsearch index prefix. Node ID will be appended
to the prefix. Default: logs-colossus
to the prefix. Default: logs-colossus. Can be passed
through ELASTIC_INDEX_PREFIX environment variable.
--elasticSearchPassword=elasticSearchPassword Elasticsearch password for basic authentication.
--elasticSearchPassword=elasticSearchPassword Elasticsearch password for basic authentication. Can
be passed through ELASTIC_PASSWORD environment
variable.
--elasticSearchUser=elasticSearchUser Elasticsearch user for basic authentication.
--elasticSearchUser=elasticSearchUser Elasticsearch user for basic authentication. Can be
passed through ELASTIC_USER environment variable.
--keyStore=keyStore Path to a folder with multiple key files to load into
keystore.
Expand All @@ -806,7 +810,7 @@ OPTIONS
directory will be used.
```

_See code: [src/commands/server.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/server.ts)_
_See code: [src/commands/server.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/server.ts)_

## `storage-node util:cleanup`

Expand Down Expand Up @@ -844,7 +848,7 @@ OPTIONS
--keyStore=keyStore Path to a folder with multiple key files to load into keystore.
```

_See code: [src/commands/util/cleanup.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/util/cleanup.ts)_
_See code: [src/commands/util/cleanup.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/util/cleanup.ts)_

## `storage-node util:fetch-bucket`

Expand Down Expand Up @@ -877,7 +881,7 @@ OPTIONS
under the uploads directory will be used.
```

_See code: [src/commands/util/fetch-bucket.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/util/fetch-bucket.ts)_
_See code: [src/commands/util/fetch-bucket.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/util/fetch-bucket.ts)_

## `storage-node util:multihash`

Expand All @@ -892,7 +896,7 @@ OPTIONS
-h, --help show CLI help
```

_See code: [src/commands/util/multihash.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/util/multihash.ts)_
_See code: [src/commands/util/multihash.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/util/multihash.ts)_

## `storage-node util:verify-bag-id`

Expand Down Expand Up @@ -920,5 +924,5 @@ OPTIONS
- dynamic:member:4
```

_See code: [src/commands/util/verify-bag-id.ts](https://github.com/Joystream/joystream/blob/v3.10.2/src/commands/util/verify-bag-id.ts)_
_See code: [src/commands/util/verify-bag-id.ts](https://github.com/Joystream/joystream/blob/v4.0.0/src/commands/util/verify-bag-id.ts)_
<!-- commandsstop -->
11 changes: 7 additions & 4 deletions storage-node/src/commands/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,26 @@ export default class Server extends ApiCommandBase {
required: false,
env: 'ELASTIC_ENDPOINT',
description: `Elasticsearch endpoint (e.g.: http://some.com:8081).
Log level could be set using the ELASTIC_LOG_LEVEL enviroment variable.
Log level could be set using the ELASTIC_LOG_LEVEL environment variable.
Supported values: warn, error, debug, info. Default:debug`,
}),
elasticSearchIndexPrefix: flags.string({
required: false,
env: 'ELASTIC_INDEX_PREFIX',
description: 'Elasticsearch index prefix. Node ID will be appended to the prefix. Default: logs-colossus',
description:
'Elasticsearch index prefix. Node ID will be appended to the prefix. Default: logs-colossus. Can be passed through ELASTIC_INDEX_PREFIX environment variable.',
}),
elasticSearchUser: flags.string({
dependsOn: ['elasticSearchEndpoint', 'elasticSearchPassword'],
env: 'ELASTIC_USER',
description: 'Elasticsearch user for basic authentication.',
description:
'Elasticsearch user for basic authentication. Can be passed through ELASTIC_USER environment variable.',
}),
elasticSearchPassword: flags.string({
dependsOn: ['elasticSearchEndpoint', 'elasticSearchUser'],
env: 'ELASTIC_PASSWORD',
description: 'Elasticsearch password for basic authentication.',
description:
'Elasticsearch password for basic authentication. Can be passed through ELASTIC_PASSWORD environment variable.',
}),
logFilePath: flags.string({
char: 'l',
Expand Down

0 comments on commit 21352d4

Please sign in to comment.