Skip to content

Commit 2edce9d

Browse files
authored
RHIDP-12593: Support pluginDivisionMode: schema for Single Database Deployments (redhat-developer#2099)
* RHIDP-12593: Support pluginDivisionMode: schema for Single Database Deployments * RHIDP-12593: edits from dev review * RHIDP-12593: Removed topics per dev review * RHIDP-12593: short description failed character limit * RHIDP-12593: added topic based on dev discussion * RHIDP-12593: updated task based on dev discussion * RHIDP-12593: removed files that are not needed * RHIDP-12593: removed assembly that is not needed * Remove unused assembly file * Remove unused module file * RHIDP-12593: edits from dev review * RHIDP-12593: minor changes to comply with style guide * RHIDP-12593: updated filename and revised assembly to use new name * RHIDP-12593: updated short description * RHIDP-12593: changed filename to match JTBD suggestion * RHIDP-12593: updated ID to match new filename * RHIDP-12593: tshooting * RHIDP-12593: tshooting ID * RHIDP-12593: edits from peer review
1 parent d8f525c commit 2edce9d

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

assemblies/configure_configuring-rhdh/assembly-configure-external-postgresql-databases.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ include::../modules/configure_configuring-rhdh/proc-configure-an-external-postgr
2121

2222
include::../modules/configure_configuring-rhdh/proc-migrate-local-databases-to-an-external-database-server-using-the-operator.adoc[leveloffset=+1]
2323

24+
include::../modules/configure_configuring-rhdh/proc-configure-schema-based-plugin-isolation-to-simplify-single-database-provisioning.adoc[leveloffset=+1]
25+
2426
:context: {previouscontext}
2527
:!previouscontext:
2628

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
:_mod-docs-content-type: PROCEDURE
2+
3+
[id="configure-schema-based-plugin-isolation-to-simplify-single-database-provisioning_{context}"]
4+
= Configure schema-based plugin isolation to simplify single-database provisioning
5+
6+
[role="_abstract"]
7+
Configure schema-based plugin isolation to support database users without `CREATEDB` privileges or to reduce database provisioning overhead. Each {product-very-short} plugin uses its own PostgreSQL schema within a single shared database.
8+
9+
.Prerequisites
10+
11+
* An external PostgreSQL instance is configured using the Operator or the Helm chart.
12+
* Your database user has `CREATE SCHEMA` privileges on the target database, or your database administrator will create the required schemas.
13+
14+
[NOTE]
15+
====
16+
By default, when `pluginDivisionMode` is set to `schema`, {product-very-short} automatically creates the required schemas because the `ensureExists` configuration defaults to `true`. The database user must have `CREATE SCHEMA` privileges on the target database.
17+
====
18+
19+
.Procedure
20+
21+
. Add `pluginDivisionMode: schema` to the `backend.database` section of your {product-very-short} configuration in the `app-config-rhdh` ConfigMap:
22+
+
23+
[source,yaml]
24+
----
25+
backend:
26+
database:
27+
client: pg
28+
pluginDivisionMode: schema
29+
connection:
30+
host: ${POSTGRES_HOST}
31+
port: ${POSTGRES_PORT}
32+
user: ${POSTGRES_USER}
33+
password: ${POSTGRES_PASSWORD}
34+
----
35+
36+
. Save the configuration changes.
37+
38+
. Restart the {product} deployment to apply the new configuration.

0 commit comments

Comments
 (0)