2016-10-14 3 views
2

저는 Vertex를 처음 사용합니다.vert.x에서 verticle을 실행하는 가장 좋은 방법은 무엇입니까?

HTTP 요청과 다른 4 개의 verticle을 받아들이는 데 중요한 역할을합니다.

조언 나를 verticle 실행하는 것이 좋습니다. verticle 실행

vertx run com.xxx.MainVerticle -cluster 
vertx run com.xxx.OtherVericle2 -cluster 
vertx run com.xxx.OtherVericle3 -cluster 
vertx run com.xxx.OtherVericle4 -cluster 
vertx run com.xxx.OtherVericle5 -cluster 

command vertx run com.xxx.MainVerticle and 
vertx.deployVerticle("OtherVericle1") in MainVerticle. 
vertx.deployVerticle("OtherVericle2") in MainVerticle. 
vertx.deployVerticle("OtherVericle3") in MainVerticle. 
vertx.deployVerticle("OtherVericle4") in MainVerticle. 

어느 가장 좋은 방법은?

답변

2

첫 번째 양식은 클러스터 된 Vert.x 인스턴스가있는 5 개의 JVM 프로세스를 작성합니다.

두 번째 형식은 클러스터되지 않은 Vert.x 인스턴스가있는 JVM 프로세스를 하나만 만듭니다.

그것은 더 세부 사항없이 귀하의 질문에 대답하기는 어렵습니다하지만 당신은

+0

High Availability and Fail-Over가 감사해야 할 경우 일반적으로는 클러스터 Vert.x를 원한다. 두 대의 서버를 운영합니다. 현재, 각 서버는 첫 번째 방법으로 구성됩니다. –

관련 문제