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

Allowed to start process with any name #766

Open
DifferentialOrange opened this issue Apr 24, 2023 · 1 comment
Open

Allowed to start process with any name #766

DifferentialOrange opened this issue Apr 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@DifferentialOrange
Copy link
Contributor

cartridge allows to start a process with any name disregarding instances.yml contents:

cat ./instances.yml
---
myapp.router:
  advertise_uri: localhost:3301
  http_port: 8081

myapp.s1-master:
  advertise_uri: localhost:3302
  http_port: 8082

myapp.s1-replica:
  advertise_uri: localhost:3303
  http_port: 8083

myapp.s2-master:
  advertise_uri: localhost:3304
  http_port: 8084

myapp.s2-replica:
  advertise_uri: localhost:3305
  http_port: 8085

myapp-stateboard:
  listen: localhost:4401
  password: passwd
cartridge start not_exist -d
   • myapp.not_exist... OK
cartridge start not_exist_2 -d
   • myapp.not_exist_2... OK
cartridge start not_exist_3 -d
   • myapp.not_exist_3... OK
cartridge start not_exist -d
   • myapp.not_exist... SKIPPED
   ⨯ myapp.not_exist: Process is already running
   ⨯ Failed to start some instances
cartridge stop not_exist
   • myapp.not_exist... OK
cartridge stop not_exist2
   • myapp.not_exist2... SKIPPED
   • myapp.not_exist2: Process is not running
cartridge stop not_exist_2
   • myapp.not_exist_2... OK
cartridge stop not_exist_3
   • myapp.not_exist_3... OK

Sometimes you also may catch Socket bind error: Address already in use.

@DifferentialOrange
Copy link
Contributor Author

We need to be careful with this one since someone may rely on this behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants