-
Notifications
You must be signed in to change notification settings - Fork 1
Running Groups
javapark1 edited this page Feb 21, 2024
·
7 revisions
Let's experiment the group commands. We will create and run a group named mygroup
comprising two (2) Hazelcast clusters, one (1) Kafka cluster, and one (1) Spark cluster. Make sure that you have installed Hazelcast, Kafka, and Spark before taking the steps shown below. The Installing Padogrid section provides installation details.
- Create
mygroup
with two (2) Hazelcast clusters namedmyhz0
andmyhz1
create_group -product hazelcast -group mygroup -count 2 -prefix myhz
- Check the group you created.
show_group -group mygroup
Output:
GROUP: mygroup
Clusters: myhz0, myhz1
CLUSTER: myhz0
CLUSTER_DIR: /Users/dpark/Padogrid/workspaces/rwe-pado/ws-pado/clusters/myhz0
PRODUCT: hazelcast
CLUSTER_TYPE: imdg
POD: local
POD_TYPE: local
Members Running: 0/2
MC Running: 0/1
Version: 4.1.1
Switch Cluster: switch_rwe rwe-pado ws-pado; switch_cluster myhz0
CLUSTER: myhz1
CLUSTER_DIR: /Users/dpark/Padogrid/workspaces/rwe-pado/ws-pado/clusters/myhz1
PRODUCT: hazelcast
CLUSTER_TYPE: imdg
POD: local
POD_TYPE: local
Members Running: 0/2
MC Running: 0/1
Version: 4.1.1
Switch Cluster: switch_rwe rwe-pado ws-pado; switch_cluster myhz1
- Create a Jet cluster using the default name,
myjet
.
create_cluster -product jet -cluster myjet
- Create a Spark cluster using the default name,
myspark
.
create_cluster -product spark -cluster myspark
- Add the
mykafka
andmyspark
clusters tomygroup
.
add_cluster -group mygroup -cluster mykafka
add_cluster -group mygroup -cluster myspark
- Check
mygroup
once more. It should now contain four (4) clusters as shown in the ouput below.
show_group -group mygroup
Output:
GROUP: mygroup
Clusters: myhz0, myhz1, mykafka, myspark
CLUSTER: myhz0
CLUSTER_DIR: /Users/dpark/Padogrid/workspaces/rwe-pado/ws-pado/clusters/myhz0
PRODUCT: hazelcast
CLUSTER_TYPE: imdg
POD: local
POD_TYPE: local
Members Running: 0/2
MC Running: 0/1
Version: 4.1.1
Switch Cluster: switch_rwe rwe-pado ws-pado; switch_cluster myhz0
CLUSTER: myhz1
CLUSTER_DIR: /Users/dpark/Padogrid/workspaces/rwe-pado/ws-pado/clusters/myhz1
PRODUCT: hazelcast
CLUSTER_TYPE: imdg
POD: local
POD_TYPE: local
Members Running: 0/2
MC Running: 0/1
Version: 4.1.1
Switch Cluster: switch_rwe rwe-pado ws-pado; switch_cluster myhz1
CLUSTER: mykafka
Cluster ID: DI_VCZZ1RSmXWgF67senwA
CLUSTER_DIR: /Users/dpark/Padogrid/workspaces/rwe-pado/ws-pado/clusters/mykafka
PRODUCT: kafka
CLUSTER_TYPE: kraft
POD: local
POD_TYPE: local
Servers Running: 3/3
Version: 3.0.0
witch Cluster: switch_rwe rwe-0.9.14-snapshot ws-group; switch_cluster mykafka
CLUSTER: myspark
CLUSTER_DIR: /Users/dpark/Padogrid/workspaces/rwe-pado/ws-pado/clusters/myspark
PRODUCT: spark
CLUSTER_TYPE: standalone
POD: local
POD_TYPE: local
Masters Running: 0/1
Workers Running: 0/2
Version: 3.1.2
Switch Cluster: switch_rwe rwe-pado ws-pado; switch_cluster myspark
- Switch to
mygroup
and check again. This should give you the same output as the previous step.
switch_group mygroup
show_group
- View the
group.properties
file. Note that thegroup.cluster.names
property is now set to the four cluster names.
switch_group
cat etc/group.properties
Output:
#
# This file contains group specific properties.
#
# Group name
group.name=mygroup
# Cluster name prefix
group.cluster.prefix=myhz
# Comma separated cluster names
group.cluster.names=myhz0, myhz1, mykafka, myspark
# Product
group.product=hazelcast
# Type (default or pado)
group.type=default
# First port of the first cluster
group.firstPort=5701
- Start and show the group. You should see all clusters running.
start_group
show_group
- You can also use the
_cluster
commands on individual clusters. For examples, the following displays themykafka
cluster status.
show_cluster -cluster mykafka
- Stop or kill the group.
# Stop all servers in each cluster
stop_group -all
# Or kill all servers in each cluster
kill_group -all
- Remove a Hazelcast cluster and check the group. Note that the
remove_cluster
command requires the-cluster
option.
remove_cluster -cluster myhz0
show_group
- Remove the entire group. Note that the
remove_group
requires the-group
option.
remove_group -group mygroup
PadoGrid Manual
Overview
- Home
- PadoGrid in 5 Minutes
- Quick Start
- Introduction
- Bundle Catalogs
- Building PadoGrid
- Supported Data Grid Products and Downloads
- PadoGrid Components
- Installing PadoGrid
- Root Workspaces Environments (RWEs)
- Initializing PadoGrid
- Bash Auto-Completion
- Viewing PadoGrid Summaries
- Updating Products
- Upgrading PadoGrid
- Migrating Workspaces
- PadoGrid Pods
- Kubernetes
- Docker
- Apps
- Software List
Operations
- Workspace Lifecycle Management
- Creating RWE
- Creating Workspace and Starting Cluster
- Managing Workspaces
- Understanding Workspaces
- Understanding Clusters
- Running Clusters
- Default Port Numbers
- Running Clusters Independent of PadoGrid
- Running Apps
- Understanding Groups
- Running Groups
- Understanding Bundles
- User Bundle Repos
- Using Bundle Templates
- Bundle Repo Guidelines
- User Bundle Catalogs
- Private Bundle Repos
- Gitea Repos
- Running Bundles in Container
- PadoGrid Addon Jars
- Understanding PadoGrid Pods
- Tested Vagrant Boxes
- VM-Enabled Pods
- Multitenancy
- Multitenancy Best Practices
- PadoGrid Configuration Files
Tools
Platforms
Clouds
Pado
Geode/GemFire
- Geode CLASSPATH
- Geode Kubernetes
- Geode Minikube
- Geode Minikube on WSL
- Geode Docker Compose
- Geode Grafana App
- Geode
perf_test
App - Geode WAN Example
- Geode Workspaces on VMs
- Geode on AWS EC2
- Reactivating Geode Workspaces on AWS EC2
Hazelcast/Jet
- Hazelcast CLASSPATH
- Creating Jet Workspace
- Configuring Hazelcast Addon
- HQL Query
- Hazelcast Kubernetes
- Hazelcast GKE
- Hazelcast Minikube
- Hazelcast Minikube on WSL
- Hazelcast Minishift/CDK
- Hazelcast OpenShift
- Hazelcast Docker Compose
- Hazelcast Desktop App
- Hazelcast Grafana App
- Hazelcast
jet_demo
App - Hazelcast
perf_test
App - Hazelcast WAN Example
- Hazelcast Workspaces on VMs
- Hazelcast on AWS EC2
- Reactivating Hazelcast Workspaces on AWS EC2
ComputeDB/SnappyData
Coherence
Hadoop
Kafka/Confluent
Mosquitto
- Mosquitto CLASSPATH
- Mosquitto Overview
- Installing/Building Mosquitto
- Clustering MQTT
- Cluster Archetypes
- Enabling Mosquitto SSL/TLS
- Mosquitto Docker Compose
- MQTT perf_test App
Redis
Spark