Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

MOPED: Could not resolve IP for: <address> #354

Open
steve-rodriguez opened this issue Feb 25, 2015 · 5 comments
Open

MOPED: Could not resolve IP for: <address> #354

steve-rodriguez opened this issue Feb 25, 2015 · 5 comments

Comments

@steve-rodriguez
Copy link

This issue is happening periodically. Any settings/configuration changes that can resolve this or is this a true issue? Looks like network latency or something like that to me, wondering if there are any Mongoid.yml tweeks that can help alleviate this issue:

2015-02-25T09:23:20-07:00 MOPED: Could not resolve IP for: prod-cms-db2:33478 runtime: n/a
2015-02-25T09:26:37-07:00 MOPED: Could not resolve IP for: prod-cms-db1:33478 runtime: n/a
2015-02-25T10:18:03-07:00 MOPED: Could not resolve IP for: prod-cms-db3:33478 runtime: n/a
2015-02-25T10:44:38-07:00 MOPED: Could not resolve IP for: prod-cms-db3:33478 runtime: n/a
2015-02-25T11:09:02-07:00 MOPED: Could not resolve IP for: prod-cms-db2:33478 runtime: n/a

My mongoid.yml for production looks like this:

production:
sessions:
default:
database: edist
hosts:
['qa2-web-db1:33478', 'qa2-web-db2:33478', 'qa2-web-db3:33478']
options:
pool_size: 200
timeout: 20
retry_interval: 1
timeout: 15
max_retries: 20
refresh_interval: 10

secondary:
  database: fund
  hosts:
    ['qa2-cms-db1:33478', 'qa2-cms-db2:33478', 'qa2-cms-db3:33478']
  options:
    pool_size: 200
    timeout: 20
    retry_interval: 1
    timeout: 15
    max_retries: 20
    refresh_interval: 10
@jstejada
Copy link

👍

I am having the same issue, it is happening almost always and it slows down some of my queries considerably.

mi config is as follows:

  sessions:
    default:
      uri: <%= ENV['MONGO_URI_STAGING'] %>
      options:
        pool_size: 50
        pool_timeout: 15
        retry_interval: 1
        timeout: 60
        max_retries: 20
        refresh_interval: 30

@durran any ideas what might be causing this?

@brendanstennett
Copy link

+1

@matthewford
Copy link

Also seeing this, moved to a replset if that makes a difference

@billym
Copy link

billym commented Jan 5, 2016

anyone get this working/fixed? Did replset fix it?

@matthewford
Copy link

I actually ended up switching to the mongodb fork of mongoid, and using the office mongo ruby driver not moped - seems to be better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants