diff --git a/partition-core-plus/README.md b/partition-core-plus/README.md index a374649da6d025f53c64bffbebbf62a05d1906bc..bac580c21600ebd0ed31df669b51992b14ef45db 100644 --- a/partition-core-plus/README.md +++ b/partition-core-plus/README.md @@ -47,9 +47,20 @@ CREATE INDEX IF NOT EXISTS PartitionProperty_datagin ON partition."PartitionProp * For this command to work, create a file with below data in the same folder from where you're executing the above command (variables are in sync with what was created in point number 2): -`PARTITION_POSTGRES_URL=jdbc:postgresql://172.17.0.1:5432/partition_db -PARTITION_POSTGRESQL_USERNAME=usr_partition_pg -PARTITION_POSTGRESQL_PASSWORD=partition_pg -dataPartitionId=test-partition` +Must have + +| name | value | description | sensitive? | source | +|---------------------------------|-----------------------------------------------------|-------------|------------|--------| +| `PARTITION_POSTGRES_URL` | ex `jdbc:postgresql://172.17.0.1:5432/partition_db` | | | | +| `PARTITION_POSTGRESQL_USERNAME` | ex `usr_partition_pg` | | | | +| `PARTITION_POSTGRESQL_PASSWORD` | ex `partition_pg` | | | | +| `dataPartitionId` | ex `test-partition` | | | | + +Defined in default application property file but possible to override: + +| name | value | description | sensitive? | source | +|-----------------------------------|-------------------|--------------------------|------------|---------------| +| `MANAGEMENT_ENDPOINTS_WEB_BASE` | ex `/` | Web base for Actuator | no | - | +| `MANAGEMENT_SERVER_PORT` | ex `8081` | Port for Actuator | no | - | * Now, you can hit the Partition service from Postman to work on partition service locally. diff --git a/partition-core-plus/src/main/resources/application.properties b/partition-core-plus/src/main/resources/application.properties index 7f170d9b193e2ce0615431084c07f1313a73e117..4dc59dfd1f2f70917c6cd7f2a474ff09eb37ab26 100644 --- a/partition-core-plus/src/main/resources/application.properties +++ b/partition-core-plus/src/main/resources/application.properties @@ -44,5 +44,8 @@ osm.postgres.password=${PARTITION_POSTGRESQL_PASSWORD:partition_pg} #property used only for mandatory bean creation, not actually used in partition service dataPartitionId = ${DATA_PARTITION_ID:test-partition} +# Health checks +management.server.port=${MANAGEMENT_SERVER_PORT:8081} +management.endpoints.web.base-path=${MANAGEMENT_ENDPOINTS_WEB_BASE:/} management.endpoints.web.exposure.include=health -management.health.probes.enabled=true \ No newline at end of file +management.health.probes.enabled=true diff --git a/provider/partition-gc/docs/gc/README.md b/provider/partition-gc/docs/gc/README.md index 15a34c66d576ba34858d78ff0c89c14a520157e4..6259e8ec73455acf884741845898749203ae00ab 100644 --- a/provider/partition-gc/docs/gc/README.md +++ b/provider/partition-gc/docs/gc/README.md @@ -13,15 +13,17 @@ Must have: Defined in default application property file but possible to override: -| name | value | description | sensitive? | source | -|-----------------------------|------------------------|------------------------------------|------------|--------| -| `LOG_LEVEL` | `****` | Logging level | no | - | -| `LOG_PREFIX` | `service` | Logging prefix | no | - | -| `SERVER_SERVLET_CONTEXPATH` | `/api/partition/v1` | Servlet context path | no | - | -| `PARTITION_PROPERTY_KIND` | ex `PartitionProperty` | Kind name to store the properties. | no | - | -| `PARTITION_NAMESPACE` | ex `partition` | Namespace for database. | no | - | -| `SYSTEM_PARTITION_ID` | ex `syspartition` | Name of system partition. | yes | - | -| `SYSTEM_TENANT_API` | ex `true` | Enables system API | no | - | +| name | value | description | sensitive? | source | +|---------------------------------|-------------------------|------------------------------------|------------|--------| +| `LOG_LEVEL` | `****` | Logging level | no | - | +| `LOG_PREFIX` | `service` | Logging prefix | no | - | +| `SERVER_SERVLET_CONTEXPATH` | `/api/partition/v1` | Servlet context path | no | - | +| `PARTITION_PROPERTY_KIND` | ex `PartitionProperty` | Kind name to store the properties. | no | - | +| `PARTITION_NAMESPACE` | ex `partition` | Namespace for database. | no | - | +| `SYSTEM_PARTITION_ID` | ex `syspartition` | Name of system partition. | yes | - | +| `SYSTEM_TENANT_API` | ex `true` | Enables system API | no | - | +| `MANAGEMENT_ENDPOINTS_WEB_BASE` | ex `/` | Web base for Actuator | no | - | +| `MANAGEMENT_SERVER_PORT` | ex `8081` | Port for Actuator | no | - | These variables define service behavior, and are used to switch between `baremetal` or `gc` environments, their overriding and usage in mixed mode was not tested. Usage of spring profiles is preferred. diff --git a/provider/partition-gc/src/main/resources/application.properties b/provider/partition-gc/src/main/resources/application.properties index ea0fc45c83a291c2821aaa43906ffbdc163a0ff0..8bbe714f5a02e1db63a40da3d571c5306f7f3427 100644 --- a/provider/partition-gc/src/main/resources/application.properties +++ b/provider/partition-gc/src/main/resources/application.properties @@ -38,5 +38,8 @@ system.tenant.api=${SYSTEM_TENANT_API:true} system-partition-id=${SYSTEM_PARTITION_ID:system} system-partition-listable-and-resource-ready=${SYSTEM_PARTITION_LISTABLE_AND_RESOURCE_READY:false} +# Health checks +management.server.port=${MANAGEMENT_SERVER_PORT:8081} +management.endpoints.web.base-path=${MANAGEMENT_ENDPOINTS_WEB_BASE:/} management.endpoints.web.exposure.include=health -management.health.probes.enabled=true \ No newline at end of file +management.health.probes.enabled=true