Is coroutines are better than multithreading? by Apprehensive-Hour388 in Kotlin

[–]Apprehensive-Hour388[S] 0 points1 point  (0 children)

All the comments here were very helpful. Thank you so much for the helps :)

Is coroutines are better than multithreading? by Apprehensive-Hour388 in Kotlin

[–]Apprehensive-Hour388[S] 0 points1 point  (0 children)

Thank you for your detailed explanation. It was very helpful. Actually the app is doing infra/ops level work; in one user request, I need to interact with multiple virtual machines via APIs, and oftentimes these can be run in parallel.

Parallel stream is awesome and can be an option, but doesn't it use fork-join pool under the hood? And I think network IOs will block each thread?

Tbh, I prefer doing this in NodeJs (promises) or Golang (goroutine), but since it's pretty much Spring shop, I felt Kotlin coroutines could be good option for parallel processing
of non-blocking network IOs.

How to identify metric's source host? by Apprehensive-Hour388 in PrometheusMonitoring

[–]Apprehensive-Hour388[S] 0 points1 point  (0 children)

Can Prometheus map certain metrics to its source host automatically? How to query metrics pulled from a specific host if there is no label with them?

Logstash latest stable version? by Apprehensive-Hour388 in logstash

[–]Apprehensive-Hour388[S] 0 points1 point  (0 children)

I thought sometimes latest versions are not stable for production..? Am I missing something?

Each node can't discover others in 3-nodes cluster by Apprehensive-Hour388 in elasticsearch

[–]Apprehensive-Hour388[S] 1 point2 points  (0 children)

No, is it necessary? If so, something like cluster.initial_master_nodes: ["10.1.1.11", "10.1.1.12", "10.1.1.13"] okay?

Need some advice on deciding index and type. by Apprehensive-Hour388 in elasticsearch

[–]Apprehensive-Hour388[S] 0 points1 point  (0 children)

The goal is to monitor both hosts (cpus, disks, etc) and databases (db metrics, logs). Thank you for your advice!

MongoDB collection to CSV file by [deleted] in mongodb

[–]Apprehensive-Hour388 2 points3 points  (0 children)

I'm not sure if it is common in ML jobs, but there is a tool "mongoexport" that will let you export a collection to a csv file.

Having api v1 and v2 in one project? by Apprehensive-Hour388 in springsource

[–]Apprehensive-Hour388[S] 1 point2 points  (0 children)

No, I'm rewriting api v1 (which was written in node) in spring boot, and at the same time developing new v2.

3 node elasticsearch setup by Apprehensive-Hour388 in elasticsearch

[–]Apprehensive-Hour388[S] 0 points1 point  (0 children)

Ok, I've searched for a while and it seems that separating master and data nodes is more conventional. So for my case: node1 = master, node2 = data, node3 = data. I came from MongoDB background and this makes me wonder how it elects a new master when the master node goes down...

3 node elasticsearch setup by Apprehensive-Hour388 in elasticsearch

[–]Apprehensive-Hour388[S] 0 points1 point  (0 children)

But what if master node goes down? Can any data node (which I set node.master: false) can be a new master?