From b56797a434e537aeab595403052f7afb45554719 Mon Sep 17 00:00:00 2001 From: TeoV Date: Mon, 1 Feb 2021 10:26:44 +0200 Subject: [PATCH] Add comments on how to run --- cmd/cgr-tester/proc_event/proc_ev.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/cgr-tester/proc_event/proc_ev.go b/cmd/cgr-tester/proc_event/proc_ev.go index 01ccf3475..da7087d9c 100644 --- a/cmd/cgr-tester/proc_event/proc_ev.go +++ b/cmd/cgr-tester/proc_event/proc_ev.go @@ -40,9 +40,14 @@ import ( var ( dataDir = flag.String("data_dir", "/usr/share/cgrates", "CGR data dir path here") requests = flag.Int("requests", 10000, "Number of requests") - gorutines = flag.Int("gorutines", 5, "Number of simultaneous goroutines") + gorutines = flag.Int("goroutines", 5, "Number of simultaneous goroutines") ) +// How to run: +// 1) Start the engine with the following configuration cgr-engine -config_path=/usr/share/cgrates/conf/samples/hundred_rates +// 2) Load the data with cgr-loader cgr-loader -config_path=/usr/share/cgrates/conf/samples/hundred_rates -verbose -path=/usr/share/cgrates/tariffplans/hundredrates +// 3) Run the program with go run proc_ev.go -requests=10000 -goroutines=5 + func main() { flag.Parse() var err error