Skip to main content

Posts

Showing posts from August, 2017

GoReplay - Testing Your Site with Actual Traffic

Goal:   In these article we gonna learn How to capture your Real Time traffic from production and reuse it at your testing/development environment. Prerequisite: One web server running, or If you are just playing around then you can run goreplay test ftp server. Let's Begin Load Testing for site serving millions user wasn't be that easy before I came to know GoReplay . Here I am not gonna explain you How great go replay is, You will automatically get to know after following steps above step to capture and replay your request logs. FYI GoReplay capture logs from tcpdump. Installation: Download zip file from there git repo and unzip it. # create a directory mkdir ~/goreplay # go to directory you created cd ~/goreplay # download tar file from goreplay git repo wget https://github.com/buger/goreplay/releases/download/v0.16.1/gor_0.16.1_x64.tar.gz # unzip it tar -xf gor_0.16.1_x64.tar.gz After Unzipping Check GoReplay binary File is available in directory. Ca

Rename a git branch

By mistake If you have named a branch incorrectly and pushed this to the remote repository then you are at correct place. Rename your local branch. If you are on the branch you want to rename: git branch -m new-name If you are on a different branch: git branch -m old-name new-name Delete the old-name from remote and push new-name git push origin :old-name new-name Reset the upstream for new-name Switch to the branch and then git push origin -u new-name

How to delete a Git branch on Local and Remote

Goal: If you are done with your work and as a archival policy if you want to delete a branch from local as well as git server. This article can help you. Delete Branch on local git branch -D <Branch_Name> Delete Branch on server git branch :<Remote_server_Name><Branch_Name_on_Remote> Sample git branch -D deployed_feature git branch :origin deployed_feature