Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc prod deployment #126

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Conversation

chaen
Copy link
Contributor

@chaen chaen commented Dec 13, 2024

No description provided.

@chaen chaen force-pushed the doc_prod_deployment branch from 003c879 to 560db1f Compare January 30, 2025 10:07
@chaen chaen force-pushed the doc_prod_deployment branch from 560db1f to ae5b5b0 Compare January 30, 2025 11:47
@@ -0,0 +1,261 @@
# Details of deploying `diracx` in production

The aim of this documentation is to give pointers on how to install the `diracx-charts` longside an existing `DIRAC` installation.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The aim of this documentation is to give pointers on how to install the `diracx-charts` longside an existing `DIRAC` installation.
The aim of this documentation is to give pointers on how to install the `diracx-charts` alongside an existing `DIRAC` installation.


Effectively, this means that you will be using your existing databases (`MySQL`, `OpenSearch`), and just install the new dependencies of `diracx`.

We go here with the assumption that you have a `kubernetes` cluster at hand. If you do no have one, see the [k3s example](../k3s/README.md).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We go here with the assumption that you have a `kubernetes` cluster at hand. If you do no have one, see the [k3s example](../k3s/README.md).
We go here with the assumption that you have a `kubernetes` cluster at hand. If you do not have one, see the [k3s example](../k3s/README.md).


You can for example use [CERN SSO](SSO.md) as an IdP.

Note that you still need to have the users registered in `diracx` by filling the `CsSync` section in the CS.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually explain that in details anywhere? If yes, may be we should add a link pointing to the CsSync section in the CS.

## Admin VO


A new concept in `diracx` is the `AdminVO`, which has super karma on `diracx` itself but not on the resources the VO use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A new concept in `diracx` is the `AdminVO`, which has super karma on `diracx` itself but not on the resources the VO use.
A new concept in `diracx` is the `AdminVO`, which has super karma on `diracx` itself but not on the resources the VOs use.


A new concept in `diracx` is the `AdminVO`, which has super karma on `diracx` itself but not on the resources the VO use.

We recommand using the SSO of your institute of it supports it (see [IdP](#idp)).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We recommand using the SSO of your institute of it supports it (see [IdP](#idp)).
We recommand using the SSO of your institute if it supports it (see [IdP](#idp)).


We recommend taking the configuration from a git repository (gitlab, github, ...).

This is controled with the `DIRACX_CONFIG_BACKEND_URL` setting.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is controled with the `DIRACX_CONFIG_BACKEND_URL` setting.
This is controlled with the `DIRACX_CONFIG_BACKEND_URL` setting.


The Sandbox needs to be an object store. We highly recommend that you use one provided by your institute.

The connections parameters are controlled with
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The connections parameters are controlled with
The connections parameters are controlled with:

JobDB:
```

You can chose whether you prefer to create the DB yourself or let `diracx` do it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can chose whether you prefer to create the DB yourself or let `diracx` do it.
You can choose whether you prefer to create the DB yourself or let `diracx` do it.

enabled: fase
```

The command being executed is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The command being executed is
The command being executed is:



Note that these options will generate mysql urls only. Should you need another DB,
you should write the URL yourself in the settings, for example
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
you should write the URL yourself in the settings, for example
you should write the URL yourself in the settings, for example:

```


You can chose to initialize the DBs yourself or let `diracx` do it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can chose to initialize the DBs yourself or let `diracx` do it.
You can choose to initialize the DBs yourself or let `diracx` do it.

enabled: true
```

The command executed is
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The command executed is
The command executed is:


It will make sure to generate the appropriate settings from the db configurations, generate token signing keys if not present, etc

We recommend you leave it to `true`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We recommend you leave it to `true`.
We recommend you to leave it to `true`.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants