shadow

A HTTP debugging proxy that helps you with your continuous deployments

  • 所有者: twilio/shadow
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

#Shadow Proxy

##Introduction

Shadow is a HTTP debugging proxy that sits in front of an existing service and a service with new code changes. It copies and directs incoming requests to both downstream services and compares the responses from those services.

Shadowing deployments allows users to assert expected behaviors on the new codebase and detect unexpected behavioral changes before pushing new code into production.

Shadow comes with a UI that allows users to monitor the stream of requests live.

Requirements

  1. Java 1.6+
  2. SBT 0.12.1+

Building

  1. Clone the repository: git clone https://github.com/twilio/shadow.git
  2. Build the JAR: sbt assembly

This generates an assembled Jar with all dependencies in /target/shadow-assembly-<VERSION>.jar

Installing

No escalated privledges needed unless you are using privileged ports. Just copy the Jar built in the previous step on to your existing server.

Configuring

Make a copy of the example configuration application.conf.example and change the settings to fit your environment.

Shadow specific configuration

akka {
  loglevel = INFO
}

shadow {
    version = "0.1-SNAPSHOT"

    proxy-host = localhost
    proxy-port = 8000

    ui-host = localhost
    ui-port = 8081

    results-log = "logs/results.log"

    trueServer {

        host = "httpbin.org"
        port = 80

        query-param-overrides {
        }

        form-param-overrides {
        }

    }

    shadowServer {

        host = "httpbin.org"
        port = 80

        query-param-overrides {
            test = ["hello"]
        }

        form-param-overrides {
            test2 = ["world"]
        }

    }
}

spray.can.server {
  server-header = shadow-server/${shadow.version}
  request-timeout = 15s
  stats-support = true
}

spray.can.client {
    user-agent-header = shadow/${shadow.version}
}

Running

Running java -jar -Dconfig.file=application.conf shadow-assembly-<VERSION>.jar will start the server in the foreground.

We recommend using a supervisor such as jsvc or runit to manage running shadow

Be default, the UI can be accessed at http://localhost:8081

Testing

Tests are found under src/main/test/scala/

To run them, use: sbt test

Build Status

Build Status

Based upon

主要指标

概览
名称与所有者twilio/shadow
主编程语言JavaScript
编程语言Scala (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2012-10-17 03:49:02
推送于2023-04-10 02:12:52
最后一次提交2013-04-28 12:07:52
发布数0
用户参与
星数330
关注者数24
派生数30
提交数50
已启用问题?
问题数5
打开的问题数3
拉请求数1
打开的拉请求数4
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?