Running Nagios Log Server with 1 instance

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Running Nagios Log Server with 1 instance

Post by bennyboy »

Hi,

I need to understand the impact of running only 1 instance.

For the moment the cluster has the yellow status.

curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'
{
"cluster_name" : "346c080f-96a6-4bf3-aab7-337cd0e3b771",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 1216,
"active_shards" : 1216,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 1216,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}

We plan to buy another instance next year. Do you have some advice for me?
As an example if we store 200G of data in 1 year and we want to add a new instance. What happening in that case.

Thank you!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Running Nagios Log Server with 1 instance

Post by rkennedy »

The machine is in a yellow state due to in being a single node. By default, NLS creates two copies of your indices, which are divided into shards. NLS aims to have two copies of each shard at all times.

Once you add the second member in, the cluster state would become green, because two copies of the data will now exist, and elasticsearch is happy. In your case, when you add the second machine in, the data will be replicated over to the new machine.
Former Nagios Employee
bennyboy
Posts: 157
Joined: Thu Oct 29, 2015 9:42 am

Re: Running Nagios Log Server with 1 instance

Post by bennyboy »

Do you have advice or best pratice when we have only 1 instance.

I have 1221 unassigned replica. I have to delete / close or something else ?

logstash-2016.04.21 1 r UNASSIGNED
logstash-2016.04.21 2 r UNASSIGNED
logstash-2016.04.22 2 r UNASSIGNED
logstash-2016.04.22 0 r UNASSIGNED
logstash-2016.04.22 3 r UNASSIGNED
logstash-2016.04.22 1 r UNASSIGNED
logstash-2016.04.22 4 r UNASSIGNED

It's not a problem to have a lot of unassigned replica in 1 year ?

Thank you!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Running Nagios Log Server with 1 instance

Post by mcapra »

bennyboy wrote:It's not a problem to have a lot of unassigned replica in 1 year ?
Correct. Our default configuration for the indices tries to allocate 1 replica shard per index. If there are no additional nodes to assign a replica shard to, they just sit there until there is a node that they can be assigned to. Having unassigned shards in general doesn't consume any (meaningful) additional resources.
Former Nagios employee
https://www.mcapra.com/
Locked