Skip to content

Commit

Permalink
commit e631b74
Browse files Browse the repository at this point in the history
Merge: 1dab0f7 c9dfb77
Author: kobergj <[email protected]>
Date:   Tue Feb 21 14:08:01 2023 +0100

    Merge pull request #5600 from kobergj/EventHistory

    Eventhistory Service
  • Loading branch information
kobergj committed Feb 21, 2023
1 parent 05543a5 commit 3bda9ca
Show file tree
Hide file tree
Showing 5 changed files with 357 additions and 20 deletions.
260 changes: 260 additions & 0 deletions services/_includes/adoc/eventhistory_configvars.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
// set the attribute to true or leave empty, true without any quotes.

:show-deprecation: false

ifeval::[{show-deprecation} == true]

[[deprecation-note]]
[caption=]
.Deprecation notes for the eventhistory service
[width="100%",cols="~,~,~,~",options="header"]
|===
| Deprecation Info
| Deprecation Version
| Removal Version
| Deprecation Replacment
|===

endif::[]

[caption=]
.Environment variables for the eventhistory service
[width="100%",cols="~,~,~,~",options="header"]
|===
| Name
| Type
| Default Value
| Description

a|`OCIS_LOG_LEVEL` +
`EVENTHISTORY_LOG_LEVEL` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
The log level. Valid values are: "panic", "fatal", "error", "warn", "info", "debug", "trace".

a|`OCIS_LOG_PRETTY` +
`EVENTHISTORY_LOG_PRETTY` +

a| [subs=-attributes]
++bool ++
a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Activates pretty log output.

a|`OCIS_LOG_COLOR` +
`EVENTHISTORY_LOG_COLOR` +

a| [subs=-attributes]
++bool ++
a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Activates colorized log output.

a|`OCIS_LOG_FILE` +
`EVENTHISTORY_LOG_FILE` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
The path to the log file. Activates logging to this file if set.

a|`EVENTHISTORY_DEBUG_ADDR` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
Bind address of the debug server, where metrics, health, config and debug endpoints will be exposed.

a|`EVENTHISTORY_DEBUG_TOKEN` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
Token to secure the metrics endpoint.

a|`EVENTHISTORY_DEBUG_PPROF` +

a| [subs=-attributes]
++bool ++
a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Enables pprof, which can be used for profiling.

a|`EVENTHISTORY_DEBUG_ZPAGES` +

a| [subs=-attributes]
++bool ++
a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Enables zpages, which can be used for collecting and viewing in-memory traces.

a|`EVENTHISTORY_GRPC_ADDR` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++127.0.0.1:0 ++
a| [subs=-attributes]
The bind address of the GRPC service.

a|`OCIS_GRPC_TLS_ENABLED` +

a| [subs=-attributes]
++bool ++
a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Activates TLS for the grpc based services using the server certifcate and key configured via OCIS_GRPC_TLS_CERTIFICATE and OCIS_GRPC_TLS_KEY. If OCIS_GRPC_TLS_CERTIFICATE is not set a temporary server certificate is generated - to be used with OCIS_GRPC_CLIENT_TLS_MODE=insecure.

a|`OCIS_GRPC_TLS_CERTIFICATE` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
Path/File name of the TLS server certificate (in PEM format) for the grpc services.

a|`OCIS_GRPC_TLS_KEY` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
Path/File name for the TLS certificate key (in PEM format) for the server certificate to use for the grpc services.

a|`OCIS_GRPC_CLIENT_TLS_MODE` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
TLS mode for grpc connection to the go-micro based grpc services. Possible values are 'off', 'insecure' and 'on'. 'off': disables transport security for the clients. 'insecure' allows to use transport security, but disables certificate verification (to be used with the autogenerated self-signed certificates). 'on' enables transport security, including server ceritificate verification.

a|`OCIS_GRPC_CLIENT_TLS_CACERT` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
Path/File name for the root CA certificate (in PEM format) used to validate TLS server certificates of the go-micro based grpc services.

a|`EVENTHISTORY_EVENTS_ENDPOINT` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++127.0.0.1:9233 ++
a| [subs=-attributes]
The address of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture.

a|`EVENTHISTORY_EVENTS_CLUSTER` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ocis-cluster ++
a| [subs=-attributes]
The clusterID of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture. Mandatory when using NATS as event system.

a|`OCIS_INSECURE` +
`EVENTHISTORY_EVENTS_TLS_INSECURE` +

a| [subs=-attributes]
++bool ++
a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Whether to verify the server TLS certificates.

a|`EVENTHISTORY_EVENTS_TLS_ROOT_CA_CERTIFICATE` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
The root CA certificate used to validate the server's TLS certificate. If provided NOTIFICATIONS_EVENTS_TLS_INSECURE will be seen as false.

a|`OCIS_EVENTS_ENABLE_TLS` +
`EVENTHISTORY_EVENTS_ENABLE_TLS` +

a| [subs=-attributes]
++bool ++
a| [subs=-attributes]
++false ++
a| [subs=-attributes]
Enable TLS for the connection to the events broker. The events broker is the ocis service which receives and delivers events between the services..

a|`EVENTHISTORY_STORE_TYPE` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++mem ++
a| [subs=-attributes]
The type of the eventhistory store. Supported values are: 'mem', 'ocmem', 'etcd', 'redis', 'nats-js', 'noop'. See the text description for details.

a|`EVENTHISTORY_STORE_ADDRESSES` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
A comma separated list of addresses to access the configured store. This has no effect when 'in-memory' stores are configured. Note that the behaviour how addresses are used is dependent on the library of the configured store.

a|`EVENTHISTORY_STORE_DATABASE` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
(optional) The database name the configured store should use. This has no effect when 'in-memory' stores are configured.

a|`EVENTHISTORY_STORE_TABLE` +

a| [subs=-attributes]
++string ++
a| [subs=-attributes]
++ ++
a| [subs=-attributes]
(optional) The database table the store should use. This has no effect when 'in-memory' stores are configured.

a|`EVENTHISTORY_RECORD_EXPIRY` +

a| [subs=-attributes]
++Duration ++
a| [subs=-attributes]
++336h0m0s ++
a| [subs=-attributes]
Time to life for events in the store. The duration can be set as number followed by a unit identifier like s, m or h. Defaults to '336h' (2 weeks).

a|`EVENTHISTORY_STORE_SIZE` +

a| [subs=-attributes]
++int ++
a| [subs=-attributes]
++0 ++
a| [subs=-attributes]
The maximum quantity of items in the store. Only applies when store type 'ocmem' is configured. Defaults to 512.
|===

2 changes: 2 additions & 0 deletions services/_includes/adoc/eventhistory_deprecation.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:show-deprecation: false

Loading

0 comments on commit 3bda9ca

Please sign in to comment.