-
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 clickhouse * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Stabilizing the code * Clickhouse works. * Clickhouse works. Perf improving * Clickhouse works. Perf improving * Clickhouse works. Perf improving * Fixed queries * Minor fixes * adding features * Added SFD sampling * Adding conf res * Adding conf res * Adding conf res * Adding conf res * Adding conf res * Adding conf res * Adding conf res * Adding conf res --------- Co-authored-by: artur <[email protected]>
- Loading branch information
Showing
49 changed files
with
2,290 additions
and
244 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
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 was deleted.
Oops, something went wrong.
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
16 changes: 16 additions & 0 deletions
16
core/src/main/java/rocks/artur/api_impl/Native_ResolveConflictsImpl.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package rocks.artur.api_impl; | ||
|
||
import rocks.artur.api.ResolveConflicts; | ||
import rocks.artur.domain.CharacterisationResultGateway; | ||
|
||
public class Native_ResolveConflictsImpl implements ResolveConflicts { | ||
private CharacterisationResultGateway characterisationResultGateway; | ||
|
||
public Native_ResolveConflictsImpl(CharacterisationResultGateway characterisationResultGateway) { | ||
this.characterisationResultGateway = characterisationResultGateway; | ||
} | ||
@Override | ||
public void run() { | ||
characterisationResultGateway.resolveConflictsNative(); | ||
} | ||
} |
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,105 @@ | ||
version: '3' | ||
|
||
services: | ||
|
||
fits: | ||
build: | ||
context: . | ||
dockerfile: ./fits/Dockerfile | ||
container_name: fits | ||
env_file: .env | ||
networks: | ||
- web | ||
restart: unless-stopped | ||
ports: | ||
- 8081:8080 | ||
|
||
rest: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
env_file: .env | ||
networks: | ||
- web | ||
restart: unless-stopped | ||
environment: | ||
- DB_SELECTOR=clickhouse | ||
deploy: | ||
replicas: 1 | ||
ports: | ||
- 8092:8080 | ||
depends_on: | ||
- fits | ||
- db-docker | ||
|
||
web: | ||
build: | ||
context: . | ||
dockerfile: ./web/Dockerfile | ||
container_name: web | ||
env_file: .env | ||
networks: | ||
- web | ||
restart: unless-stopped | ||
ports: | ||
- 8080:3000 | ||
|
||
db-docker: | ||
image: yandex/clickhouse-server | ||
container_name: db-docker | ||
networks: | ||
- web | ||
ports: | ||
- 8123:8123 | ||
- 9000:9000 | ||
- 9004:9004 | ||
|
||
|
||
db-docker-init: | ||
image: yandex/clickhouse-server | ||
container_name: db-docker-init | ||
volumes: | ||
- ./utils/clickhouse:/var/clickhouse | ||
depends_on: | ||
- db-docker | ||
networks: | ||
- web | ||
entrypoint: [ '/bin/sh', '-c' ] | ||
command: | | ||
" | ||
while ! clickhouse-client --host db-docker -q \"SHOW databases;\"; do | ||
echo waiting for clickhouse up | ||
sleep 1 | ||
done | ||
clickhouse-client --host db-docker --queries-file /var/clickhouse/initdb.sql | ||
tail -f /dev/null | ||
" | ||
adminer: | ||
image: adminer | ||
container_name: adminer | ||
env_file: .env | ||
restart: unless-stopped | ||
networks: | ||
- web | ||
ports: | ||
- 8090:8080 | ||
|
||
nginx: | ||
image: nginx | ||
container_name: nginx | ||
env_file: .env | ||
volumes: | ||
- ./utils/nginx/nginx.conf:/etc/nginx/conf.d/default.conf | ||
ports: | ||
- 8082:80 | ||
networks: | ||
- web | ||
depends_on: | ||
- rest | ||
|
||
networks: | ||
web: |
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
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.