Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iotagent-ul not reconnecting mongodb #206

Open
hungtv31 opened this issue Apr 8, 2017 · 1 comment
Open

Iotagent-ul not reconnecting mongodb #206

hungtv31 opened this issue Apr 8, 2017 · 1 comment

Comments

@hungtv31
Copy link

hungtv31 commented Apr 8, 2017

Hi everybody

When the DB server shuts down, then it is turned on.
However, Iotagent-ul does not reconnect itself.

@AlvaroVega
Copy link
Member

What mongodb options are in your config.js?
Did you tried with something like:

  mongodb: {
        host: '127.0.0.1',
        port: 27017,
        db: 'iotagent-ul',
        replicaSet: '',
        retries: 5,
        retryTime: 5
    },

Retires and retryTime are important to achieve that.

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

No branches or pull requests

2 participants