auto commit
This commit is contained in:
parent
27d22e2212
commit
7a7e1ce446
@ -46,7 +46,6 @@ services:
|
||||
ports:
|
||||
- "${TIMESCALEDB_PORT}:5433"
|
||||
environment:
|
||||
- NODE_ENV=${NODE_ENV:-development}
|
||||
- POSTGRES_DB=postgres
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=${TIMESCALEDB_PASSWORD}
|
||||
@ -59,10 +58,11 @@ services:
|
||||
- fems_timescaledb:/var/lib/postgresql/data
|
||||
- ./fems-timescaledb/postgresql.conf:/etc/postgresql/postgresql.conf:ro
|
||||
- ./fems-timescaledb/pg_hba.conf:/etc/postgresql/pg_hba.conf:ro
|
||||
- ./fems-timescaledb/init-scripts:/docker-entrypoint-initdb.d/:ro
|
||||
- ./fems-timescaledb/init-scripts:/docker-entrypoint-initdb.d
|
||||
command: ["postgres", "-c", "config_file=/etc/postgresql/postgresql.conf"]
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
test:
|
||||
["CMD-SHELL", "pg_isready -U ${TIMESCALEDB_USER} -d ${TIMESCALEDB_DB}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
@ -1782,3 +1782,137 @@ To fix this, use `chmod 0700 /mosquitto/config/passwd`.
|
||||
1732088265: Config loaded from /mosquitto/config/mosquitto.conf.
|
||||
1732088265: Error: Unable to open pwfile "/mosquitto/config/passwd".
|
||||
1732088265: Error opening password file "/mosquitto/config/passwd".
|
||||
1732088634: mosquitto version 2.0.20 starting
|
||||
1732088634: Config loaded from /mosquitto/config/mosquitto.conf.
|
||||
1732088634: Opening ipv4 listen socket on port 1883.
|
||||
1732088634: Opening ipv6 listen socket on port 1883.
|
||||
1732088634: Opening websockets listen socket on port 8883.
|
||||
1732088634: mosquitto version 2.0.20 running
|
||||
1732088637: New connection from 172.19.0.9:40930 on port 1883.
|
||||
1732088637: New client connected from 172.19.0.9:40930 as fems-realtime-40 (p2, c1, k60, u'fems').
|
||||
1732088664: New connection from ::1:58758 on port 1883.
|
||||
1732088664: New client connected from ::1:58758 as auto-DBA65998-0488-425C-5008-411B96948888 (p2, c1, k60, u'fems').
|
||||
1732088664: Client auto-DBA65998-0488-425C-5008-411B96948888 closed its connection.
|
||||
1732088694: New connection from ::1:58708 on port 1883.
|
||||
1732088694: New client connected from ::1:58708 as auto-4575E28C-1479-163B-2EDE-B0F916999B9F (p2, c1, k60, u'fems').
|
||||
1732088694: Client auto-4575E28C-1479-163B-2EDE-B0F916999B9F closed its connection.
|
||||
1732088724: New connection from ::1:48090 on port 1883.
|
||||
1732088724: New client connected from ::1:48090 as auto-29E2094E-C2B4-3A34-67B8-EA74E91EBCBB (p2, c1, k60, u'fems').
|
||||
1732088724: Client auto-29E2094E-C2B4-3A34-67B8-EA74E91EBCBB closed its connection.
|
||||
1732088754: New connection from ::1:59394 on port 1883.
|
||||
1732088754: New client connected from ::1:59394 as auto-E7332649-BAB1-A7E8-4CA1-B91FB8941025 (p2, c1, k60, u'fems').
|
||||
1732088754: Client auto-E7332649-BAB1-A7E8-4CA1-B91FB8941025 closed its connection.
|
||||
1732088784: New connection from ::1:56696 on port 1883.
|
||||
1732088784: New client connected from ::1:56696 as auto-5E9DA8B4-604C-48D9-8AA0-4B513D5A5314 (p2, c1, k60, u'fems').
|
||||
1732088784: Client auto-5E9DA8B4-604C-48D9-8AA0-4B513D5A5314 closed its connection.
|
||||
1732088814: New connection from ::1:54450 on port 1883.
|
||||
1732088814: New client connected from ::1:54450 as auto-22C50E8F-EE19-66AC-50FE-1868C340CFB0 (p2, c1, k60, u'fems').
|
||||
1732088814: Client auto-22C50E8F-EE19-66AC-50FE-1868C340CFB0 closed its connection.
|
||||
1732088845: New connection from ::1:42100 on port 1883.
|
||||
1732088845: New client connected from ::1:42100 as auto-FD35C9A0-DAD9-536F-6F3E-9504D58CC6B3 (p2, c1, k60, u'fems').
|
||||
1732088845: Client auto-FD35C9A0-DAD9-536F-6F3E-9504D58CC6B3 closed its connection.
|
||||
1732088875: New connection from ::1:56276 on port 1883.
|
||||
1732088875: New client connected from ::1:56276 as auto-190BFC24-1915-382F-20B4-7451BC1A35E2 (p2, c1, k60, u'fems').
|
||||
1732088875: Client auto-190BFC24-1915-382F-20B4-7451BC1A35E2 closed its connection.
|
||||
1732088905: New connection from ::1:37464 on port 1883.
|
||||
1732088905: New client connected from ::1:37464 as auto-58BA6A80-4999-D62C-73FD-855F3962AB25 (p2, c1, k60, u'fems').
|
||||
1732088905: Client auto-58BA6A80-4999-D62C-73FD-855F3962AB25 closed its connection.
|
||||
1732088935: New connection from ::1:39780 on port 1883.
|
||||
1732088935: New client connected from ::1:39780 as auto-8322E84B-64C2-16C4-21E2-ACFFE6E11985 (p2, c1, k60, u'fems').
|
||||
1732088935: Client auto-8322E84B-64C2-16C4-21E2-ACFFE6E11985 closed its connection.
|
||||
1732088965: New connection from ::1:35036 on port 1883.
|
||||
1732088965: New client connected from ::1:35036 as auto-C371AF34-E8DC-2D87-24F0-DB79BB24FBE7 (p2, c1, k60, u'fems').
|
||||
1732088965: Client auto-C371AF34-E8DC-2D87-24F0-DB79BB24FBE7 closed its connection.
|
||||
1732088995: New connection from ::1:36612 on port 1883.
|
||||
1732088995: New client connected from ::1:36612 as auto-3D1D4525-FA0A-CD91-BD15-2126916CE3F4 (p2, c1, k60, u'fems').
|
||||
1732088995: Client auto-3D1D4525-FA0A-CD91-BD15-2126916CE3F4 closed its connection.
|
||||
1732089025: New connection from ::1:55708 on port 1883.
|
||||
1732089025: New client connected from ::1:55708 as auto-E343B45A-06F6-F056-EAF0-8599F08C196C (p2, c1, k60, u'fems').
|
||||
1732089025: Client auto-E343B45A-06F6-F056-EAF0-8599F08C196C closed its connection.
|
||||
1732089055: New connection from ::1:51516 on port 1883.
|
||||
1732089055: New client connected from ::1:51516 as auto-7D2FD5CC-67A9-2387-5197-3981C3EDEAE9 (p2, c1, k60, u'fems').
|
||||
1732089055: Client auto-7D2FD5CC-67A9-2387-5197-3981C3EDEAE9 closed its connection.
|
||||
1732089085: New connection from ::1:38042 on port 1883.
|
||||
1732089085: New client connected from ::1:38042 as auto-4667BCE4-8579-DE1B-4B63-A83A5F5F2C19 (p2, c1, k60, u'fems').
|
||||
1732089085: Client auto-4667BCE4-8579-DE1B-4B63-A83A5F5F2C19 closed its connection.
|
||||
1732089115: New connection from ::1:50806 on port 1883.
|
||||
1732089115: New client connected from ::1:50806 as auto-9E8E2D88-6651-4413-458E-582FDFBEBC15 (p2, c1, k60, u'fems').
|
||||
1732089115: Client auto-9E8E2D88-6651-4413-458E-582FDFBEBC15 closed its connection.
|
||||
1732089145: New connection from ::1:45258 on port 1883.
|
||||
1732089145: New client connected from ::1:45258 as auto-6F4F3C11-9C7A-C1EC-67A2-CA7934CFA3A5 (p2, c1, k60, u'fems').
|
||||
1732089145: Client auto-6F4F3C11-9C7A-C1EC-67A2-CA7934CFA3A5 closed its connection.
|
||||
1732089175: New connection from ::1:38618 on port 1883.
|
||||
1732089175: New client connected from ::1:38618 as auto-CE233487-5C2F-AE7D-F921-D81E5D5A7CD8 (p2, c1, k60, u'fems').
|
||||
1732089176: Client auto-CE233487-5C2F-AE7D-F921-D81E5D5A7CD8 closed its connection.
|
||||
1732089206: New connection from ::1:60812 on port 1883.
|
||||
1732089206: New client connected from ::1:60812 as auto-AE3D8C43-0ED6-92CB-62DF-12F7CED7CF79 (p2, c1, k60, u'fems').
|
||||
1732089206: Client auto-AE3D8C43-0ED6-92CB-62DF-12F7CED7CF79 closed its connection.
|
||||
1732089236: New connection from ::1:40898 on port 1883.
|
||||
1732089236: New client connected from ::1:40898 as auto-66514C23-387C-50B8-79DD-508C3CEB45B8 (p2, c1, k60, u'fems').
|
||||
1732089236: Client auto-66514C23-387C-50B8-79DD-508C3CEB45B8 closed its connection.
|
||||
1732089266: New connection from ::1:40662 on port 1883.
|
||||
1732089266: New client connected from ::1:40662 as auto-CF412D34-0025-469A-14BA-A86299B3F7EE (p2, c1, k60, u'fems').
|
||||
1732089266: Client auto-CF412D34-0025-469A-14BA-A86299B3F7EE closed its connection.
|
||||
1732089296: New connection from ::1:58768 on port 1883.
|
||||
1732089296: New client connected from ::1:58768 as auto-1F2157B9-C98B-D21C-CBE6-673BB24E46E2 (p2, c1, k60, u'fems').
|
||||
1732089296: Client auto-1F2157B9-C98B-D21C-CBE6-673BB24E46E2 closed its connection.
|
||||
1732089326: New connection from ::1:54782 on port 1883.
|
||||
1732089326: New client connected from ::1:54782 as auto-82512E5F-44C2-A28B-3099-B9F65DCB429D (p2, c1, k60, u'fems').
|
||||
1732089326: Client auto-82512E5F-44C2-A28B-3099-B9F65DCB429D closed its connection.
|
||||
1732089356: New connection from ::1:50322 on port 1883.
|
||||
1732089356: New client connected from ::1:50322 as auto-57D127B8-A12C-52B2-C502-FBA104945E20 (p2, c1, k60, u'fems').
|
||||
1732089356: Client auto-57D127B8-A12C-52B2-C502-FBA104945E20 closed its connection.
|
||||
1732089386: New connection from ::1:48738 on port 1883.
|
||||
1732089386: New client connected from ::1:48738 as auto-9019AF01-0843-245A-39ED-13DA7BBF87A9 (p2, c1, k60, u'fems').
|
||||
1732089386: Client auto-9019AF01-0843-245A-39ED-13DA7BBF87A9 closed its connection.
|
||||
1732089416: New connection from ::1:40740 on port 1883.
|
||||
1732089416: New client connected from ::1:40740 as auto-6D87AB28-D00C-1FFE-8E94-00FBAE5D32CF (p2, c1, k60, u'fems').
|
||||
1732089416: Client auto-6D87AB28-D00C-1FFE-8E94-00FBAE5D32CF closed its connection.
|
||||
1732089446: New connection from ::1:58926 on port 1883.
|
||||
1732089446: New client connected from ::1:58926 as auto-5FFDE21D-EC6F-7936-D97C-4EEB547DF38D (p2, c1, k60, u'fems').
|
||||
1732089446: Client auto-5FFDE21D-EC6F-7936-D97C-4EEB547DF38D closed its connection.
|
||||
1732089476: New connection from ::1:34606 on port 1883.
|
||||
1732089476: New client connected from ::1:34606 as auto-FE03F5C5-55CC-9B95-7A82-42AB6DD0927B (p2, c1, k60, u'fems').
|
||||
1732089476: Client auto-FE03F5C5-55CC-9B95-7A82-42AB6DD0927B closed its connection.
|
||||
1732089507: New connection from ::1:52828 on port 1883.
|
||||
1732089507: New client connected from ::1:52828 as auto-1718C7E1-398F-9575-92AA-1634EB0AAF9D (p2, c1, k60, u'fems').
|
||||
1732089507: Client auto-1718C7E1-398F-9575-92AA-1634EB0AAF9D closed its connection.
|
||||
1732089592: Client fems-realtime-40 has exceeded timeout, disconnecting.
|
||||
1732089597: New connection from 172.19.0.9:48954 on port 1883.
|
||||
1732089597: New client connected from 172.19.0.9:48954 as fems-realtime-40 (p2, c1, k60, u'fems').
|
||||
1732089609: New connection from ::1:45170 on port 1883.
|
||||
1732089609: New client connected from ::1:45170 as auto-DF96AADF-BC47-773B-9E72-28074AAE95B7 (p2, c1, k60, u'fems').
|
||||
1732089609: Client auto-DF96AADF-BC47-773B-9E72-28074AAE95B7 closed its connection.
|
||||
1732089639: New connection from ::1:39516 on port 1883.
|
||||
1732089639: New client connected from ::1:39516 as auto-6A67E1AF-55D4-997E-5B4D-2E5CAED1DE35 (p2, c1, k60, u'fems').
|
||||
1732089639: Client auto-6A67E1AF-55D4-997E-5B4D-2E5CAED1DE35 closed its connection.
|
||||
1732089669: New connection from ::1:53416 on port 1883.
|
||||
1732089669: New client connected from ::1:53416 as auto-DA18063D-EEC1-6C80-FFF6-EBCBF1CD89D6 (p2, c1, k60, u'fems').
|
||||
1732089669: Client auto-DA18063D-EEC1-6C80-FFF6-EBCBF1CD89D6 closed its connection.
|
||||
1732089699: New connection from ::1:45190 on port 1883.
|
||||
1732089699: New client connected from ::1:45190 as auto-F65E9B31-C444-1B8F-3E16-D2CB7392CC42 (p2, c1, k60, u'fems').
|
||||
1732089699: Client auto-F65E9B31-C444-1B8F-3E16-D2CB7392CC42 closed its connection.
|
||||
1732089729: New connection from ::1:54352 on port 1883.
|
||||
1732089729: New client connected from ::1:54352 as auto-E32F6ED3-1E9A-6951-755B-47E4F9A45741 (p2, c1, k60, u'fems').
|
||||
1732089729: Client auto-E32F6ED3-1E9A-6951-755B-47E4F9A45741 closed its connection.
|
||||
1732089759: New connection from ::1:34076 on port 1883.
|
||||
1732089759: New client connected from ::1:34076 as auto-1639FC4B-2C2F-064C-DF7D-204295BEC23F (p2, c1, k60, u'fems').
|
||||
1732089759: Client auto-1639FC4B-2C2F-064C-DF7D-204295BEC23F closed its connection.
|
||||
1732089789: New connection from ::1:44238 on port 1883.
|
||||
1732089789: New client connected from ::1:44238 as auto-15A41F99-377C-9E84-73A4-733F9313763E (p2, c1, k60, u'fems').
|
||||
1732089789: Client auto-15A41F99-377C-9E84-73A4-733F9313763E closed its connection.
|
||||
1732089819: New connection from ::1:49728 on port 1883.
|
||||
1732089819: New client connected from ::1:49728 as auto-618038AA-4C36-312F-C7B4-16649B30790F (p2, c1, k60, u'fems').
|
||||
1732089819: Client auto-618038AA-4C36-312F-C7B4-16649B30790F closed its connection.
|
||||
1732089850: New connection from ::1:57906 on port 1883.
|
||||
1732089850: New client connected from ::1:57906 as auto-0CD70639-0899-A125-665F-72BF4D704A30 (p2, c1, k60, u'fems').
|
||||
1732089850: Client auto-0CD70639-0899-A125-665F-72BF4D704A30 closed its connection.
|
||||
1732090006: Client fems-realtime-40 has exceeded timeout, disconnecting.
|
||||
1732090011: New connection from 172.19.0.9:43026 on port 1883.
|
||||
1732090011: New client connected from 172.19.0.9:43026 as fems-realtime-40 (p2, c1, k60, u'fems').
|
||||
1732090024: New connection from ::1:52862 on port 1883.
|
||||
1732090024: New client connected from ::1:52862 as auto-07284320-BF3C-747A-D0CA-7AB97E75A26C (p2, c1, k60, u'fems').
|
||||
1732090024: Client auto-07284320-BF3C-747A-D0CA-7AB97E75A26C closed its connection.
|
||||
1732090054: New connection from ::1:33024 on port 1883.
|
||||
1732090054: New client connected from ::1:33024 as auto-821C064C-04A5-350D-E9AB-AD9F1CD16B3D (p2, c1, k60, u'fems').
|
||||
1732090054: Client auto-821C064C-04A5-350D-E9AB-AD9F1CD16B3D closed its connection.
|
||||
|
@ -1,7 +1,5 @@
|
||||
# fems-postgres/pg_hba.conf
|
||||
# TYPE DATABASE USER ADDRESS METHOD
|
||||
# "local" is for Unix domain socket connections only
|
||||
# TYPE DATABASE USER ADDRESS METHOD
|
||||
local all all scram-sha-256
|
||||
host all all 127.0.0.1/32 scram-sha-256
|
||||
host all all ::1/128 scram-sha-256
|
||||
|
@ -1,16 +1,35 @@
|
||||
# fems-postgres/postgresql.conf
|
||||
listen_addresses = '*'
|
||||
port = 5432
|
||||
port = 5433
|
||||
max_connections = 100
|
||||
shared_buffers = 128MB
|
||||
work_mem = '16MB'
|
||||
maintenance_work_mem = '64MB'
|
||||
dynamic_shared_memory_type = posix
|
||||
effective_cache_size = '1GB'
|
||||
|
||||
# TimescaleDB 설정
|
||||
shared_preload_libraries = 'timescaledb'
|
||||
timescaledb.telemetry_level = 'off'
|
||||
timescaledb.max_background_workers = 8
|
||||
|
||||
# WAL 설정
|
||||
wal_level = 'replica'
|
||||
max_wal_size = 1GB
|
||||
min_wal_size = 80MB
|
||||
checkpoint_completion_target = 0.9
|
||||
wal_buffers = '16MB'
|
||||
|
||||
# 로깅 설정
|
||||
log_timezone = 'Asia/Seoul'
|
||||
datestyle = 'iso, ymd'
|
||||
timezone = 'Asia/Seoul'
|
||||
lc_messages = 'en_US.utf8'
|
||||
lc_monetary = 'en_US.utf8'
|
||||
lc_numeric = 'en_US.utf8'
|
||||
lc_time = 'en_US.utf8'
|
||||
default_text_search_config = 'pg_catalog.english'
|
||||
lc_messages = 'C'
|
||||
lc_monetary = 'C'
|
||||
lc_numeric = 'C'
|
||||
lc_time = 'C'
|
||||
default_text_search_config = 'pg_catalog.english'
|
||||
|
||||
# 성능 최적화
|
||||
random_page_cost = 1.1
|
||||
effective_io_concurrency = 200
|
Loading…
Reference in New Issue
Block a user