Hi! Is it possible to run flows on different serve...
# ask-community
d
Hi! Is it possible to run flows on different servers without kubernetes or aws cluster?
k
You can have different LocalAgents on different machines and then use labels to direct the Flows to each machine
v
^
d
@Kevin Kho How do I provide prefect server address to agents on different machines?
k
Through the
config.toml
to set the API endpoint to hit. You can find an example in the bottom of this tutorial
d
thanks!
@Kevin Kho I get this error, when trying to set the api with the --api argument at prefect agent start:
Copy code
Traceback (most recent call last):
 File "/home/d.ponizov/venv/lib64/python3.6/site-packages/prefect/agent/agent.py", line 901, in _setup_api_connection
  self._verify_token(self.client.get_auth_token())
 File "/home/d.ponizov/venv/lib64/python3.6/site-packages/prefect/agent/agent.py", line 831, in _verify_token
  raise AuthorizationError("No agent API token provided.")
prefect.exceptions.AuthorizationError: No agent API token provided.
k
Try doing
prefect backend server
. Server should have no auth