smartcat-labs / cassandra-diagnostics

Cassandra Node Diagnostics Tools
Apache License 2.0
51 stars 6 forks source link

Cache reading of hostname #136

Closed nbozic-zz closed 7 years ago

nbozic-zz commented 8 years ago

I have changed value in /etc/hosts and change was immediately visible. We want to cache this out and use cached hostname instead of reading it on every single measurement.

Or figure out how to use hostname opposed to InetAddress.getLocalHost().getHostName() which is doing reverse lookup by IP in /etc/hosts and picks up first value.

mgobec commented 8 years ago

There is also hostname inconsistency across modules. All modules need to use the same hostname and it should be a tagged field.

mgobec commented 7 years ago

Follow the conversation from #139