chproxy
Open-Source ClickHouse http proxy and load balancer
파일 탐색기
최종 버전 다운로드 (.zip)- bug_report.md
- feature_request.md
- question.md
- go-test.yaml
- golangci-lint.yaml
- release.yml
- pull_request_template.md
- async_cache.go
- async_cache_test.go
- cache.go
- filesystem_cache.go
- filesystem_cache_test.go
- key.go
- key_test.go
- redis_cache.go
- redis_cache_test.go
- stats.go
- tmp_file_response_writer.go
- tmp_file_response_writer_test.go
- transaction_registry.go
- transaction_registry_inmem.go
- transaction_registry_redis.go
- transaction_registry_redis_test.go
- transaction_registry_test.go
- utils.go
- decompressor.go
- decompressor_test.go
- redis.go
- combined.yml
- https.yml
- simple.yml
- spread.inserts.yml
- spread.selects.yml
- wildcarded.yml
- bad.allow_all.yml
- bad.autocert_an.yml
- bad.cache_max_size.yml
- bad.deny_all.yml
- bad.double_certification.yml
- bad.double_network_groups.yml
- bad.empty_https.yml
- bad.empty_https_key_file.yml
- bad.empty_nodes.yml
- bad.empty_replica_nodes.yml
- bad.empty_users.yml
- bad.extra_fields.yml
- bad.heartbeat_section.empty.yml
- bad.max_error_reason_size.yml
- bad.max_payload_size.yml
- bad.network_groups.name.yml
- bad.network_groups.networks.yml
- bad.network_groups.yml
- bad.nodes_and_replicas.yml
- bad.packet_size_token_burst_rate_cluster_user.yml
- bad.packet_size_token_burst_rate_user.yml
- bad.param_groups.name.yml
- bad.param_groups.params.yml
- bad.proxy_settings.yml
- bad.queue_size_time_cluster_user.yml
- bad.queue_size_time_user.yml
- bad.security_no_an.yml
- bad.security_no_pass.yml
- bad.wildcarded_users.no.wildcard.yml
- bad.wrong_scheme.yml
- default_values.yml
- envvars.simple.yml
- full.yml
- timeouts.defined.yml
- timeouts.write.calculated.yml
- timeouts.write.calculated2.yml
- timeouts.write.calculated3.yml
- config.go
- config_test.go
- README.md
- types.go
- utils.go
- favicon.svg
- logo-black.svg
- logo-white.svg
- index.md
- caching.md
- default.md
- metrics.md
- proxy.md
- security.md
- server.md
- users.md
- all-use-cases.md
- authorize-users.md
- spread-insert.md
- spread-select.md
- wildcarded.md
- faq.md
- getting_started.md
- history.md
- index.md
- install.md
- config.ts
- custom.css
- env.d.ts
- .gitignore
- astro.config.mjs
- package.json
- README.md
- tsconfig.json
- yarn.lock
- config.yml
- config_with_cache.yml
- config.xml
- users.xml
- 01_database.sql
- 02_views.sql
- 03_views_distributed.sql
- docker-compose.yml
- constants.go
- counter.go
- heartbeat.go
- heartbeat_test.go
- main_test.go
- metrics.go
- node.go
- node_test.go
- log.go
- log_test.go
- example.com.cert
- example.com.key
- http-session-id.yml
- http.allow.cors.yml
- http.cache.deadline.yml
- http.cache.max-payload-size-not-reached.yml
- http.cache.max-payload-size.yml
- http.cache.redis.yml
- http.cache.yml
- http.cluster.user.networks.yml
- http.concurrent.transaction.yml
- http.deny.http.yml
- http.execution.time.yml
- http.metrics.namespace.yml
- http.metrics.networks.yml
- http.networks.yml
- http.ping.yml
- http.shared.cache.yml
- http.user.networks.yml
- http.yml
- https.cache.max-payload-size-not-reached.yml
- https.cache.max-payload-size.yml
- https.cache.yml
- https.cluster.user.networks.yml
- https.deny.https.yml
- https.networks.yml
- https.ping.yml
- https.proxy-enabled.yml
- https.user.networks.yml
- https.yml
- .gitignore
- .golangci.yml
- .goreleaser.yml
- .nmvrc
- .travis.yml
- CHANGELOG.md
- chproxy_overview.json
- CONTRIBUTING.md
- Dockerfile
- go.mod
- go.sum
- io.go
- io_test.go
- LICENSE
- main.go
- main_test.go
- Makefile
- metrics.go
- proxy.go
- proxy_handler.go
- proxy_handler_test.go
- proxy_test.go
- proxyretry_test.go
- README.md
- scope.go
- scope_test.go
- sdnotify_linux.go
- sdnotify_other.go
- SECURITY.md
- utils.go
- utils_test.go
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/ContentSquare/chproxy
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd chproxy
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. Docker
쉬움 추천사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker build -t chproxy .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
docker run -p 8080:80 chproxy
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
3. Go
보통go build ./...
Go 프로그램을 컴파일해 실행 파일을 만듭니다.
go run .
따로 빌드하지 않고 바로 Go 프로그램을 실행합니다.
빌드가 에러 없이 끝나면 성공입니다. go run . 을 썼다면 터미널 출력을 확인하세요.
4. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
