Skip to content

Instantly share code, notes, and snippets.

View 1010sachin's full-sized avatar

Sachin Gupta 1010sachin

  • AWS
  • San Francisco, CA
View GitHub Profile
@1010sachin
1010sachin / scrummin.md
Last active September 11, 2018 22:22
Post the scrummary report to confluence

Post scrummary report to Confluence

It is assumed that the user of this script has:

  1. Manta client installed locally. (includes json) (https://apidocs.joyent.com/manta/index.html)
  2. Access to Joyent_Dev account (in order to get the scrummary report).

Instructions to get the scrummary report

From the terminal, get the scrummary report, called as all1999.html and store it locally, as:

@1010sachin
1010sachin / HistogramTimers.md
Last active February 4, 2019 23:39
Histogram Reservoir Implementations

Problem Statement

By default, a Timer uses an Exponentially Decaying Reservoir. This implementation of the timer is used to calculate the the rate, and timings (with percentiles) of manta HTTP requests and reported via JMX. We are, hereby, trying to list out the issues concerning the design and implementation of the Exponentially Decaying Reservoir (EDR) and alternative solutions in the form of Sliding Time Window Reservoir and it's enhanced version Sliding Time Window Array Reservoir

Exponentially Decaying Reservoir (EDR)

According to the definition, an EDR *produces quantiles which are representative of (roughly) the las

@1010sachin
1010sachin / heapDump.md
Last active March 1, 2019 19:19
HeapDump from VM 64.30.138.24

HeapDump from VM 64.30.138.24

The heap dump is analyzed using Eclipse Memory Analyzer tool.

Overview Page:

Leak Report of LinkedHashMap:

@1010sachin
1010sachin / triton-info-error.txt
Last active April 10, 2019 00:19
triton info error
triton -v info
{"name":"triton","hostname":"joyentmac12331.local","pid":4488,"level":10,"config":{"cacheDir":"cache","profile":"jpc_manta_monitor","oldProfile":"us-sw-1","_user":{"profile":"jpc_manta_monitor","oldProfile":"us-sw-1"},"_defaults":{"cacheDir":"cache"},"_configDir":"/Users/sachingupta/.triton"},"msg":"loaded config","time":"2019-04-10T00:13:09.887Z","src":{"file":"/Users/sachingupta/.nvm/versions/node/v8.11.0/lib/node_modules/triton/lib/cli.js","line":271,"func":"getConfig"},"v":0}
{"name":"triton","hostname":"joyentmac12331.local","pid":4488,"level":10,"profile":{"url":"https://us-sw-1.api.joyent.com","account":"manta_monitor","keyId":"ea:6e:21:00:f8:89:b6:75:6b:f0:3b:90:67:26:94:5b","name":"jpc_manta_monitor"},"msg":"loaded profile","time":"2019-04-10T00:13:09.889Z","src":{"file":"/Users/sachingupta/.nvm/versions/node/v8.11.0/lib/node_modules/triton/lib/cli.js","line":308,"func":"getProfile"},"v":0}
{"name":"triton","hostname":"joyentmac12331.local","pid":4488,"level":10,"cacheDir":"/Users/sach
@1010sachin
1010sachin / buildMantaMonitorJava11.md
Last active October 24, 2019 19:00
SOLVED: Building manta-monitor with javac with error prone on JAVA 11

Problem Statement

Building the joyent/manta-monitor with JAVA 11, out of the box results in complie time errors something like:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project manta-monitor: Compilation failure
[ERROR] /Users/sachingupta/Documents/Joyent/java-manta-monitor/manta-monitor/src/main/java/com/joyent/manta/monitor/JettyServerBuilderModule.java:[18,8] cannot access java.lang.Object
[ERROR]   bad class file: /modules/java.base/java/lang/Object.class
[ERROR]     class file has wrong version 55.0, should be 53.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.

Keybase proof

I hereby claim:

  • I am 1010sachin on github.
  • I am 1010sachin (https://keybase.io/1010sachin) on keybase.
  • I have a public key ASBW35f4Gg0qVXiXmIJ7uQKOGRUKBHlZJEZ31DzITnsuEQo

To claim this, I am signing this object: