Skip to content

Instantly share code, notes, and snippets.

@jack-tjia
jack-tjia / update.sh
Created July 19, 2019 17:48
Script to update jenkins master
#!/bin/sh
################################################################################
# This script will upgrade Jenkins.
#
# It assumes the Jenkins server is started with java -jar jenkins.war command.
# The script will backup existing Jenkins war file and configurations.
# After upgrade is done, Jenkins server will be restarted.
#
# Check upgrade.sh -h to get help.
@jack-tjia
jack-tjia / MongoDB Performance Tests.md
Last active October 4, 2017 13:34
MongoDB Performance Tests

Test Machines

  • M1: Macbook Pro, 2.3G Intel Core i7 (8 cores), 16G 1600MHz DDR3 memory, SSD, OS X Seirra v10.12.5, with Percona Server for MongoDB v3.4.4-1.4
  • M2: Dell Inspiron 1520, Intel Core 2 Due CPU T7250 @ 2.0G x 2, 2G memory, Ubuntu 16.04 LTS, with Percona Server for MongoDB v3.4.4-1.4

Test Scripts

  • mongo-perf, is a micro benchmarking tool for the MongoDB server. It measures throughput of commands with regards to the number of threads. This tool is based on mongo benchRun command, which is designed as a QA baseline performance measurement tool; it is not designed to be a "benchmark".
  • mongoperf is a utility to check disk I/O performance independently of MongoDB.