lib/elasticsearch/extensions/test/cluster.rb in elasticsearch-extensions-0.0.15 vs lib/elasticsearch/extensions/test/cluster.rb in elasticsearch-extensions-0.0.16

- old
+ new

@@ -74,11 +74,11 @@ arguments[:index_store] ||= 'memory' arguments[:path_data] ||= ENV['TEST_CLUSTER_DATA'] || '/tmp' arguments[:es_params] ||= ENV['TEST_CLUSTER_PARAMS'] || '' arguments[:path_work] ||= '/tmp' arguments[:node_name] ||= 'node' - arguments[:timeout] ||= 30 + arguments[:timeout] ||= (ENV['TEST_CLUSTER_TIMEOUT'] || 30).to_i if running? :on => arguments[:port], :as => arguments[:cluster_name] print "[!] Elasticsearch cluster already running".ansi(:red) wait_for_green(arguments[:port], arguments[:timeout]) return false @@ -100,14 +100,16 @@ -D es.http.port=#{arguments[:port].to_i + (n-1)} \ -D es.gateway.type=#{arguments[:gateway_type]} \ -D es.index.store.type=#{arguments[:index_store]} \ -D es.path.data=#{arguments[:path_data]} \ -D es.path.work=#{arguments[:path_work]} \ + -D es.cluster.routing.allocation.disk.threshold_enabled=false \ -D es.network.host=0.0.0.0 \ -D es.discovery.zen.ping.multicast.enabled=true \ -D es.script.disable_dynamic=false \ -D es.node.test=true \ -D es.node.bench=true \ + -D es.logger.level=DEBUG \ #{arguments[:es_params]} \ > /dev/null COMMAND Process.detach pid pids << pid