Kurdiez
Setting larger `maintenance_work_mem` for Postgres DB container
We needed larger
maintenance_work_mem
for our production Postgres DB. This is because we have millions of records and needed to adjust indexes. Our maintenance_work_mem
was previously 68MB
.
We set this by running the following SQL
If the Railway service is restarted and therefore the Postgres is restarted, we won't have that set again. How can we permanently set that value as part of config? Is there an environment variable we should be using?10 replies
Does NodeJS service take advantage of multiple CPU cores?
We are not doing anything fancy. Just vanilla NodeJS monolith server running in one of Railway's service. This particular process won't take advantage of the multiple CPU cores provided to our service by default right? Just because of the way NodeJS is.
7 replies
How do you expose a port?
I have a service in Railway that runs a Java server bound to port
5266
. I want to expose that publicly so anybody can access the server. So I added the env variable PORT
in the settings of that service. But when I do the telnet
test to make the TCP/IP connection, nothing is listening on it.9 replies