cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject git commit: updated refs/heads/master to 43d20e6
Date Tue, 12 May 2015 11:48:26 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master ab1df169f -> 43d20e67f


graphite: Do not cache DNS names for Graphite host


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/43d20e67
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/43d20e67
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/43d20e67

Branch: refs/heads/master
Commit: 43d20e67f821b04d46a0b6cb8fc70fd761958579
Parents: ab1df16
Author: Wido den Hollander <wido@widodh.nl>
Authored: Tue May 12 13:47:59 2015 +0200
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Tue May 12 13:47:59 2015 +0200

----------------------------------------------------------------------
 utils/src/org/apache/cloudstack/utils/graphite/GraphiteClient.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/43d20e67/utils/src/org/apache/cloudstack/utils/graphite/GraphiteClient.java
----------------------------------------------------------------------
diff --git a/utils/src/org/apache/cloudstack/utils/graphite/GraphiteClient.java b/utils/src/org/apache/cloudstack/utils/graphite/GraphiteClient.java
index 3338ccf..4143f09 100644
--- a/utils/src/org/apache/cloudstack/utils/graphite/GraphiteClient.java
+++ b/utils/src/org/apache/cloudstack/utils/graphite/GraphiteClient.java
@@ -79,6 +79,7 @@ public class GraphiteClient {
      */
     public void sendMetrics(Map<String, Integer> metrics, long timeStamp) {
         try (DatagramSocket sock = new DatagramSocket()){
+            java.security.Security.setProperty("networkaddress.cache.ttl", "0");
             InetAddress addr = InetAddress.getByName(this.graphiteHost);
 
             for (Map.Entry<String, Integer> metric: metrics.entrySet()) {


Mime
View raw message