'network service'에 해당되는 글 1건

  1. 2013.08.12 [Elasticsearch] NetworkService.java 설정 정보.

[Elasticsearch] NetworkService.java 설정 정보.

Elastic/Elasticsearch 2013.08.12 13:34

TCP 관련 설정만 참고해 봅니다.


public static final String LOCAL = "#local#";


    private static final String GLOBAL_NETWORK_HOST_SETTING = "network.host";

    private static final String GLOBAL_NETWORK_BINDHOST_SETTING = "network.bind_host";

    private static final String GLOBAL_NETWORK_PUBLISHHOST_SETTING = "network.publish_host";


    public static final class TcpSettings {

        public static final String TCP_NO_DELAY = "network.tcp.no_delay";

        public static final String TCP_KEEP_ALIVE = "network.tcp.keep_alive";

        public static final String TCP_REUSE_ADDRESS = "network.tcp.reuse_address";

        public static final String TCP_SEND_BUFFER_SIZE = "network.tcp.send_buffer_size";

        public static final String TCP_RECEIVE_BUFFER_SIZE = "network.tcp.receive_buffer_size";

        public static final String TCP_BLOCKING = "network.tcp.blocking";

        public static final String TCP_BLOCKING_SERVER = "network.tcp.blocking_server";

        public static final String TCP_BLOCKING_CLIENT = "network.tcp.blocking_client";

        public static final String TCP_CONNECT_TIMEOUT = "network.tcp.connect_timeout";


        public static final ByteSizeValue TCP_DEFAULT_SEND_BUFFER_SIZE = null;

        public static final ByteSizeValue TCP_DEFAULT_RECEIVE_BUFFER_SIZE = null;

        public static final TimeValue TCP_DEFAULT_CONNECT_TIMEOUT = new TimeValue(30, TimeUnit.SECONDS);

    }


elasticsearch를 서버로 사용 시 netty blocking 현상이 보일 경우 위 설정을 검토해 보시면 도움이 될 것으로 판단 됩니다.

기본 설정은 elasticsearch.yml 에 하시면 됩니다.


예를 들어

network.tcp.blocking: true


신고
Trackback 0 : Comment 0