Giter Club home page Giter Club logo

udp-collector's Introduction

CMSSW UDP collector service

Go CI build

The new CMSSW UDP collector service consist of UDP server udp_server and udp_server_monitor monitor application. To compile them you need a Go-lang to be installed on your system. Then use the following instructions:

# build executables
go build udp_server.go
go build udp_server_monitor.go
go build udp_client.go

Service maintenance

To start the service please compile udp_server and udp_server_monitor executables and put it on your node, then

# create your udp_server.json file, and provide proper credentials
cat > udp_server.json << EOF
{
    "port": 9331,
    "bufSize": 2048,
    "monitorInterval": 10,
    "monitorPort": 9330,
    "stompLogin": "xxx",
    "stompPassword": "yyy",
	"SendTimeout": 10,
	"RecvTimeout": 10,
	"HeartBeatGracePeriod": 1.0,
    "stompURI": "zzz:port",
    "endpoint": "/abc/xyz",
    "contentType": "application/json",
    "verbose": false
}
EOF
# make sure that PATH contains path to location of your executable, e.g.
export PATH=$PATH:$PWD
# start udp_server_monitor process which will take care of udp_server
nohup ./udp_server_monitor 2>&1 1>& log < /dev/null &

Please note, the send/recvTimeout are defined in milliseconds.

Testing procedure

We can test our udp server with provided udp client code.

# start server as following
udp_server -config udp_server.json

# start client as following
udp_client

The udp_client provides options to specify host, port and number of documents to be used.

udp-collector's People

Contributors

dependabot[bot] avatar klannon avatar nikodemas avatar vkuznet avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.