You can connect to a remote cluster via HTTP or HTTPS and gfsh命令来
manage the cluster using .
To connect gfsh to a remote GemFire cluster using the HTTP protocol:
1. Run gfsh。查看
"Start gfsh".
--http-bind-address
2. When starting a remote cluster on a remote host, you can optionally specify and --http-service-port作为
GemFire properties when starting your jmx manager (server or locator) . These properties can be used in the url when you connect to the remote cluster's HTTP service from your local system. E.g:
gfsh>start server --name=server1 --J=-Dgemfire.jmx-manager=true \ --J=-Dgemfire.jmx-manager-start=true -J=-Dgemfire.http-service-port=8080 \ --J=-Dgemfire.http-service-bind-address=myremotecluster.example.com
This command must be executed directly on the host and will ultimately serve as remote management of the HTTP service for the remote GemFire server host. (You cannot run a GemFire server remotely.)
3. On your local system, run gfsh连接命令来连接到远程系统。包括了
--use-http
with and --url
parameters . E.g:
gfsh>connect --use-http=true --url="http://myremotecluster.example.com:8080/gemfire/v1" Successfully connected to: GemFire Manager's HTTP service @ http://myremotecluster.example.com:8080/gemfire/v1
View "Connect"
gfsh
Connected to a remote system. Most gfsh命令将在远程系统上执行
; however, there are some exceptions, the following commands are only executed on the local cluster:
alter disk-store compact offline-disk-store describe offline-disk-store help hint sh (for executing OS commands) sleep start jconsole (however, you can connect JConsole to a remote cluster when gfsh is connected to the cluster via JMX) start jvisualvm start locator start server status locator* status server* stop locator* stop server* run (for executing gfsh scripts) validate disk-store version
*
When gfsh is connected to the cluster via JMX or HTTP/S using the --name
option stop
/ status
command you can stop and get the status of remote locators and servers. --pid
If you use or --dir选项,那么
stop
/ for these commandsstatus命令只会在本地被执行。
To configure SSL for remote connections (https), specify GemFire configuration parameters in the gemfire.properties or gfsecurity-properties file or before startup :
http-service-ssl-enabled http-service-ssl-require-authentication http-service-ssl-protocols http-service-ssl-ciphers http-service-ssl-keystore http-service-ssl-keystore-password http-service-ssl-keystore-type http-service-ssl-truststore http-service-ssl-truststore-password
See SSL for details on these parameters.
The above parameters also apply to all HTTP services hosted in the configured JMX manager, which can include the following
- Developer REST Application Interface Service
- Pulse Monitoring Tool