I have a captcha solver api that I run, I wanna be able to put the actual solver on…
Private research annotation
Sign in to add a private research label or note.
- User
I have a captcha solver api that I run, I wanna be able to put the actual solver on multiple servers and distribute the workload when needed, for example I could compile a binary that I could just run on my personal computer whenever theres downtime on the main servers or I just need more speed, I'd run the binary and it just connect to the server, the server sends it the captchas as it gets them and then the server gets sent the answer.
- Assistant
To distribute the workload of your captcha solver API across multiple servers, you can follow a client-server architecture. Here's a high-level overview of the steps involved:
-
Set up a dedicated server: You will have a primary server that receives captcha requests and manages the overall workload distribution. This server will act as a central coordinator.
-
Develop a client application: Create a client application (binary) that can be run on multiple servers, including your personal computer. This client will connect to the primary server and request captchas to solve.
-
- User
One thing though, lets say I am running this on two computers, one has 4 cpu cores, but 4 3090 ti gpus, and annother server with 12 cpu cores and no gpu, it would obviously be faster to run it mainly on the 4 gpu system, so how would I mwke sure they all get a workload based on their power?
- Assistant
To distribute the workload based on the computing power of each server, you can implement a load balancing strategy that takes into account the available resources on each machine. Here's a possible approach:
-
Implement server registration: Have each server register itself with the primary server, providing information about its hardware specifications, such as the number of CPU cores and available GPUs. This registration process should happen when the server starts up or as part of the setup.
-