Skip to content

Commit 3c9286a

Browse files
committed
fix: change default config
1 parent 59c12ff commit 3c9286a

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

docker/docker-compose.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ services:
4040
OPENFGA_DATASTORE_URI: "root:1234@tcp(mysql:3306)/openfga?parseTime=true"
4141
OPENFGA_LOG_FORMAT: json
4242
OPENFGA_PLAYGROUND_ENABLED: "true"
43+
OPENFGA_CHECK_QUERY_CACHE_ENABLED: "true"
44+
OPENFGA_CHECK_QUERY_CACHE_TTL: 30s
45+
OPENFGA_CHECK_ITERATOR_CACHE_ENABLED: "true"
46+
OPENFGA_CHECK_ITERATOR_CACHE_TTL: 30s
47+
OPENFGA_CHECK_ITERATOR_CACHE_MAX_RESULTS: 10000
48+
OPENFGA_CACHE_CONTROLLER_ENABLED: "true"
49+
OPENFGA_CACHE_CONTROLLER_TTL: 10s
50+
OPENFGA_DATASTORE_MAX_OPEN_CONNS: 80
51+
OPENFGA_DATASTORE_MAX_IDLE_CONNS: 40
52+
4353
ports:
4454
- "8080:8080"
4555
- "8081:8081"

docker/mysql/conf/my.cnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ default-character-set=utf8mb4
55
default-character-set=utf8mb4
66

77
[mysqld]
8+
max_connections=1000
89
init_connect='SET collation_connection = utf8mb4_unicode_ci, NAMES utf8mb4'
910
character-set-server=utf8mb4
1011
collation-server=utf8mb4_unicode_ci

0 commit comments

Comments
 (0)