Service won't sleep with enable serverless
pipech
PROOP

4 months ago

One of my service (Specifically Docmost from Docmost Railway Template) won't sleep even with "Enable Serverless" is turn on.

  • I've tried re-deploy the service, toggle enable serverless on and off

Solved$10 Bounty

Pinned Solution

4 months ago

hey, per railway docs, they won't sleep if they meet any of these (probably include any traffic connections)

  • Keeping active database connections open, such as a database connection pooler.

  • Frameworks that report telemetry to their respective services, such as Next.js.

  • Making requests to other services in the same project over the private network.

  • Making requests to other Railway services over the public internet.

  • Making requests to external services over the public internet.

  • Receiving traffic from other services in the same project over the private network.

  • Receiving traffic from other Railway services over the public internet.

  • Receiving traffic from external services over the public internet.

3 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


4 months ago

hey, per railway docs, they won't sleep if they meet any of these (probably include any traffic connections)

  • Keeping active database connections open, such as a database connection pooler.

  • Frameworks that report telemetry to their respective services, such as Next.js.

  • Making requests to other services in the same project over the private network.

  • Making requests to other Railway services over the public internet.

  • Making requests to external services over the public internet.

  • Receiving traffic from other services in the same project over the private network.

  • Receiving traffic from other Railway services over the public internet.

  • Receiving traffic from external services over the public internet.


pipech
PROOP

4 months ago

It seems like (not sure) docmost keep redis connection opens, so it's expected behavior from railway standpoint.

https://github.com/docmost/docmost/blob/main/apps/server/src/main.ts
https://github.com/docmost/docmost/blob/main/apps/server/src/ws/adapter/ws-redis.adapter.ts

Thanks for the guidance.


Status changed to Solved angelo-railway 4 months ago


Loading...