Configuring Azul
Next, you want to configure Azul's core. This requires linking in OpenSearch and other dependencies as required.
There are example values in azul-app/azul/example-values.yaml for how you might
configure a typical Azul deployment. Store your own values.yaml in a Git repository
somewhere that you deploy with a GitOps provider (e.g. ArgoCD).
Authentication/Authorisation
You'll need to plug in an appropriate OIDC provider into OpenSearch and Azul.
Follow the official OpenSearch documentation to configure OpenSearch with the OIDC provider.
See this page for example keycloak configuration.
Azul Configuration for OIDC Provider
Azul needs to be configured to redirect users to the OIDC provider for the OIDC flow to work correctly.
| Entry in values.yaml | Description | Example |
|---|---|---|
security.oidc.enabled | do oidc stuff | true |
security.oidc.authority_url | url to root of oidc provider | https://login.microsoftonline.com/MY_ID/v2.0/ |
security.oidc.client_id | oidc client id | web |
security.oidc.scopes | oidc scope request | openid profile email offline_access |
Opensearch Azul Role Configuration
For Azul user access, additional opensearch configuration is needed.
See this page for more information about configuring Azul access control through opensearch.
For Keycloak, refer to the Azul-specific Keycloak documentation.
For Minio, consider setting up age-off in the Minio age-off documentation.
Usage of KEDA (via the azul-scaler), network policies and the like are documented
in values files in this repo.
Opensearch Optimal Index sizes
When setting up Azul you can configure the number of replicas and shards for each index.
Initially leaving it as the default is fine, unless you know how much data you are going to be consuming.
If you know roughly how large the indices will be you can increase the replica and shard count under each individual source in the helm values.yaml.
An optimal shard size is roughly 30GB for opensearch as per these blogs:
- https://opensearch.org/blog/optimize-opensearch-index-shard-size/
- https://docs.aws.amazon.com/opensearch-service/latest/developerguide/bp-sharding.html
Replicas are used to reduce the risk of cluster faults resulting in lost data. As all the data is effectively stored in kafka this is 2 by default and is sufficient in most cases.
The shard count may need to go up if you are ingesting a large amount of data and defaults to 3.