-
Notifications
You must be signed in to change notification settings - Fork 1
SnappyData Docker Compose
This page describes how to create a Docker environment and launch a SnappyData cluster using docker-compose
.
❗ You must first install Docker and Docker Compose. See References for download links.
create_docker -cluster mydocker
By default, the create_docker command adds one (1) locator, two (2) SnappyData servers (members), and one (1) leader in the cluster. You can change the number of servers using the -count
option. For example, the following command adds four (4) servers.
# Create SnappyData cluster with 4 members
create_docker -cluster mydocker -count 4
If you are running Docker containers other than SnappyData containers and they need to connect to the SnappyData cluster, then specify host IP address that is accessible from the containers using the -host
option. For example, the following example specifies the host IP, host.docker.internal
, which is defined by Docker Desktop. Please run create_docker -?
or man create_docker
for the usage.
create_docker -cluster mydocker -host host.docker.internal
First, change directory to mydocker
.
cd_docker mydocker
The mydocker
directory structure is shown below.
mydocker
├── etc
│ ├── gemfirexd.properties
│ ├── log4j2.properties
│ └── prometheus.yml
├── lib
│ ├── jmx_prometheus_javaagent-0.11.0.jar
│ ├── log4j-api-2.11.2.jar
│ ├── log4j-core-2.11.2.jar
│ └── snappydata-addon-core-0.9.7-SNAPSHOT.jar
├── log
└── stats
Edit the .env
file as needed. For example, you can change the host IP by setting the HOSTNAME_FOR_CLIENTS
environment variable in this file.
vi .env
Configure SnappyData servers by editing padogrid/etc/gemfirexd.properties
.
vi padogrid/etc/gemfirexd.properties
vi padogrid/etc/cache.xml
docker-compose up
Run snappy
to connect to the cluster.
snappy
snappy> connect client 'localhost:1527'
snappy> show schemas
Output:
databaseName
---------------------------------------------
app
default
sys
3 rows selected
Pulse URL: http://localhost:5050/dashboard/
Using SQL client applications such as SQuirreL SQL, you can connect to a locator or server (member) and execute queries.
JDBC URL: jdbc:snappydata://localhost:1527/
Ctrl-C from the docker-compose up
command and prune the containers.
docker-compose down
docker container prune
- Install Docker, https://docs.docker.com/install/.
- Install Docker Compose, https://docs.docker.com/compose/install/.
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