Milvus Connection Error in GCP Cloud Function - google-cloud-functions

I have created a GCP cloud function (gen 1) in python, which connects to a Milvus deployment deployed on the same GCP project where the cloud function is created.
When connecting to the Milvus deployment from my local PC through telepresence I have no issues, but there seems to be a connection error when the cloud function is triggered and runs the same code.
connections.connect(alias="default", host='10.127.255.140', port='19530')
Specifically, when the above line is executed, it should connect to the Milvus server at the internal IP above. But the following timeout error occurs.
pymilvus.exceptions.MilvusException: <MilvusException: (code=2, message=Fail connecting to server on 10.127.255.140:19530. Timeout)
Has anyone had similar problems with Milvus and GCP cloud functions? I would much appreciate it if someone could help me out. Thank you!
P.S. Also it is the first time uploading a question here, so please let me know if you need more info about my situation. Thanks again!

Related

jdbc connection errors from Google Script

Anyone out there who could help me? I have been bashed over two straight days by failed connection requests from an Google Apps Script to a mysql db hosted on Dreamhost. Have had extensive support from Dreamhost but no solution. Have concluded the failure to connect is the same issue confronted by many in existing threads.
All I want to do is collect internal business data in Google sheets and load into a tables in my cloud sql db. Problems could be attributable to either a bug or an IAM permissions issue. My account is owner of the GSuite orgaqnization, and I also granted it explicit role for Cloud SQL Client. In connection requests, I've tried using both host URL and the host IP to connect. Neither worked and I am frustrated. Any ideas?
var conn = Jdbc.getConnection('jdbc:mysql://mysql.url.com:3306/db_name','user','password')
Thanks in advance for any help or recommendations. CW

MySQL Connection error Google Cloud

I deploy a node + sql application I made testes running the node app in my laptop using mysql database provided by google and the application was working fine (I needed to allow my ip address to connect) but when I deployed the application I started to receive timeout errors in my app. I solved the problem allowing any ip address to connect in my google cloud mysql instance but I not happy with this solution. Anybody can help to allow just the production node app server ip?
Thanks in advance.
If you want your API key to only be accessed from a certain IP, you can restrict it in the Developers Console.

Can't start google cloud instances

i tried starting my VM instances. i get a notification "Starting VM instance failed. Error: The instance cannot be started because Compute Engine has detected suspicious activity. Please consult the Project dashboard in Cloud Console for more information.". Anyone can help me resolve this problem? Thanks everyone!!!

Azure App Service - Outbound IPs Changed?

I have a site running on an Azure App Service. It connects to a MySQL DB on Google CloudSQL.
All of a sudden I am getting an error when I hit a page on my site. The error is:
Configuration Error - Reading from the stream has failed.
I know this is related to MySQL and an attempt to read from the DB.
The DB itself is fine - minimal connections, no stress.
The site runs fine from my local VS connecting to said database.
This makes me think I have hit some kind of 'outbound' connection limit on Azure. Can anyone confirm?
The Azure site is up and running but as soon as it tries to connect to the DB it falls over.
Thanks for any help you can give!
Update - IP Changed??
It appears that the App Service outbound IP addresses changed at some point yesterday so our external MySQL DB started blocking the connection attempts. Has anyone experienced this? Every single outbound IP changed. Nothing has been changed on the setup of the app (no scaling etc)

How to connect to google cloud sql instance from eclipse using App Engine?

I am trying to connect to google cloud sql instance from eclipse in my app engine connected android project.
So far i am able to connect to cloud sql instance using Class.forname("com.mysql.jdbc.Driver"). But it requires authorising my ip address in google cloud sql every time i want to use the instance hence making it unfeasible.
I know that while connecting from app engine i dont need to authorize my ip address. Bur for that i have to use GoogleDriver ie. Class.forname("com.mysql.jdbc.GoogleDriver").
But when i run my code it gives me ClassNotFoundException.
I am stuck at this situation for a long time. Please give me a proper solution to the problem
The GoogleDriver is only intended to be used when actually running on App Engine. When running from eclipse or the dev_appserver you will have to use the stock com.mysql.jdbc.Driver class, and you will have to authorize your IP address. A good example of this is shown in the documentation, which demonstrates how to choose in code which driver to use. Note the commented out line for connecting from your dev environment to Cloud SQL.
As an FYI don't forget to enable the connector for running on App Engine.
I have authorised 0.0.0.0/0 in access control in my cloud instance and now all the devices are able to connect to the cloud instance with stock mysql driver ie. com.mysql.jdbc.Driver without need to changing authorised network again and again in access control.
Still can't figure out to implement GoogleDriver but for now this solution will work.
If anyone find a more better and general way to connect to cloud instance please post your answer.