-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add export, fix read issues, decrease read/write queue to sync, fix s…
…tartup
- Loading branch information
Showing
42 changed files
with
878 additions
and
609 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ out | |
build | ||
.idea | ||
NucleoCore.iml | ||
data | ||
data/*.dat | ||
export/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
cli/restore/src/main/java/com/nucleocore/library/cli/DBRestore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
current db state saved here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,128 @@ | ||
version: '2' | ||
version: "3.7" | ||
name: redpanda-quickstart | ||
networks: | ||
redpanda_network: | ||
driver: bridge | ||
volumes: | ||
redpanda-0: null | ||
redpanda-1: null | ||
redpanda-2: null | ||
services: | ||
zookeeper: | ||
image: confluentinc/cp-zookeeper:latest | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
ZOOKEEPER_TICK_TIME: 2000 | ||
redpanda-0: | ||
command: | ||
- redpanda | ||
- start | ||
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:19092 | ||
# Address the broker advertises to clients that connect to the Kafka API. | ||
# Use the internal addresses to connect to the Redpanda brokers' | ||
# from inside the same Docker network. | ||
# Use the external addresses to connect to the Redpanda brokers' | ||
# from outside the Docker network. | ||
- --advertise-kafka-addr internal://redpanda-0:9092,external://localhost:19092 | ||
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:18082 | ||
# Address the broker advertises to clients that connect to the HTTP Proxy. | ||
- --advertise-pandaproxy-addr internal://redpanda-0:8082,external://localhost:18082 | ||
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:18081 | ||
# Redpanda brokers use the RPC API to communicate with eachother internally. | ||
- --rpc-addr redpanda-0:33145 | ||
- --advertise-rpc-addr redpanda-0:33145 | ||
# Tells Seastar (the framework Redpanda uses under the hood) to use 1 core on the system. | ||
- --smp 1 | ||
# The amount of memory to make available to Redpanda. | ||
- --memory 1G | ||
# Mode dev-container uses well-known configuration properties for development in containers. | ||
- --mode dev-container | ||
# enable logs for debugging. | ||
- --default-log-level=debug | ||
image: docker.redpanda.com/redpandadata/redpanda:v23.2.15 | ||
container_name: redpanda-0 | ||
volumes: | ||
- zookeeper_db:/var/lib/zookeeper/data | ||
- zookeeper_log:/var/lib/zookeeper/log | ||
|
||
kafka: | ||
image: confluentinc/cp-kafka:latest | ||
depends_on: | ||
- zookeeper | ||
- redpanda-0:/var/lib/redpanda/data | ||
networks: | ||
- redpanda_network | ||
ports: | ||
- "29092:29092" | ||
environment: | ||
KAFKA_BROKER_ID: 1 | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | ||
- 18081:18081 | ||
- 18082:18082 | ||
- 19092:19092 | ||
- 19644:9644 | ||
redpanda-1: | ||
command: | ||
- redpanda | ||
- start | ||
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:29092 | ||
- --advertise-kafka-addr internal://redpanda-1:9092,external://localhost:29092 | ||
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:28082 | ||
- --advertise-pandaproxy-addr internal://redpanda-1:8082,external://localhost:28082 | ||
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:28081 | ||
- --rpc-addr redpanda-1:33145 | ||
- --advertise-rpc-addr redpanda-1:33145 | ||
- --smp 1 | ||
- --memory 1G | ||
- --mode dev-container | ||
- --default-log-level=debug | ||
- --seeds redpanda-0:33145 | ||
image: docker.redpanda.com/redpandadata/redpanda:v23.2.15 | ||
container_name: redpanda-1 | ||
volumes: | ||
- kafka_db:/var/lib/kafka/data | ||
memcache: | ||
- redpanda-1:/var/lib/redpanda/data | ||
networks: | ||
- redpanda_network | ||
ports: | ||
- "11211:11211" | ||
build: | ||
dockerfile: ./memcache/Dockerfile | ||
- 28081:28081 | ||
- 28082:28082 | ||
- 29092:29092 | ||
- 29644:9644 | ||
depends_on: | ||
- redpanda-0 | ||
redpanda-2: | ||
command: | ||
- redpanda | ||
- start | ||
- --kafka-addr internal://0.0.0.0:9092,external://0.0.0.0:39092 | ||
- --advertise-kafka-addr internal://redpanda-2:9092,external://localhost:39092 | ||
- --pandaproxy-addr internal://0.0.0.0:8082,external://0.0.0.0:38082 | ||
- --advertise-pandaproxy-addr internal://redpanda-2:8082,external://localhost:38082 | ||
- --schema-registry-addr internal://0.0.0.0:8081,external://0.0.0.0:38081 | ||
- --rpc-addr redpanda-2:33145 | ||
- --advertise-rpc-addr redpanda-2:33145 | ||
- --smp 1 | ||
- --memory 1G | ||
- --mode dev-container | ||
- --default-log-level=debug | ||
- --seeds redpanda-0:33145 | ||
image: docker.redpanda.com/redpandadata/redpanda:v23.2.15 | ||
container_name: redpanda-2 | ||
volumes: | ||
- data_backup:/data/ | ||
- redpanda-2:/var/lib/redpanda/data | ||
networks: | ||
- redpanda_network | ||
ports: | ||
- 38081:38081 | ||
- 38082:38082 | ||
- 39092:39092 | ||
- 39644:9644 | ||
depends_on: | ||
- redpanda-0 | ||
console: | ||
container_name: redpanda-console | ||
image: docker.redpanda.com/redpandadata/console:v2.3.5 | ||
networks: | ||
- redpanda_network | ||
entrypoint: /bin/sh | ||
command: -c 'echo "$$CONSOLE_CONFIG_FILE" > /tmp/config.yml; /app/console' | ||
environment: | ||
PORT: 11211 | ||
KAFKA_HOSTS: kafka:9092 | ||
KAFKA_TOPIC: memcache | ||
volumes: | ||
data_backup: | ||
kafka_db: | ||
zookeeper_db: | ||
zookeeper_log: | ||
CONFIG_FILEPATH: /tmp/config.yml | ||
CONSOLE_CONFIG_FILE: | | ||
kafka: | ||
brokers: ["redpanda-0:9092"] | ||
schemaRegistry: | ||
enabled: true | ||
urls: ["http://redpanda-0:8081"] | ||
redpanda: | ||
adminApi: | ||
enabled: true | ||
urls: ["http://redpanda-0:9644"] | ||
ports: | ||
- 8080:8080 | ||
depends_on: | ||
- redpanda-0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
exports saved in this folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
library/src/main/java/com/nucleocore/library/database/modifications/ConnectionCreate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.