I’d like to know if someone tried to setup tyk with a Azure Cosmos DB service instead of MongoDB.
I need to install it on Azure but they don’t have a MongoDB managed service, but they have that Cosmos DB service responding to MongoDB api, so… I need your help to know if it works
Sounds like a really interesting option, do post any questions/progress here. I’m sure the Tyk engineering team will be able to provide some answers to help get this moving!
Well, finally I tried, and it doesn’t work.
Boot sequence of tyk is looping over :
– Unit tyk-dashboard.service has finished starting up.
– >
– The start-up result is RESULT.
août 16 10:32:28 beaver tyk-analytics[6218]: time=“Aug 16 10:32:28” level=info msg=“Using /opt/tyk-dashboard/tyk_analytics.conf for configuration”
août 16 10:32:28 beaver tyk-analytics[6218]: time=“Aug 16 10:32:28” level=info msg=“connecting to MongoDB: [tfex-cosmos-db-70176.documents.azure.com:10255]”
août 16 10:32:39 beaver tyk-analytics[6218]: time=“Aug 16 10:32:39” level=fatal msg=“Couldn’t establish a connection with Mongo: no reachable servers”
août 16 10:32:39 beaver systemd[1]: tyk-dashboard.service: Main process exited, code=exited, status=1/FAILURE
août 16 10:32:39 beaver systemd[1]: tyk-dashboard.service: Failed with result ‘exit-code’.
août 16 10:32:39 beaver systemd[1]: tyk-dashboard.service: Service hold-off time over, scheduling restart.
août 16 10:32:39 beaver systemd[1]: tyk-dashboard.service: Scheduled restart job, restart counter is at 45.
– Subject: Automatic restarting of a unit has been scheduled
– Defined-By: systemd
– Support: Enterprise open source support | Ubuntu
–
– Automatic restarting of the unit tyk-dashboard.service has been scheduled, as the result for
– the configured Restart= setting for the unit.
août 16 10:32:39 beaver systemd[1]: Stopped Tyk API Dashboard.
– Subject: Unit tyk-dashboard.service has finished shutting down
– Defined-By: systemd
– Support: Enterprise open source support | Ubuntu
–
– Unit tyk-dashboard.service has finished shutting down.
août 16 10:32:39 beaver systemd[1]: Started Tyk API Dashboard.
– Subject: Unit tyk-dashboard.service has finished start-up
– Defined-By: systemd
– Support: Enterprise open source support | Ubuntu
–
But I successfully logged on the cosmosDB with mongo shell client.
Please Tyk, fix it I don’t want to manage a mongodb cluster by myself
Would you be able to post an overview of how you have found using Tyk API Management with Cosmos DB on Azure? It would be of interest to lots of users.