07.Infinispan
Infinispan
  site
    http://www.jboss.org/infinispan
  install
    1. download
      http://www.jboss.org/infinispan/downloads
    2. 압축풀기
  run
    설치된 곳의 bin 디렉토리 아래 startServer.sh or startServer.bat 실행
    옵션 정보 보기
      ./bin/startServer.sh -h
      options:
-h, --help
Show this help message
-V, --version
Show version information
--
Stop processing options
-p, --port=<num>
TCP port number to listen on
(default: 11211 for Memcached, 11222 for Hot Rod
and 8181 for WebSocket server)
-l, --host=<host or ip>
Interface to listen on
(default: 127.0.0.1, localhost)
-m, --master_threads=<num>
Number of threads accepting incoming connections
(default: unlimited while resources are available)
-t, --work_threads=<num>
Number of threads processing incoming requests and sending responses
(default: unlimited while resources are available)
-c, --cache_config=<filename>
Cache configuration file
(default: creates cache with default values)
-r, --protocol=[memcached|hotrod|websocket]
Protocol to understand by the server.
This is a mandatory option and you should choose one of these options
-i, --idle_timeout=<num>
Idle read timeout, in seconds, used to detect stale connections
(default: -1)
If no new messages have been read within this time,
the server disconnects the channel.
Passing -1 disables idle timeout.
-n, --tcp_no_delay=[true|false]
TCP no delay flag switch (default: true)
-s, --send_buf_size=<num>
Send buffer size (default: as defined by the OS).
-e, --recv_buf_size=<num>
Receive buffer size (default: as defined by the OS).
-o, --proxy_host=<host or ip>
Host address to expose in topology information sent to clients.
If not present, it defaults to configured host.
Servers that do not transmit topology information ignore this setting.
-x, --proxy_port=<num>
Port to expose in topology information sent to clients.
If not present, it defaults to configured port.
Servers that do not transmit topology information ignore this setting.
-k, --topo_lock_timeout=<num>
Controls lock timeout (in milliseconds) for those servers that maintain
the topology information in an internal cache.
-u, --topo_repl_timeout=<num>
Sets the maximum replication time (in milliseconds) for transfer of
topology information between servers.
If state transfer is enabled, this setting also controls the topology
cache state transfer timeout.
If state transfer is disabled, it controls the amount of time to wait
for this topology data to be lazily loaded from a different node when
not present locally.
-a, --topo_state_trasfer=[true|false]
Enabling topology information state transfer means that when a server
starts it retrieves this information from a different node.
Otherwise, if set to false, the topology information is lazily loaded
if not available locally.
-D<name>[=<value>]
Set a system property
    실행옵션 & 명령
      ./bin/startServer.sh -r memcached -p 11211
    config 옵션 샘플
      ./bin/startServer.sh -r memcached -c etc/config-samples/gui-demo-cache-config.xml
    http://community.jboss.org/wiki/UsingInfinispanMemcachedServer
  docs
    http://www.jboss.org/infinispan/docs
    http://community.jboss.org/wiki/5minutetutorialonInfinispan
    모니터링관련
      http://community.jboss.org/wiki/MonitoringInfinispanwithRHQ
  client
    memcached protocol을 이용
  고려사항
    default 설정 상태에서 memcached client로만 테스트를 했는데
Fail-over 시간이 오래 걸리고 성능이 Hazelcast보다 떨어진다.
    최적화하면 결과는 달라 질 수 있음.
options:
-h, --help
Show this help message
-V, --version
Show version information
--
Stop processing options
-p, --port=<num>
TCP port number to listen on
(default: 11211 for Memcached, 11222 for Hot Rod
and 8181 for WebSocket server)
-l, --host=<host or ip>
Interface to listen on
(default: 127.0.0.1, localhost)
-m, --master_threads=<num>
Number of threads accepting incoming connections
(default: unlimited while resources are available)
-t, --work_threads=<num>
Number of threads processing incoming requests and sending responses
(default: unlimited while resources are available)
-c, --cache_config=<filename>
Cache configuration file
(default: creates cache with default values)
-r, --protocol=[memcached|hotrod|websocket]
Protocol to understand by the server.
This is a mandatory option and you should choose one of these options
-i, --idle_timeout=<num>
Idle read timeout, in seconds, used to detect stale connections
(default: -1)
If no new messages have been read within this time,
the server disconnects the channel.
Passing -1 disables idle timeout.
-n, --tcp_no_delay=[true|false]
TCP no delay flag switch (default: true)
-s, --send_buf_size=<num>
Send buffer size (default: as defined by the OS).
-e, --recv_buf_size=<num>
Receive buffer size (default: as defined by the OS).
-o, --proxy_host=<host or ip>
Host address to expose in topology information sent to clients.
If not present, it defaults to configured host.
Servers that do not transmit topology information ignore this setting.
-x, --proxy_port=<num>
Port to expose in topology information sent to clients.
If not present, it defaults to configured port.
Servers that do not transmit topology information ignore this setting.
-k, --topo_lock_timeout=<num>
Controls lock timeout (in milliseconds) for those servers that maintain
the topology information in an internal cache.
-u, --topo_repl_timeout=<num>
Sets the maximum replication time (in milliseconds) for transfer of
topology information between servers.
If state transfer is enabled, this setting also controls the topology
cache state transfer timeout.
If state transfer is disabled, it controls the amount of time to wait
for this topology data to be lazily loaded from a different node when
not present locally.
-a, --topo_state_trasfer=[true|false]
Enabling topology information state transfer means that when a server
starts it retrieves this information from a different node.
Otherwise, if set to false, the topology information is lazily loaded
if not available locally.
-D<name>[=<value>]
Set a system property