Coder Social home page Coder Social logo

Replica connection about fluent-plugin-mongo HOT 5 CLOSED

megamk avatar megamk commented on August 25, 2024
Replica connection

from fluent-plugin-mongo.

Comments (5)

repeatedly avatar repeatedly commented on August 25, 2024

It's clear from the source that nodes param was replaced by replica_set parameter and relies on host and port params inherited from out_mongo but it is not clear from the documentation.

Ah, README is outdated.
We migrated old ruby driver into new one recently and we forgot to update its parameters.

a host/port values if I have more than 1 replica member

One idea is re-add nodes parameter to out_mongo_replset.

from fluent-plugin-mongo.

megamk avatar megamk commented on August 25, 2024

One idea is re-add nodes parameter to out_mongo_replset.

Another good alternative is to add a connection_string parameter so that connection type will be set up just with one parameter, since connection string supports both single host and replica with any number of nodes

from fluent-plugin-mongo.

megamk avatar megamk commented on August 25, 2024

@repeatedly I have some changes in my fork, do I need to make tests or you accept PRs without tests?
megamk@a8971d6

from fluent-plugin-mongo.

repeatedly avatar repeatedly commented on August 25, 2024

you accept PRs without tests?

This is hard because we can't guarantee your change breaks existing behaviour.
Please add test and send a PR.
Your patch is tested on travis-ci with actual mongodb.

from fluent-plugin-mongo.

repeatedly avatar repeatedly commented on August 25, 2024

Release v0.8.1 with connection_string. Thanks for the idea!

from fluent-plugin-mongo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.