Skip to content

Instantly share code, notes, and snippets.

cpu requests cpu limits cfs_quota cfs_period
1 1 100,000 (us) 100,000 (us)
1 2 200,000 (us) 100,000 (us)
0.5 (500m) 0.5 50,000 (us) 100,000 (us)
0.5 NONE -1 100,000 (us)

Quota and period are found in /sys/fs/cgroup/cpu/cpu.cfs_quota_us and /sys/fs/cgroup/cpu/cpu.cfs_period_us respectively.

Basically, quota is set by the limits. The formula is:

commands:
- description: Updates the commands to their latest version
group: Meta
name: update
registry: 168995956934.dkr.ecr.us-west-2.amazonaws.com/macondo:update-${version}
requires_vpn: false
version: 0.1.0
volumes:
- ~:/workspace
- description: Builds/publishes a command to ECR
Logged in as: dr.who
Application
About
Jobs
Tools
Log Type: jobmanager.err
Log Upload Time: Mon Feb 26 01:33:44 +0000 2018
{
"component": "chart",
"args": {"type": "pie"},
"data": []
}

Keybase proof

I hereby claim:

  • I am casidiablo on github.
  • I am knur (https://keybase.io/knur) on keybase.
  • I have a public key ASA7l1MrR4fnl5pP4C3udWgpve14sz0rVklYQmgJYltu4wo

To claim this, I am signing this object:

apply plugin: 'bintray'
apply plugin: 'maven-publish'
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
mavenJava(MavenPublication) {
`C-c M-c` launch nrepl
@casidiablo
casidiablo / jar-to-local-mvn.md
Created November 21, 2013 21:19
How to publish a jar to your local maven
mvn install:install-file \
  -Dfile=OoyalaSDK.jar \
  -DgroupId=com.ooyala \
  -DartifactId=ooyala-sdk \
  -Dpackaging=jar -Dversion=2.1.0
@casidiablo
casidiablo / ABC.md
Last active December 14, 2015 10:39
Json Parse Benchmark

Correctness and Performance benchmark for various Java-based JSON libraries

Run the tests

You have to install vogar in order to run the tests againts an Android phone. Once you have set it up, you can run the tests like this:

vogar --benchmark \

--classpath ParseBenchmarkData.zip \

import android.content.Context;
import android.text.SpannableStringBuilder;
import android.text.Spanned;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.TextView;
import com.github.jobs.BuildConfig;
import java.util.ArrayList;
import java.util.List;