Skip to content

Commit

Permalink
Add mcbasher
Browse files Browse the repository at this point in the history
Add back a new mcbasher (built on folly this time) which generate
load to a memcached node

Usage:
    mcbasher --host localhost \
             --user myuser \
             --password mypassword \
             --bucket mybucket \
             --connections 100 \
             --threads 4
             --pipeline \
             --ooo

Creates 4 threads with 100 connections using OoO and pipelines
data to hammer the server.

Instead of --pipeline and --ooo one may use --disconnect which
insert disconnects into the mix of operations to send to the
server.

Change-Id: I6b3845f70da35f816de7d331a4b3683d2e579716
Reviewed-on: https://review.couchbase.org/c/kv_engine/+/165330
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
  • Loading branch information
trondn authored and daverigby committed Dec 13, 2021
1 parent 2499d82 commit 9142cb0
Show file tree
Hide file tree
Showing 3 changed files with 635 additions and 0 deletions.
1 change: 1 addition & 0 deletions programs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ add_subdirectory(dcpdrain)
add_subdirectory(dcplatency)
add_subdirectory(engine_testapp)
add_subdirectory(kvlite)
add_subdirectory(mcbasher)
add_subdirectory(mcctl)
add_subdirectory(mcifconfig)
add_subdirectory(mclogsplit)
Expand Down
4 changes: 4 additions & 0 deletions programs/mcbasher/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cb_add_test_executable(mcbasher mcbasher.cc $<TARGET_OBJECTS:mc_program_utils>)
kv_enable_pch(mcbasher)
target_link_libraries(mcbasher PRIVATE mc_client_connection mcd_util platform)
add_sanitizers(mcbasher)
Loading

0 comments on commit 9142cb0

Please sign in to comment.