Code Monkey home page Code Monkey logo

chasqui's Introduction

chasqui — a minimalistic tool for experimenting with HTTP-based bulk file transfer

Overview

chasqui is an experimental, minimalistic, command line tool to evaluate the suitability of HTTP-based bulk file transport over high-latency network links. It is intended to generate synthetic load on HTTP-based file server and measure the performance of doing memory-to-memory transfers.

chasqui consists of three components: a file server, a client and a driver. The file server responds to HTTP GET requests emitted by the client. The client established several connections to the file server and emits download requests as a result of commands emitted by the driver.

Both the client and the file server use the Go built-in implementation of HTTP/1.1 and HTTP2. Data exchange is always performed over a secure channel, by using TLS.

How to use

This is the synopsis of the command:

$ chasqui

USAGE:
    chasqui server [-addr=<network address>] [-ca=<file>] [-cert=<file>]
                   [-key=<file>]

    chasqui client [-addr=<network address>] [-ca=<file>] [-cert=<file>]
                   [-key=<file>]

    chasqui driver [-clients=<network addresses>] [-servers=<network addresses>]
                   [-duration=duration]

    chasqui -help
    chasqui -version

Use 'chasqui -help' to get detailed information about options and examples
of usage.

To use chasqui you need at least two hosts: one for running the file server and the other for running the client. The client emits download (i.e. HTTP GET) requests to the file server which sends the synthetized contents of a file in the body of the response. No disk I/O is induced by chasqui neither by the file server nor by the client.

First, start a a file server in hostA:

$ chasqui server -addr :5678 -ca ca.pem -cert hostA.cert -key hostA.key

Next, start a client in hostB:

$ chasqui client -addr :9443 -ca ca.pem

And finally, start a driver. The driver will send commands to the client running in hostB to emit download requests to hostA and report on the observed results. For instance, the command:

$ chasqui driver -clients hostB:9443 -servers hostA:5678 -http1 -duration 60s -concurrency 2

will instruct the client running in hostB to emit HTTP GET requests to the file server running in hostA during 60 seconds (-duration option). The -concurrency option specifies how many simultaneous TCP connections the client will establish with the server.

At the end of each test, the driver will print a report, similar to the one below:

chasqui: download report
        client:           'hostB.example.org:9443'
        concurrency:      2
        elapsed time:     1m8.263740015s
        files downloaded: 15
        data volume:      1471.47 MB
        download rate:    21.56 MB/sec
        errors:           0
Summary:
   download operations: 15
   data volume:         1471.47 MB
   avg file size:       98.10 MB
   download rate:       21.56 MB/sec

You can start several clients and several file servers, each running in a different host. This allows for simultaneous generation of download requests by several clients on several servers.

For more details on the usage of chasqui driver do:

$ chasqui driver --help

WARNING: this software is highly experimental. Don't use for production purposes. Don't use in hosts exposed to the Internet.

Installation

To build from sources, you need to have installed the Go programming environment and then do:

go get -u github.com/airnandez/chasqui

Feedback

Your feedback is welcome. Please feel free to provide it by opening an issue.

Credits

This tool is being developed and maintained by Fabio Hernandez at IN2P3 / CNRS computing center (Lyon, France).

License

Copyright 2017 Fabio Hernandez

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

chasqui's People

Contributors

airnandez avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wtakase

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.