trovesuite 1.0.31__py3-none-any.whl → 1.0.33__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- trovesuite/__init__.py +1 -1
- trovesuite/configs/database.py +4 -4
- {trovesuite-1.0.31.dist-info → trovesuite-1.0.33.dist-info}/METADATA +1 -1
- {trovesuite-1.0.31.dist-info → trovesuite-1.0.33.dist-info}/RECORD +7 -7
- {trovesuite-1.0.31.dist-info → trovesuite-1.0.33.dist-info}/WHEEL +0 -0
- {trovesuite-1.0.31.dist-info → trovesuite-1.0.33.dist-info}/licenses/LICENSE +0 -0
- {trovesuite-1.0.31.dist-info → trovesuite-1.0.33.dist-info}/top_level.txt +0 -0
trovesuite/__init__.py
CHANGED
trovesuite/configs/database.py
CHANGED
|
@@ -40,10 +40,10 @@ class DatabaseConfig:
|
|
|
40
40
|
self.settings = db_settings
|
|
41
41
|
self.database_url = self.settings.database_url
|
|
42
42
|
# Safe pool size for Azure Basic tier (B_Standard_B1ms)
|
|
43
|
-
# With 2 workers and pool_size=
|
|
44
|
-
#
|
|
43
|
+
# With 2 workers and pool_size=5: 2 × 5 = 10 connections (safe, well under 50 limit)
|
|
44
|
+
# Increased from 2 to 5 to handle concurrent auth + business logic better
|
|
45
45
|
# Can be overridden with DB_POOL_SIZE environment variable
|
|
46
|
-
self.pool_size = int(os.getenv("DB_POOL_SIZE", "
|
|
46
|
+
self.pool_size = int(os.getenv("DB_POOL_SIZE", "5"))
|
|
47
47
|
|
|
48
48
|
def get_connection_params(self) -> dict:
|
|
49
49
|
"""Get database connection parameters"""
|
|
@@ -104,7 +104,7 @@ class DatabaseConfig:
|
|
|
104
104
|
logger.error(" 4. Connections not being properly returned to pool")
|
|
105
105
|
logger.error(" Solutions:")
|
|
106
106
|
logger.error(" - Set DB_POOL_SIZE=2 (current default)")
|
|
107
|
-
logger.error(" - Reduce GUNICORN_WORKERS (default:
|
|
107
|
+
logger.error(" - Reduce GUNICORN_WORKERS (default: 2)")
|
|
108
108
|
logger.error(" - Consider using PgBouncer for connection pooling")
|
|
109
109
|
logger.error(" - Upgrade to a higher PostgreSQL tier if needed")
|
|
110
110
|
logger.error(f"Failed to create database connection pool: {str(e)}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trovesuite
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.33
|
|
4
4
|
Summary: TroveSuite services package providing authentication, authorization, notifications, Azure Storage, and other enterprise services for TroveSuite applications
|
|
5
5
|
Home-page: https://dev.azure.com/brightgclt/trovesuite/_git/packages
|
|
6
6
|
Author: Bright Debrah Owusu
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
trovesuite/__init__.py,sha256=
|
|
1
|
+
trovesuite/__init__.py,sha256=gelcrNTcYootgFAtLe9QZlingTPaWAlscHFMpDfsb5w,646
|
|
2
2
|
trovesuite/auth/__init__.py,sha256=OjZllVvjul1glDazJ-d5TrNjgHFigFlQQi1G99DYshk,239
|
|
3
3
|
trovesuite/auth/auth_base.py,sha256=rZHQVLeJRBQ8GClgF5UwG-er4_HXVX5-nt8o6_Z29uY,75
|
|
4
4
|
trovesuite/auth/auth_controller.py,sha256=PAgaVlf5TYEfkSfK4vGGsvO84i8zEmeVVXyUF2YBppI,420
|
|
@@ -6,7 +6,7 @@ trovesuite/auth/auth_read_dto.py,sha256=e27JqKVPVUM83A_mYF452QCflsvGNo7aKje7q_ur
|
|
|
6
6
|
trovesuite/auth/auth_service.py,sha256=TQOJFG0AzhPGwZBAXVxMkHxyG2wyct4Zcoq4z0cVBO4,22201
|
|
7
7
|
trovesuite/auth/auth_write_dto.py,sha256=rdwI7w6-9QZGv1H0PAGrjkLBCzaMHjgPIXeLb9RmNec,234
|
|
8
8
|
trovesuite/configs/__init__.py,sha256=h1mSZOaZ3kUy1ZMO_m9O9KklsxywM0RfMVZLh9h9WvQ,328
|
|
9
|
-
trovesuite/configs/database.py,sha256=
|
|
9
|
+
trovesuite/configs/database.py,sha256=kUJWTh51C-CfUDq0HojA4QnQdnq5W8fHv-IJCHFXcW8,15008
|
|
10
10
|
trovesuite/configs/logging.py,sha256=mGjR2d4urVNry9l5_aXycMMtcY2RAFIpEL35hw33KZg,9308
|
|
11
11
|
trovesuite/configs/settings.py,sha256=s-RvzFI7IR8-Q_A0ZRxlTr-iDoY6MvbxM0RkbhmJOL4,6915
|
|
12
12
|
trovesuite/entities/__init__.py,sha256=Dbl_03Bueyh2vOP2hykd40MmNMrl5nNHSRGP-kqwwNo,160
|
|
@@ -27,8 +27,8 @@ trovesuite/storage/storage_write_dto.py,sha256=vl1iCZ93bpFmpvkCrn587QtMtOA_TPDse
|
|
|
27
27
|
trovesuite/utils/__init__.py,sha256=mDZuY77BphvQFYLmcWxjP5Tcq9ZZ3WXJWBKB1v6wzHU,185
|
|
28
28
|
trovesuite/utils/helper.py,sha256=qpd-EWPaX3-QJA5xvxb4s9rEb9W2RKPCDXcdAKSUwSM,30858
|
|
29
29
|
trovesuite/utils/templates.py,sha256=_92k4-EkqWs-h0LNJxPgorbspmp24kDngS7O3qWIFyQ,20388
|
|
30
|
-
trovesuite-1.0.
|
|
31
|
-
trovesuite-1.0.
|
|
32
|
-
trovesuite-1.0.
|
|
33
|
-
trovesuite-1.0.
|
|
34
|
-
trovesuite-1.0.
|
|
30
|
+
trovesuite-1.0.33.dist-info/licenses/LICENSE,sha256=EJT35ct-Q794JYPdAQy3XNczQGKkU1HzToLeK1YVw2s,1070
|
|
31
|
+
trovesuite-1.0.33.dist-info/METADATA,sha256=vJnbpOj0yMMTit8Ce538pXR85B3_Cfhl2qw7416VIH0,21737
|
|
32
|
+
trovesuite-1.0.33.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
33
|
+
trovesuite-1.0.33.dist-info/top_level.txt,sha256=GzKhG_-MTaxeHrIgkGkBH_nof2vroGFBrjeHKWUIwNc,11
|
|
34
|
+
trovesuite-1.0.33.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|