add debug logging for parameters used for ec2 unicast disco
This commit is contained in:
parent
429335adf3
commit
ac1240b407
|
@ -29,7 +29,11 @@
|
||||||
<option name="myDefaultNotNull" value="org.jetbrains.annotations.NotNull" />
|
<option name="myDefaultNotNull" value="org.jetbrains.annotations.NotNull" />
|
||||||
<option name="myNullables">
|
<option name="myNullables">
|
||||||
<value>
|
<value>
|
||||||
<list size="0" />
|
<list size="3">
|
||||||
|
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
|
||||||
|
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
|
||||||
|
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
|
||||||
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
<option name="myNotNulls">
|
<option name="myNotNulls">
|
||||||
|
|
|
@ -20,7 +20,12 @@
|
||||||
package org.elasticsearch.discovery.ec2;
|
package org.elasticsearch.discovery.ec2;
|
||||||
|
|
||||||
import com.amazonaws.services.ec2.AmazonEC2;
|
import com.amazonaws.services.ec2.AmazonEC2;
|
||||||
import com.amazonaws.services.ec2.model.*;
|
import com.amazonaws.services.ec2.model.DescribeInstancesRequest;
|
||||||
|
import com.amazonaws.services.ec2.model.DescribeInstancesResult;
|
||||||
|
import com.amazonaws.services.ec2.model.Instance;
|
||||||
|
import com.amazonaws.services.ec2.model.InstanceState;
|
||||||
|
import com.amazonaws.services.ec2.model.Reservation;
|
||||||
|
import com.amazonaws.services.ec2.model.Tag;
|
||||||
import org.elasticsearch.cluster.node.DiscoveryNode;
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.Strings;
|
import org.elasticsearch.common.Strings;
|
||||||
import org.elasticsearch.common.collect.ImmutableMap;
|
import org.elasticsearch.common.collect.ImmutableMap;
|
||||||
|
@ -83,6 +88,10 @@ public class AwsEc2UnicastHostsProvider extends AbstractComponent implements Uni
|
||||||
availabilityZones.addAll(Strings.commaDelimitedListToSet(componentSettings.get("availability_zones")));
|
availabilityZones.addAll(Strings.commaDelimitedListToSet(componentSettings.get("availability_zones")));
|
||||||
}
|
}
|
||||||
this.availabilityZones = ImmutableSet.copyOf(availabilityZones);
|
this.availabilityZones = ImmutableSet.copyOf(availabilityZones);
|
||||||
|
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("using host_type [{}], tags [{}], groups [{}] with any_group [{}], availability_zones [{}]", hostType, tags, groups, bindAnyGroup, availabilityZones);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public List<DiscoveryNode> buildDynamicNodes() {
|
@Override public List<DiscoveryNode> buildDynamicNodes() {
|
||||||
|
|
Loading…
Reference in New Issue