diff --git a/packages/fileimport-service/knex.js b/packages/fileimport-service/knex.js index 7e85a7ae2..b27f250a0 100644 --- a/packages/fileimport-service/knex.js +++ b/packages/fileimport-service/knex.js @@ -10,7 +10,9 @@ module.exports = require('knex')({ }, pool: { min: 0, - max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_FILE_IMPORT_SERVICE) || 1 + max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_FILE_IMPORT_SERVICE) || 1, + acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts + createTimeoutMillis: 5000 } // migrations are in managed in the server package }) diff --git a/packages/frontend-2/components/project/page/models/Card.vue b/packages/frontend-2/components/project/page/models/Card.vue index a680ba270..b2deaf2e4 100644 --- a/packages/frontend-2/components/project/page/models/Card.vue +++ b/packages/frontend-2/components/project/page/models/Card.vue @@ -170,7 +170,7 @@ const showActionsMenu = ref(false) const containerClasses = computed(() => { const classParts = [ - 'group rounded-xl bg-foundation border border-outline-3 hover:border-outline-5 w-full' + 'group rounded-xl bg-foundation border border-outline-3 hover:border-outline-5 w-full z-[0]' ] if (versionCount.value > 0) { diff --git a/packages/preview-service/knex.js b/packages/preview-service/knex.js index 3a7d7d7cd..8a79ffea5 100644 --- a/packages/preview-service/knex.js +++ b/packages/preview-service/knex.js @@ -10,7 +10,9 @@ module.exports = require('knex')({ }, pool: { min: 0, - max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_PREVIEW_SERVICE) || 2 + max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_PREVIEW_SERVICE) || 2, + acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts + createTimeoutMillis: 5000 } // migrations are in managed in the server package }) diff --git a/packages/server/knexfile.js b/packages/server/knexfile.js index 5a9a93501..3050524d6 100644 --- a/packages/server/knexfile.js +++ b/packages/server/knexfile.js @@ -92,7 +92,12 @@ const commonConfig = { }, // we wish to avoid leaking sql queries in the logs: https://knexjs.org/guide/#compilesqlonerror compileSqlOnError: false, - pool: { min: 0, max: postgresMaxConnections() } + pool: { + min: 0, + max: postgresMaxConnections(), + acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts + createTimeoutMillis: 5000 + } } /** @type {Object} */ diff --git a/packages/webhook-service/src/knex.js b/packages/webhook-service/src/knex.js index 7c002a8c7..5cc4adad8 100644 --- a/packages/webhook-service/src/knex.js +++ b/packages/webhook-service/src/knex.js @@ -10,7 +10,9 @@ module.exports = require('knex')({ }, pool: { min: 0, - max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_WEBHOOK_SERVICE) || 1 + max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_WEBHOOK_SERVICE) || 1, + acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts + createTimeoutMillis: 5000 } // migrations are in managed in the server package })