Merge: 3947531a 021086e0
Author: Alex Unger <6905948+refs@users.noreply.github.com>
Date:   Wed Aug 18 11:16:12 2021 +0200

    Merge pull request #2409 from owncloud/adr-traces-2021
This commit is contained in:
Alex Unger committed 2021-08-18 09:18:24 +00:00
1 parent c82d64ba7d
commit 62823622ce
16 files changed
+2684 -2635

No files matched your search

+481 -481
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:06+0000"
date: "2021-08-18T09:16:32+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/accounts/templates
@@ -34,6 +34,405 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### accounts add
Create a new account
Usage: `accounts add [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
-enabled |
: Enable the account.
-displayname |
: Set the displayname for the account.
-username |
: Username will be written to preferred-name and on_premises_sam_account_name.
-preferred-name |
: Set the preferred-name for the account.
-on-premises-sam-account-name |
: Set the on-premises-sam-account-name.
-uidnumber |
: Set the uidnumber for the account.
-gidnumber |
: Set the gidnumber for the account.
-mail |
: Set the mail for the account.
-description |
: Set the description for the account.
-password |
: Set the password for the account.
-password-policies |
: Possible policies: DisableStrongPassword, DisablePasswordExpiration.
-force-password-change |
: Force password change on next sign-in.
-force-password-change-mfa |
: Force password change on next sign-in with mfa.
### accounts rebuildIndex
Rebuilds the service's index, i.e. deleting and then re-adding all existing documents
Usage: `accounts rebuildIndex [command options] [arguments...]`
### accounts ocis-accounts
Provide accounts and groups for oCIS
Usage: `accounts ocis-accounts [command options] [arguments...]`
-log-level | $ACCOUNTS_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $ACCOUNTS_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $ACCOUNTS_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
-extensions |
: Run specific extensions during supervised mode.
### accounts update
Make changes to an existing account
Usage: `accounts update [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
-enabled |
: Enable the account.
-displayname |
: Set the displayname for the account.
-preferred-name |
: Set the preferred-name for the account.
-on-premises-sam-account-name |
: Set the on-premises-sam-account-name.
-uidnumber |
: Set the uidnumber for the account.
-gidnumber |
: Set the gidnumber for the account.
-mail |
: Set the mail for the account.
-description |
: Set the description for the account.
-password |
: Set the password for the account.
-password-policies |
: Possible policies: DisableStrongPassword, DisablePasswordExpiration.
-force-password-change |
: Force password change on next sign-in.
-force-password-change-mfa |
: Force password change on next sign-in with mfa.
### accounts version
@@ -116,6 +515,87 @@ Usage: `accounts version [command options] [arguments...]`
### accounts inspect
Show detailed data on an existing account
Usage: `accounts inspect [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts list
List existing accounts
@@ -192,81 +672,6 @@ Usage: `accounts list [command options] [arguments...]`
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts rebuildIndex
Rebuilds the service's index, i.e. deleting and then re-adding all existing documents
Usage: `accounts rebuildIndex [command options] [arguments...]`
@@ -498,411 +903,6 @@ Usage: `accounts server [command options] [arguments...]`
### accounts update
Make changes to an existing account
Usage: `accounts update [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
-enabled |
: Enable the account.
-displayname |
: Set the displayname for the account.
-preferred-name |
: Set the preferred-name for the account.
-on-premises-sam-account-name |
: Set the on-premises-sam-account-name.
-uidnumber |
: Set the uidnumber for the account.
-gidnumber |
: Set the gidnumber for the account.
-mail |
: Set the mail for the account.
-description |
: Set the description for the account.
-password |
: Set the password for the account.
-password-policies |
: Possible policies: DisableStrongPassword, DisablePasswordExpiration.
-force-password-change |
: Force password change on next sign-in.
-force-password-change-mfa |
: Force password change on next sign-in with mfa.
### accounts add
Create a new account
Usage: `accounts add [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
-enabled |
: Enable the account.
-displayname |
: Set the displayname for the account.
-username |
: Username will be written to preferred-name and on_premises_sam_account_name.
-preferred-name |
: Set the preferred-name for the account.
-on-premises-sam-account-name |
: Set the on-premises-sam-account-name.
-uidnumber |
: Set the uidnumber for the account.
-gidnumber |
: Set the gidnumber for the account.
-mail |
: Set the mail for the account.
-description |
: Set the description for the account.
-password |
: Set the password for the account.
-password-policies |
: Possible policies: DisableStrongPassword, DisablePasswordExpiration.
-force-password-change |
: Force password change on next sign-in.
-force-password-change-mfa |
: Force password change on next sign-in with mfa.
### accounts inspect
Show detailed data on an existing account
Usage: `accounts inspect [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts ocis-accounts
Provide accounts and groups for oCIS
Usage: `accounts ocis-accounts [command options] [arguments...]`
-log-level | $ACCOUNTS_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $ACCOUNTS_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $ACCOUNTS_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
-extensions |
: Run specific extensions during supervised mode.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:29+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/glauth/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph-explorer/templates
+32 -32
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph/templates
@@ -35,37 +35,6 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### graph health
Check health status
Usage: `graph health [command options] [arguments...]`
-debug-addr | $GRAPH_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9124"`.
### graph ocis-graph
Serve Graph API for oCIS
@@ -185,3 +154,34 @@ Usage: `graph server [command options] [arguments...]`
-extensions |
: Run specific extensions during supervised mode. This flag is set by the runtime.
### graph health
Check health status
Usage: `graph health [command options] [arguments...]`
-debug-addr | $GRAPH_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9124"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/idp/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocs/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/onlyoffice/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/proxy/templates
+97 -97
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/settings/templates
@@ -35,102 +35,6 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### settings server
Start integrated server
Usage: `settings server [command options] [arguments...]`
-config-file | $SETTINGS_CONFIG_FILE
: Path to config file.
-tracing-enabled | $SETTINGS_TRACING_ENABLED
: Enable sending traces.
-tracing-type | $SETTINGS_TRACING_TYPE
: Tracing backend type. Default: `"jaeger"`.
-tracing-endpoint | $SETTINGS_TRACING_ENDPOINT
: Endpoint for the agent. Default: `""`.
-tracing-collector | $SETTINGS_TRACING_COLLECTOR
: Endpoint for the collector. Default: `""`.
-tracing-service | $SETTINGS_TRACING_SERVICE
: Service name for tracing. Default: `"settings"`.
-debug-addr | $SETTINGS_DEBUG_ADDR
: Address to bind debug server. Default: `"0.0.0.0:9194"`.
-debug-token | $SETTINGS_DEBUG_TOKEN
: Token to grant metrics access. Default: `""`.
-debug-pprof | $SETTINGS_DEBUG_PPROF
: Enable pprof debugging.
-debug-zpages | $SETTINGS_DEBUG_ZPAGES
: Enable zpages debugging.
-http-addr | $SETTINGS_HTTP_ADDR
: Address to bind http server. Default: `"0.0.0.0:9190"`.
-http-namespace | $SETTINGS_HTTP_NAMESPACE
: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`.
-http-root | $SETTINGS_HTTP_ROOT
: Root path of http server. Default: `"/"`.
-http-cache-ttl | $SETTINGS_CACHE_TTL
: Set the static assets caching duration in seconds. Default: `604800`.
-grpc-addr | $SETTINGS_GRPC_ADDR
: Address to bind grpc server. Default: `"0.0.0.0:9191"`.
-asset-path | $SETTINGS_ASSET_PATH
: Path to custom assets. Default: `""`.
-grpc-namespace | $SETTINGS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $SETTINGS_NAME
: service name. Default: `"settings"`.
-data-path | $SETTINGS_DATA_PATH
: Mount path for the storage. Default: `"/var/tmp/ocis/settings"`.
-jwt-secret | $SETTINGS_JWT_SECRET , $OCIS_JWT_SECRET
: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`.
-extensions |
: Run specific extensions during supervised mode. This flag is set by the runtime.
### settings version
Print the versions of the running instances
@@ -245,6 +149,102 @@ Usage: `settings ocis-settings [command options] [arguments...]`
### settings server
Start integrated server
Usage: `settings server [command options] [arguments...]`
-config-file | $SETTINGS_CONFIG_FILE
: Path to config file.
-tracing-enabled | $SETTINGS_TRACING_ENABLED
: Enable sending traces.
-tracing-type | $SETTINGS_TRACING_TYPE
: Tracing backend type. Default: `"jaeger"`.
-tracing-endpoint | $SETTINGS_TRACING_ENDPOINT
: Endpoint for the agent. Default: `""`.
-tracing-collector | $SETTINGS_TRACING_COLLECTOR
: Endpoint for the collector. Default: `""`.
-tracing-service | $SETTINGS_TRACING_SERVICE
: Service name for tracing. Default: `"settings"`.
-debug-addr | $SETTINGS_DEBUG_ADDR
: Address to bind debug server. Default: `"0.0.0.0:9194"`.
-debug-token | $SETTINGS_DEBUG_TOKEN
: Token to grant metrics access. Default: `""`.
-debug-pprof | $SETTINGS_DEBUG_PPROF
: Enable pprof debugging.
-debug-zpages | $SETTINGS_DEBUG_ZPAGES
: Enable zpages debugging.
-http-addr | $SETTINGS_HTTP_ADDR
: Address to bind http server. Default: `"0.0.0.0:9190"`.
-http-namespace | $SETTINGS_HTTP_NAMESPACE
: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`.
-http-root | $SETTINGS_HTTP_ROOT
: Root path of http server. Default: `"/"`.
-http-cache-ttl | $SETTINGS_CACHE_TTL
: Set the static assets caching duration in seconds. Default: `604800`.
-grpc-addr | $SETTINGS_GRPC_ADDR
: Address to bind grpc server. Default: `"0.0.0.0:9191"`.
-asset-path | $SETTINGS_ASSET_PATH
: Path to custom assets. Default: `""`.
-grpc-namespace | $SETTINGS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $SETTINGS_NAME
: service name. Default: `"settings"`.
-data-path | $SETTINGS_DATA_PATH
: Mount path for the storage. Default: `"/var/tmp/ocis/settings"`.
-jwt-secret | $SETTINGS_JWT_SECRET , $OCIS_JWT_SECRET
: Used to create JWT to talk to reva, should equal reva's jwt-secret. Default: `"Pive-Fumkiu4"`.
-extensions |
: Run specific extensions during supervised mode. This flag is set by the runtime.
File diff suppressed because it is too large. Load diff
+34 -34
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:58+0000"
date: "2021-08-18T09:17:31+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/store/templates
@@ -35,6 +35,39 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### store version
Print the versions of the running instances
Usage: `store version [command options] [arguments...]`
-grpc-namespace | $STORE_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $STORE_NAME
: Service name. Default: `"store"`.
### store health
Check health status
@@ -173,36 +206,3 @@ Usage: `store server [command options] [arguments...]`
### store version
Print the versions of the running instances
Usage: `store version [command options] [arguments...]`
-grpc-namespace | $STORE_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $STORE_NAME
: Service name. Default: `"store"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:58+0000"
date: "2021-08-18T09:17:31+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/thumbnails/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:59+0000"
date: "2021-08-18T09:17:32+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/web/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:59+0000"
date: "2021-08-18T09:17:32+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/webdav/templates
+49
View File
@@ -0,0 +1,49 @@
---
title: "12. Tracing"
weight: 12
date: 2021-08-17T12:56:53+01:00
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/docs/ocis/adr
geekdocFilePath: 0012-tracing.md
---
* Status: proposed
* Deciders: @butonic, @micbar, @dragotin, @mstingl, @pmaier1, @fschade
* Date: 2021-08-17
## Context and Problem Statement
At the time of this writing we are in a situation where our logs have too much verbosity, rendering impossible or rather difficult to debug an instance. For this reason we are giving some care to our traces by updating dependencies from OpenCensus to OpenTelemetry.
## Decision Drivers
- We don't want to rely only on logs to debug an instance.
- Logs are too verbose.
- Since we have micro-services, we want to holistically understand a request.
## Considered Options
- Trim down logs
- Use OpenCensus
- Migrate to OpenTelemetry
## Decision Outcome
Chosen option: option 3; Migrate to OpenTelemetry. OpenCensus is deprecated, and OpenTelemetry is the merger from OpenCensus and OpenTelemetry and the most recent up-to-date spec.
### Positive Consequences
- Fix the current state of the traces on Reva.
- Add more contextual information on a span for a given request.
- Per-request filtering with the `X-Request-Id` header.
- Group the supported tracing backends to support Jaeger only for simplicity.
## Chosen option approach
- A trace is a tree, and the proxy will create the root trace and propagate it downstream.
- The Root trace will log the request headers.
- The unit that ultimately does the work will log the result of the operation if success.
- The unit that ultimately does the work will change the state of the span to error if any occurred.
With this premises, this is by no means a fixed document and the more we learn about the usage of an instance the more context we can add to the traces.
+123 -123
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-08-18T08:37:57+0000"
date: "2021-08-18T09:17:30+0000"
weight: 2
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocis/templates
@@ -107,6 +107,62 @@ Usage: `ocis [global options] command [command options] [arguments...]`
## Sub Commands
### ocis kill
Kill an extension by name
Usage: `ocis kill [command options] [arguments...]`
### ocis run
Runs an extension
Usage: `ocis run [command options] [arguments...]`
### ocis server
@@ -160,11 +216,11 @@ Usage: `ocis server [command options] [arguments...]`
-extensions | $OCIS_RUN_EXTENSIONS
: Run specific extensions during supervised mode.
### ocis kill
### ocis health
Kill an extension by name
Check health status
Usage: `ocis kill [command options] [arguments...]`
Usage: `ocis health [command options] [arguments...]`
@@ -180,6 +236,9 @@ Usage: `ocis kill [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to debug endpoint. Default: `0.0.0.0:9010`.
@@ -213,65 +272,6 @@ Usage: `ocis list [command options] [arguments...]`
### ocis run
Runs an extension
Usage: `ocis run [command options] [arguments...]`
### ocis health
Check health status
Usage: `ocis health [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to debug endpoint. Default: `0.0.0.0:9010`.
@@ -279,17 +279,13 @@ Usage: `ocis health [command options] [arguments...]`
There are more subcommands to start the individual extensions. Please check the documentation about their usage and options in the dedicated section of the documentation.
#### ocis storage-home
#### ocis settings
Start storage and data provider for /home mount
Start settings server
#### ocis storage-frontend
#### ocis storage-public-link
Start storage frontend
#### ocis storage-userprovider
Start storage userprovider service
Start storage public link storage
#### ocis storage-users
@@ -299,9 +295,49 @@ Start storage and data provider for /users mount
Lists running services with version
#### ocis webdav
#### ocis storage-sharing
Start webdav server
Start storage sharing service
#### ocis idp
Start idp server
#### ocis proxy
Start proxy server
#### ocis store
Start a go-micro store
#### ocis storage-gateway
Start storage gateway
#### ocis storage-metadata
Start storage and data service for metadata
#### ocis glauth
Start glauth server
#### ocis storage-auth-bearer
Start storage auth-bearer service
#### ocis storage-home
Start storage and data provider for /home mount
#### ocis web
Start web server
#### ocis accounts
Start accounts server
#### ocis ocs
@@ -311,63 +347,27 @@ Start ocs server
Start onlyoffice server
#### ocis storage-metadata
Start storage and data service for metadata
#### ocis storage-auth-bearer
Start storage auth-bearer service
#### ocis storage-gateway
Start storage gateway
#### ocis web
Start web server
#### ocis glauth
Start glauth server
#### ocis storage-public-link
Start storage public link storage
#### ocis storage-sharing
Start storage sharing service
#### ocis accounts
Start accounts server
#### ocis idp
Start idp server
#### ocis storage-auth-basic
Start storage auth-basic service
#### ocis thumbnails
#### ocis storage-frontend
Start thumbnails server
#### ocis store
Start a go-micro store
#### ocis proxy
Start proxy server
#### ocis settings
Start settings server
Start storage frontend
#### ocis storage-groupprovider
Start storage groupprovider service
#### ocis storage-userprovider
Start storage userprovider service
#### ocis thumbnails
Start thumbnails server
#### ocis webdav
Start webdav server