fancy-answer-79663
09/01/2023, 8:13 PMrt_jobs tables has been created since it couldn't send events to the destination, now after a day rudder server would be facing this error and it causes crashloop back off:
2023-09-01T20:11:08.245Z INFO jobsdb.gw jobsdb/jobsdb.go:2716 [[ gw ]]: Error occurred while updating job statuses. Returning err, pq: out of shared memory
2023-09-01T20:11:08.246Z ERROR utils.misc misc/misc.go:927 updating gateway jobs statuses: pq: out of shared memory
2023-09-01T20:11:08.246Z ERROR utils.misc misc/misc.go:927 goroutine 1792 [running]:
github.com/rudderlabs/rudder-go-kit/logger.(*logger).Fatal(0xc0008caf90, {0xc01bcd09e0?, 0xc00b549788?, 0x1?})
/go/pkg/mod/github.com/rudderlabs/rudder-go-kit@v0.15.7/logger/logger.go:186 +0x92
github.com/rudderlabs/rudder-server/utils/misc.BugsnagNotify.func1.1()
/rudder-server/utils/misc/misc.go:927 +0x34d
sync.(*Once).doSlow(0xc01e0f4a01?, 0xc00b5498b0?)
/usr/local/go/src/sync/once.go:74 +0xc2
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:65
github.com/rudderlabs/rudder-server/utils/misc.BugsnagNotify.func1()
/rudder-server/utils/misc/misc.go:917 +0xbc
panic({0x2d26f00, 0xc005943440})
/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/rudderlabs/rudder-server/processor.(*Handle).Store(0xc00076cb00, {0xc002eba080?, 0x1b?}, 0xc001aad180)
/rudder-server/processor/processor.go:2069 +0xe1b
github.com/rudderlabs/rudder-server/processor.(*worker).start.func4()
/rudder-server/processor/worker.go:115 +0x2ec
github.com/rudderlabs/rudder-server/rruntime.Go.func1()
/rudder-server/rruntime/goroutine-factory.go:28 +0x6a
created by github.com/rudderlabs/rudder-server/rruntime.Go
/rudder-server/rruntime/goroutine-factory.go:25 +0x56
I have enough memory resources, it's about 150 GB free memory on the server.millions-activity-52391
09/01/2023, 8:13 PMfancy-answer-79663
09/01/2023, 10:19 PMmax_locks_per_transaction in postgresql.conf,
this is how I added the configuration to the values.yml
postgresql:
postgresqlConfiguration:
"maxLocksPerTransaction": "200"
But I think it did not apply to postgres instance, because still I see the old value in the bitnami/postgresql/data/postgresql.conf file
#max_locks_per_transaction = 64fancy-answer-79663
09/02/2023, 6:51 AMjobsdb=# show all; returns max_locks_per_transaction |64helpful-island-54641
09/04/2023, 4:19 AMfancy-answer-79663
09/04/2023, 10:00 AMmax_connections value won't update, I tried different ways but no luck.
@helpful-island-54641fancy-answer-79663
09/04/2023, 10:02 AMfancy-answer-79663
09/04/2023, 10:28 AMvalues.yml are in this path bitnami/postgresql/conf of docker image...helpful-island-54641
09/04/2023, 11:12 AMfancy-answer-79663
09/04/2023, 12:40 PMmax_locks_per_transaction in the container and it workedfancy-answer-79663
09/09/2023, 3:57 PMrt_job tables because of stopping a destination, are not sending events to destinations, and just received events and lots of restarting for every 2 minutes, even after I changed max_locks_per_transaction .
This is a real concern for us for keeping up with rudder. Do you have any advice on that?helpful-island-54641
09/11/2023, 6:04 AMshy-kite-21035
09/11/2023, 7:06 AMmillions-activity-52391
09/11/2023, 10:47 AMfancy-answer-79663
09/14/2023, 12:53 PMhelpful-island-54641
09/14/2023, 12:55 PMfancy-answer-79663
09/14/2023, 1:01 PMjobsdb reaches a certain amount of volume (because not responding destination, etc...) It will crash again (I sent the logs earlier in this thread), and also uses high amount of memory in that case...helpful-island-54641
09/14/2023, 1:14 PMfancy-answer-79663
09/15/2023, 9:45 AMhelpful-island-54641
09/15/2023, 10:05 AM