Hi! Is it possible to run flows on different servers without kubernetes or aws cluster?
k
Kevin Kho
12/06/2021, 4:49 PM
You can have different LocalAgents on different machines and then use labels to direct the Flows to each machine
v
Vishnu
12/06/2021, 4:51 PM
^
d
Daniil Ponizov
12/06/2021, 4:51 PM
@Kevin Kho How do I provide prefect server address to agents on different machines?
k
Kevin Kho
12/06/2021, 4:52 PM
Through the
config.toml
to set the API endpoint to hit. You can find an example in the bottom of this tutorial
d
Daniil Ponizov
12/06/2021, 4:52 PM
thanks!
Daniil Ponizov
12/10/2021, 12:54 PM
@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.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.