soy_log_collector

module
v0.0.0-...-b671e6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2021 License: MIT

README

soy-log-collector

Codacy Badge Codacy Badge dockerize linux-build-test

Introduction

This project sends the messages got from soy_log_generator to soy_log_explorer. The internal process is below.

  1. Collect messages received from soy_log_generator according to hot/cold and pushes them to the corresponding queue.
  2. Background daemon pops the message from the queue and unzips it.
  3. Background daemon push the messages into redis-server with caching.
  4. If hot messages, send the unzipped message to soy_log_explorer.
  5. If cold messages, send zipped messages to soy_log_explorer.

Installation

git clone https://github.com/soyoslab/soy_log_collector.git
cd soy_log_collector

Usage

Set enviroment variables:

export RPCSERVER=0.0.0.0:YYYY         # Server Address
export EXPLORERSERVER=X.X.X.X:YYYY    # soy_log_explorer's RPC server Address
export DBADDR=X.X.X.X:YYYY            # Redis-server's Address
export HOTPORTSIZE=X                  # HotPort Ring Size
export COLDPORTSIZE=X                 # ColdPort Ring Size

Example:

export RPCSERVER=0.0.0.0:8972
export EXPLORERSERVER=localhost:8973
export DBADDR=localhost:6379
export HOTPORTSIZE=1000
export COLDPORTSIZE=1000000

Run soy_log_collector:

go run cmd/server/server.go

Directories

Path Synopsis
cmd
internal
rpc
pkg
rpc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL