Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on docker service / stack #1127

Closed
carenswijaya01 opened this issue Apr 26, 2024 · 6 comments
Closed

Issue on docker service / stack #1127

carenswijaya01 opened this issue Apr 26, 2024 · 6 comments

Comments

@carenswijaya01
Copy link

Hello sir, today i try to build your apps into local server, everything seems fine when i run this using 1 replica. But if i create 2 replica, it getting errors that stirling-pdf-DB.mv.db already use by other container (i mean another replica). So my latest solution is just deploy using 1 replica, i don't know if i have to scale it in the future, any suggestion?

@Ludy87
Copy link
Contributor

Ludy87 commented Apr 27, 2024

I don't know of any application where two containers should run one and the same application and use the same file directory. What's the point of that? Could you explain that?

The reason why the database error occurs is that the database was opened by one instance, so the other can no longer open it.

@carenswijaya01
Copy link
Author

In docker service, there is "scale" option, it just like built-in load balancer from docker, that create multi container with same network, image, and volume. For now, 1 replica should be enough, but i dont know in the future, will i need to scale it or not.

@Frooodle
Copy link
Member

Currently we don't support this feature
We would need to migrate to dedicated database connection instead of our existing one within the same docker

@carenswijaya01
Copy link
Author

So will it be a new feature on future?

And what if i need to scale in near? Should i create another service with different volume too?

@Frooodle
Copy link
Member

Not planned for now
And yes different volume

@carenswijaya01
Copy link
Author

Oh okay then, thanks for your answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants