viabtc / viabtc_exchange_server

A trading engine with high-speed performance and real-time notification
MIT License
2.68k stars 1.49k forks source link

viabtc issue in Matchengine #208

Open RVivekkumar opened 5 years ago

RVivekkumar commented 5 years ago

I had been stuck up in matchengine deployments. While i am using entrypoint file call matchengine the error shows

load kafka config fail: -381 ./matchengine.exe: load config fail: -283

Can Anyone please help me in this issue

objectt commented 5 years ago

@RVivekkumar please upload your config file

RVivekkumar commented 5 years ago

This is my Config File

{ "debug": true, "process": { "file_limit": 1000000, "core_limit": 1000000000 }, "log": { "path": "/var/log/matchengine.log", "flag": "fatal,error,warn,info,debug,trace", "num": 10 }, "alert": { "host": "matchengine", "addr": "127.0.0.1:xxxx" }, "svr": { "bind": [ "tcp@0.0.0.0:xxxx", "udp@0.0.0.0:xxxx" ], "buf_limit": 100, "max_pkg_size": 10240, "heartbeat_check": false }, "cli": "tcp@127.0.0.1:7317", "db_sys": { "host": "xxxx", "user": "exchange", "pass": "xxxx", "name": "exchange" }, "db_log": { "host": "xxxx", "user": "exchange", "pass": "xxxx", "name": "trade_log" }, "db_history": { "host": "xxxx", "user": "exchange", "pass": "xxxx", "name": "trade_history" }, "brokers": "kafka:9092", "slice_interval": 3600, "slice_keeptime": 259200 }

objectt commented 5 years ago

seems like your config is fine. check your kafka connection. make sure it can be reached from matchengine server.

karthik2883 commented 4 years ago

i am also getting same error

karthik2883 commented 4 years ago

@objectt please help on this got stuck do i need to do any changes

objectt commented 4 years ago

@karthik2883 please elaborate your problem. Provide any logs, error messages, current configuration, etc.

karthik2883 commented 4 years ago

Actually i am using your code this is my config { "debug": true, "process": { "file_limit": 1000000, "core_limit": 1000000000 }, "log": { "path": "/var/log/matchengine.log", "flag": "fatal,error,warn,info,debug,trace", "num": 10 }, "alert": { "host": "matchengine", "addr": "0.0.0.0:4444" }, "svr": { "bind": [ "tcp@0.0.0.0:7316", "udp@0.0.0.0:7316" ], "buf_limit": 100, "max_pkg_size": 10240, "heartbeat_check": false }, "cli": "tcp@0.0.0.0:7317", "db_sys": { "host": "", "user": "", "pass": "", "name":"" }, "db_log": { "host": "", "user": "", "pass": "", "name":"" }, "db_history": { "host": "", "user": "", "pass": "", "name":"" }, "brokers": "0.0.0.0:9092", "slice_interval": 3600, "slice_keeptime": 259200 }

after checking your code i came to know that there suppose to be kafka producer json in config.json could you share the updated config for matchengine that would be really helpfull

objectt commented 4 years ago

if you forked my version, matchengine config needs following section along with others:

 "kafka": {
  "brokers": "127.0.0.1:9092",
  "topic_balances": "balances",
  "topic_orders": "orders",
  "topic_deals": "deals"
}
karthik2883 commented 4 years ago

Thank you very much .................................... :bowing_man: