GithubHelp home page GithubHelp logo

gouravsardana / django-workload Goto Github PK

View Code? Open in Web Editor NEW

This project forked from facebookarchive/django-workload

0.0 0.0 0.0 162 KB

Simulate a Django web stack

License: Other

Python 80.96% Shell 12.25% Dockerfile 6.79%

django-workload's Introduction

Django workload by Instagram and Intel, v1.0 RC

This project aims to provide a Django workload based on a real-world large-scale production workload that serves mobile clients.

Setup for bare-metal

The project can be set up on a single machine, or on a cluster of machines to spread the load and to make it easier to gauge the impact of the Django workload on both Python and the hardware it runs on.

Documentation to set up each component of the cluster is provided for in each subdirectory. You'll need to follow the README.md file in each of the following locations:

Once set up, access http://[uwsgi_host:uwsgi_port]/ to see an overview of the offered endpoints, or use the load generator to produce a high request load on the server.

Setup for Docker containers

The workload can also be deployed using Docker containers. The instructions can be found in docker-scripts/README.md.

Please note that running the workload using Docker containers might deliver less performance (transactions/second) than the bare-metal configuration and there might be more run-to-run variation. In order to obtain the most accurate performance comparison, please run the workload on bare-metal.

Benchmarking configuration

The default benchmarking parameters used for Siege, Memcached and uWSGI are suitable for driving high CPU utilization (>80%) in server environments:

uWSGI concurrent workers – 88
Memcached threads – 16
Siege Concurrency – 185

Contributing

See the CONTRIBUTING file for how to help out.

License

Django Workload is BSD-licensed. We also provide an additional patent grant.

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.