Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MB-5307: deleted obsolete & outdated tests

Change-Id: I73528ec207bf2abfae66bf1a34671f1e4a1fa184
Reviewed-on: http://review.couchbase.org/19440
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
  • Loading branch information...
commit 97167d3db02da46cac28c1ad3d7efa5d62f8d1be 1 parent 7d83611
@alk alk authored aartamonau committed
Showing with 0 additions and 297 deletions.
  1. +0 −189 test/Makefile
  2. +0 −108 test/test-ffm.rb
View
189 test/Makefile
@@ -1,189 +0,0 @@
-# In console 1...
-# make prep
-#
-# In console 2...
-# cd .. && ./cluster_run.sh
-#
-# In console 1...
-# make usual
-#
-# Some other some useful commands...
-# make all-server-list
-# make all-bucket-list
-#
-NODES=4
-
-prep: clean
- (cd .. && ./test/gen_cluster_scripts.rb $(NODES))
-
-clean:
- rm -rf ../data ../config ../logs ../Mnesia*
-
-# Initialize a just started cluster, with a default bucket,
-# with all nodes joined and rebalanced.
-#
-usual: all-cluster-init bucket-create joiners-add rebalance
-
-# ---------------------------------------------------
-
-# Run a membase CLI command against every node.
-#
-DO=error
-
-all-rest-do:
- @for ((i = $(REST_PORT); i < $(REST_PORT) + $(NODES); i++)); do \
- $(MAKE) REST_PORT=$$i $(DO); \
- done
-
-all-memcached-do:
- @for ((i = $(MEMCACHED_PORT); i < $(MEMCACHED_PORT) + 2 * $(NODES); i = i + 2)); do \
- $(MAKE) MEMCACHED_PORT=$$i $(DO); \
- done
-
-# ---------------------------------------------------
-
-all-cluster-init:
- $(MAKE) all-rest-do NODES=$(NODES) DO=cluster-init
-
-all-server-list:
- $(MAKE) all-rest-do NODES=$(NODES) DO=server-list
-
-all-server-info:
- $(MAKE) all-rest-do NODES=$(NODES) DO=server-info
-
-all-bucket-list:
- $(MAKE) all-rest-do NODES=$(NODES) DO=bucket-list
-
-all-stats-all:
- $(MAKE) all-memcached-do NODES=$(NODES) DO=stats-all
-
-all-stats-dispatcher:
- $(MAKE) all-memcached-do NODES=$(NODES) DO=stats-dispatcher
-
-all-stats-tap:
- $(MAKE) all-memcached-do NODES=$(NODES) DO=stats-tap
-
-all-stats-timings:
- $(MAKE) all-memcached-do NODES=$(NODES) DO=stats-timings
-
-all-stats-reset:
- $(MAKE) all-memcached-do NODES=$(NODES) DO=stats-reset
-
-# ---------------------------------------------------
-
-# Run a membase CLI command against joining nodes.
-#
-joiners-do:
- @for ((i = $(REST_PORT) + 1; i < $(REST_PORT) + $(NODES); i++)); do \
- $(MAKE) JOINER_ADDR=127.0.0.1:$$i $(DO); \
- done
-
-joiners-add:
- $(MAKE) joiners-do NODES=$(NODES) DO=server-add
-
-joiners-remove:
- $(MAKE) joiners-do NODES=$(NODES) DO=server-remove
-
-# ---------------------------------------------------
-
-# Helper targets for common membase-cli commands.
-#
-MEMBASE_CLI=../../membase-cli/couchbase
-MANAGEMENT=../../ep-engine/management
-
-REST_USER=Administrator
-REST_PASSWORD=111111
-REST_HOST=127.0.0.1
-REST_PORT=9000
-
-cluster-init:
- $(MEMBASE_CLI) cluster-init -c $(REST_HOST):$(REST_PORT) \
- --cluster-init-username=$(REST_USER) \
- --cluster-init-password=$(REST_PASSWORD)
-
-server-list:
- $(MEMBASE_CLI) server-list -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD)
-
-server-info:
- $(MEMBASE_CLI) server-info -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD)
-
-server-add:
- $(MEMBASE_CLI) server-add -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD) \
- --server-add=$(JOINER_ADDR) \
- --server-add-username=$(REST_USER) \
- --server-add-password=$(REST_PASSWORD)
-
-server-remove:
- $(MEMBASE_CLI) rebalance -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD) \
- --server-remove=$(JOINER_ADDR)
-
-rebalance:
- $(MEMBASE_CLI) rebalance -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD) \
-
-rebalance-stop:
- $(MEMBASE_CLI) rebalance-stop -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD) \
-
-rebalance-status:
- $(MEMBASE_CLI) rebalance-status -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD) \
-
-BUCKET=default
-BUCKET_TYPE=membase
-BUCKET_PASSWORD=
-BUCKET_RAMSIZE=200
-BUCKET_REPLICA=1
-
-bucket-create:
- $(MEMBASE_CLI) bucket-create -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD) \
- --bucket=$(BUCKET) \
- --bucket-type=$(BUCKET_TYPE) \
- --bucket-password=$(BUCKET_PASSWORD) \
- --bucket-ramsize=$(BUCKET_RAMSIZE) \
- --bucket-replica=$(BUCKET_REPLICA)
-
-bucket-list:
- $(MEMBASE_CLI) bucket-list -c $(REST_HOST):$(REST_PORT) \
- -u $(REST_USER) -p $(REST_PASSWORD)
-
-# -----------------------------------------------
-
-MEMCACHED_HOST=127.0.0.1
-MEMCACHED_PORT=12000
-
-stats-all:
- $(MANAGEMENT)/stats $(MEMCACHED_HOST):$(MEMCACHED_PORT) all
-
-stats-dispatcher:
- $(MANAGEMENT)/stats $(MEMCACHED_HOST):$(MEMCACHED_PORT) dispatcher
-
-stats-hash:
- $(MANAGEMENT)/stats $(MEMCACHED_HOST):$(MEMCACHED_PORT) hash
-
-stats-tap:
- $(MANAGEMENT)/stats $(MEMCACHED_HOST):$(MEMCACHED_PORT) tap
-
-stats-timings:
- $(MANAGEMENT)/stats $(MEMCACHED_HOST):$(MEMCACHED_PORT) timings
-
-stats-reset:
- $(MANAGEMENT)/stats $(MEMCACHED_HOST):$(MEMCACHED_PORT) reset
-
-# -----------------------------------------------
-
-test-rebalance-loop: usual
- for i in {0..10000000}; do \
- echo ------------------------- $$i - `date`; \
- $(MAKE) joiners-remove; \
- sleep 2; \
- $(MAKE) joiners-add; \
- sleep 2; \
- $(MAKE) rebalance; \
- sleep 2; \
- done;
View
108 test/test-ffm.rb
@@ -1,108 +0,0 @@
-#!/usr/bin/env ruby
-
-# Script to help setup a manual test of fast-forward-map.
-#
-# Prerequisites...
-#
-# - A medium-sized cluster -- 10 or more nodes, already joined.
-# RightScale deployments were okay for this.
-#
-# This script helps grab that cluster's server-list and
-# compute some keys that will be moved during a rebalancing.
-#
-# You should follow the emitted steps to reset the cluster back to the
-# single, start node, and follow the remaining steps.
-#
-u = 'Administrator'
-p = 'password'
-
-# The node to be treated as the first or start node of the cluster...
-#
-start = ARGV[0] || '50.18.65.236,10.168.81.238' # public-ip,private-ip
-
-pub_start = start.split(',')[0]
-pri_start = start.split(',')[-1]
-
-keys = "a b c d e f g h i j k l m".split(" ")
-
-bin = "/opt/membase/bin"
-cup = "-c #{pub_start} -u #{u} -p #{p}"
-
-servers = `#{bin}/membase server-list #{cup}`
-servers = servers.split("\n").map {|x| x.split(' ')[0].sub('ns_1@', '')}.sort()
-others = servers - [pri_start]
-
-c = "#{bin}/membase rebalance #{cup}"
-others.each {|x| c = c + " --server-remove=#{x}:8091"}
-remove_others = c
-
-c = "#{bin}/membase rebalance #{cup}"
-others.each {|x| c = c + " --server-add=#{x}:8091"}
-add_others = c
-
-vbt = "curl http://#{u}:#{p}@#{pub_start}:8091/pools/default/buckets/default" +
- " | #{bin}/vbuckettool - #{keys.join(' ')}"
-
-# The vbuckettool output lines look like...
-#
-# key: a vBucketId: 183 master: 10.161.27.203:11210 replicas: 10.166.111.144:11210
-#
-# mkeys will look like an array of ["key", "host"].
-#
-mkeys = `#{vbt}`
-mkeys = mkeys.split("\n").
- map {|x| [x.split(' ')[1], x.split(' ')[5].split(':')[0]] }.
- select {|x| x[1] != pri_start }
-
-# ----------------------------------------------
-
-print "public start node: #{pub_start}\n"
-print "private start node: #{pri_start}\n"
-print "-------\n"
-
-print "0) fyi, here are all the servers in the cluster...\n"
-print servers.join("\n")
-print "\n-------\n"
-
-print "1) first, shrink the cluster back down to the one, start node...\n"
-print "remove_others:\n#{remove_others}\n"
-print "\n-------\n"
-
-print "2) next, insert some data...\n"
-keys.each do |k|
- print "printf \"set #{k} 0 0 1\\r\\n#{k}\\r\\n\" | nc #{pub_start} 11211\n"
-end
-print "\n-------\n"
-
-print "3) fyi, these are the keys that will move...\n"
-print mkeys.join("\n")
-print "\n-------\n"
-
-print "4) fyi, here are the inital cmd_get's...\n"
-servers.each do |s|
- print "#{bin}/mbstats #{s}:11210 all | grep cmd_get\n"
-end
-print "\n-------\n"
-
-print "5) next, rebalance back in all the nodes...\n"
-print "add_others:\n#{add_others}\n"
-print "\n-------\n"
-
-print "5.1) concurrently with #5, do some get's (count how many of these you do)...\n"
-keys.each do |k|
- print "printf \"get #{k}\\r\\n\" | nc #{pub_start} 11211\n"
-end
-print "\n-------\n"
-
-print "6) then, these cmd_get's should be non-zero...\n"
-([pub_start] + (mkeys.map {|x| x[1]})).each do |s|
- print "#{bin}/mbstats #{s}:11210 all | grep cmd_get\n"
-end
-print "\n-------\n"
-
-print "7) and, these cmd_get's should be 0...\n"
-(others - (mkeys.map {|x| x[1]})).each do |s|
- print "#{bin}/mbstats #{s}:11210 all | grep cmd_get\n"
-end
-print "\n-------\n"
-
Please sign in to comment.
Something went wrong with that request. Please try again.