Giter Site home page Giter Site logo

cpn_hammer's Introduction

CPN Hammer

Running Bidder endpoint

To run openRTB bidder endpoint you can use the following command
python3 cli/Server.py run [--port=<number>]

if --port is not specified, 9000 is used.

Custom environment

We also provide a bash wrapper to launch the RTB bidder using custom python environment
./rtb_bidder.sh [--port=<number>]

Example

./rtb_bidder.sh --port=8080 > /var/log/rtb_bidder.log 2>&1 &

This wrapper uses content of the ~/.site-packages.env file to identify the location of site-packages you want to use.

Before using the wrapper you need to initialize this file with the right path

echo "<your path to site/user packages>" > ~/.site-packages.env

Example

echo "~/venv3/lib/python3.7/site-packages/" > ~/.site-packages.env

The easiest way to get started with the RTB bidder

pip3 install fire
python3 cli/Server.py run

Example

Sending 10 request

./send_bid_request.sh -c 10 -e http://127.0.0.1:9000

Use ./send_bid_request.sh --help to get information about all supported parameters

Troubleshooting

sudo tcpdump  -i eth0 'tcp[13] & 2 != 0 and (dst port 9000)'

Dependencies

If you just need to run the bidder endpoint w/o generating images of ads served the only dependency is fire

cpn_hammer's People

Watchers

Aleksey Beregov 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.