Skip to content

Commit

Permalink
Set es.set.netty.runtime.available.processors to false
Browse files Browse the repository at this point in the history
  • Loading branch information
takezoe committed Sep 19, 2017
1 parent 618ebf0 commit 45d76e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ public static class Book {

@BeforeClass
public static void setup() throws IOException {
System.setProperty("es.set.netty.runtime.available.processors", "false");
runner = new ElasticsearchClusterRunner();
runner.build(ElasticsearchClusterRunner.newConfigs().baseHttpPort(9210).baseTransportPort(9310).numOfNode(1));
runner.build(ElasticsearchClusterRunner.newConfigs()
.baseHttpPort(9210)
.baseTransportPort(9310)
.numOfNode(1));
runner.ensureYellow();

//#init-client
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ class ElasticsearchSpec extends WordSpec with Matchers with BeforeAndAfterAll {
//#define-class

override def beforeAll() = {
runner.build(ElasticsearchClusterRunner.newConfigs().baseHttpPort(9200).baseTransportPort(9300).numOfNode(1))
System.setProperty("es.set.netty.runtime.available.processors", "false")
runner.build(
ElasticsearchClusterRunner
.newConfigs()
.baseHttpPort(9200)
.baseTransportPort(9300)
.numOfNode(1)
)
runner.ensureYellow()

register("source", "Akka in Action")
Expand Down

0 comments on commit 45d76e0

Please sign in to comment.