Let's say I have two server droplets in digitalocean, but I only want to use the mongodb of the 1st server. How can I connect the 2nd server to the 1st server's mongodb?
What would be the mongourl that i should set on the 2nd server upon deployment?
Thanks in advance!
MONGO_URL=mongodb://12.34.56.78:27017/db_name
Where 12.34.56.78:27017 is the MongoDB droplet's IP and port, and db_name is a custom database name ("meteor" by default).
Related
My plan is to migrate from SQL Server to Postgresql, hosted on AWS. My Postgresql DB is in a VPC and the security group attached to it has the following inbound rules:
The first one is for my EC2 instance (where my server-side application is running) to connect to the DB, and the second one is the home IP address so that I can connect to it via pgAdmin.
This is what I get (I don't know what to fill in at 'Maintenance database', so I left it at postgres.
What am I missing? I need help with this.
I have noticed that for some combinations of VPN, local router, etc. the IP address the security group filled in for 'my IP' was not the one that RDS recognized as trying to connect. I found that curl --silent ifconfig.me returns the IP address that works the best for the security group.
Can I install Sphinx and Mysql in different servers and integrate with one another.
What I have to enter in sphinx.conf file.
No reason they need to be on the same server
Can just specify the hostname(or IP address) of the MySQL server in the sphinx source config
http://sphinxsearch.com/docs/current.html#conf-sql-host
Of course the USER in MySQL will need to allow connections from the sphinx server.
I've removed localhost in network connections from a MongoDB Atlas project.
Now my mongo shell can't connect to the MongoDB collection. Other than adding localhost back to network connections, is there any other way to connect to a MongoDB collection? I'd like to poke around the production database sometimes from the CLI, is this possible?
You can use VPC peering to connect.
I've been trying to follow these instructions https://onlinehelp.tableau.com/current/pro/desktop/en-us/examples_mongodb.html#make_cx
to get the tableau desktop to connect to my mongo db server. looking at the data source example in the link above they only have 1 server listed where I have a replica set, which I think might be an issue.
i was wondering if anyone has an example connecting tableau to mongo where mongo is on a replica set?
It should work. When you setup the Mongo BI Connector, you can specify a standard Mongo URI connection string with multiple replicas. However, when connecting from Tableau, you specify the hostname of the server where the Mongo BI Connector service is running. It will use the uri connection string you defined.
See: https://docs.mongodb.com/bi-connector/master/reference/mongosqld/#cmdoption-mongosqld-mongo-uri
I have a expressjs applications deployed on EC2 VMs and use a Mongo DB in separate VM, and I am trying to find which VMs currently have open connections to the Mongo DB.
Is there away (or interface) to list the IP addresses of the currently opened MongoDB Connections ?
Thanks!
According to https://jira.mongodb.org/browse/SERVER-5085 the one method is:
db.currentOp(true)