Even when i use 3 node i still have the same error 

> rs.initiate({_id: "gray",members: [{ _id: 0, host : " 
Graylog2.localdomain:27017" },{ _id: 1, host : " 
Graylog1.localdomain:27017" },{ _id: 2, host : " 
Graylog3.localdomain:27017" }]})
{
        "ok" : 0,
        "errmsg" : "No host described in new configuration 1 for replica 
set gray maps to this node",
        "code" : 93
}


Le lundi 8 août 2016 13:50:08 UTC+2, Marcus Franke a écrit :
>
>
>
> Am Montag, 8. August 2016 11:12:03 UTC+2 schrieb sangh:
>>
>> For those who install a bigger setup for Graylog
>> i have two server and i want to deploy a replicaset for each graylog 
>> server. how ever i keep getting this error :
>>
>> rs.initiate({_id: "gray",members: [{ _id: 0, host : " 
>> Graylog2.localdomain:27017" },{ _id: 1, host : " 
>> Graylog1.localdomain:27017" }]})
>> {
>>         "ok" : 0,
>>         "errmsg" : "No host described in new configuration 1 for replica 
>> set gray maps to this node",
>>         "code" : 93
>>
>> Anyone knows how to fix this ?? 
>>
>
> Do you have three nodes for the replica set?
>
> I guess your members in the above example are the two other nodes? You 
> have to put all three nodes in the config block.
>
> rs.initiate(
>   {
>     _id: "graylog"
>     version: 1,
>     members: [
>       { _id: 0: host: "localhost:27017" }
>       { _id: 1, host: "graylog1.example.com:27017" },
>       { _id: 2, host: "graylog2.example.com:27017" }
>     ]
>   }
> )
>
> The error message, as I understand it, is pointing out, that you are 
> trying to initialse a replicaset on "localhost" and
> you're trying to add the two others into the replSet. This won't work, the 
> machine you're connected to in the shell
> must be part of the members.
>
> Have a look at the mongodb docs:
> https://docs.mongodb.com/manual/reference/method/rs.initiate/#example
>
> The config block above is taken from that page.
>
>
> Regards,
> Marcus
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to graylog2+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/65fc2f82-f354-4e40-b1c9-0bd424dfc354%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to