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

[BUG][Azure] Sometime the deployment create more proxies than needed #241

Open
jmaitrehenry opened this issue Jun 21, 2024 · 3 comments
Open
Labels

Comments

@jmaitrehenry
Copy link
Contributor

Current Behavior

Sometime, scrapoxy create more proxy than the maximum allowed and the request could be block by a quota limit:

Error: Subscription 2edf240e-097e-4b04-a0a8-0a3c76592cdc has a quota of 20 for resources of type PublicIpAddress with sku Basic. Subscription currently has 20 resources and the template contains 1 new resources of the this type which exceeds the quota. Please contact support to increase the quota for resource type PublicIpAddress
    at /app/scrapoxy.js:2:415409

Actually, we have a max of 18 proxies in the region and we have a quota of 20 of them.

Expected Behavior

Scrapoxy do not over provision proxies or have an option for that where we can control how much over provisionning we allow.

Steps to Reproduce

  1. Don't know, it happen when scrapoxy recycle proxies or when we delete more than one proxy

Failure Logs

Error: Subscription 2edf240e-097e-4b04-a0a8-0a3c76592cdc has a quota of 20 for resources of type PublicIpAddress with sku Basic. Subscription currently has 20 resources and the template contains 1 new resources of the this type which exceeds the quota. Please contact support to increase the quota for resource type PublicIpAddress
    at /app/scrapoxy.js:2:415409


### Scrapoxy Version

4.9

### Custom Version

- [ ] No
- [X] Yes

### Deployment

- [X] Docker
- [ ] Docker Compose
- [ ] Kubernetes
- [ ] NPM
- [ ] Other (Specify in Additional Information)

### Operating System

- [X] Linux
- [ ] Windows
- [ ] macOS
- [ ] Other (Specify in Additional Information)

### Storage

- [X] File (default)
- [ ] MongoDB & RabbitMQ
- [ ] Other (Specify in Additional Information)

### Additional Information

Low issue as it a temporary issue.
@fabienvauchelles
Copy link
Owner

Does it happen when:

  1. You have a quota for 20 instances
  2. You are using 20 instances
  3. You ask Scrapoxy to remove more than 2 instances

?

Let me try. I think Scrapoxy will try to have temporary 18 (running) + 2 (deleting) + 2 (creating) = 22 instances

@jmaitrehenry
Copy link
Contributor Author

In my case, I have 18 instance with a quota of 20 but yes, it's exactly the case you expose, scrapoxy create more instance without waiting the old instances are down and deleted.

@fabienvauchelles
Copy link
Owner

I think the issue is solved. Can I close it @jmaitrehenry ?

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

No branches or pull requests

2 participants