Skip to content

Instantly share code, notes, and snippets.

#include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
#define MY_UUID {0xC3, 0x0D, 0xBA, 0xF1, 0x5F, 0x6F, 0x4F, 0x22, 0xBA, 0xAA, 0x8C, 0x2A, 0x96, 0x8C, 0xFC, 0x28}
PBL_APP_INFO(MY_UUID, "VMworld", "Cowger", 0x2, 0x0, INVALID_RESOURCE, APP_INFO_WATCH_FACE);
mapping = BlockDeviceMapping()
for i in range(0,2):
t = BlockDeviceType()
t.virtual_name = 'ephemeral{0}'.format(i)
mapping['/dev/sd{0}'.format(chr(ord('b')+i))] = t
return mapping
/**
******************************************************************************
* @file application.cpp
* @authors Satish Nair, Zachary Crockett and Mohit Bhoite
* @version V1.0.0
* @date 05-November-2013
* @brief Tinker application
******************************************************************************
Copyright (c) 2013 Spark Labs, Inc. All rights reserved.
def get_subs(thething, level=0):
if level == 0:
_all_objects.clear()
#print "cleared all objects"
if type(thething).__name__ not in _all_objects.keys():
_all_objects[type(thething).__name__] = []
#print "added key " + type(thething).__name__
# if we have a datacenter object, there are specific subobjects
if type(thething) is pyVmomi.types.vim.Datacenter:
{"cluster": ["(vim.ClusterComputeResource.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n totalCpu = 95968,\n totalMemory = 137402155008L,\n numCpuCores = 32,\n numCpuThreads = 32,\n effectiveCpu = 95968,\n effectiveMemory = 119744L,\n numHosts = 8,\n numEffectiveHosts = 8,\n overallStatus = 'green',\n currentFailoverLevel = -1,\n admissionControlInfo = <unset>,\n numVmotions = 0,\n targetBalance = -1000,\n currentBalance = -1000,\n currentEVCModeKey = <unset>,\n dasData = <unset>\n}"], "host": ["(vim.host.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n host = 'vim.HostSystem:host-29',\n hardware = (vim.host.Summary.HardwareSummary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n vendor = 'HP',\n model = 'ProLiant DL380 G5',\n uuid = '33393138-3335-5553-4537-32324e35394b',\n otherIdentifyingInfo = (vim.host.SystemIdentificationInfo)
{"cluster": ["(vim.ClusterComputeResource.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n totalCpu = 95968,\n totalMemory = 137402155008L,\n numCpuCores = 32,\n numCpuThreads = 32,\n effectiveCpu = 95968,\n effectiveMemory = 119744L,\n numHosts = 8,\n numEffectiveHosts = 8,\n overallStatus = 'green',\n currentFailoverLevel = -1,\n admissionControlInfo = <unset>,\n numVmotions = 0,\n targetBalance = -1000,\n currentBalance = -1000,\n currentEVCModeKey = <unset>,\n dasData = <unset>\n}"], "host": ["(vim.host.Summary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n host = 'vim.HostSystem:host-29',\n hardware = (vim.host.Summary.HardwareSummary) {\n dynamicType = <unset>,\n dynamicProperty = (vmodl.DynamicProperty) [],\n vendor = 'HP',\n model = 'ProLiant DL380 G5',\n uuid = '33393138-3335-5553-4537-32324e35394b',\n otherIdentifyingInfo = (vim.host.SystemIdentificationInfo)
__author__ = 'mcowger'
import hashlib
import sys
from progress.bar import Bar
import os
import timeit
import random
import logging
__author__ = 'mcowger'
import csv
import pprint
from datetime import datetime
data = []
sell_rate = 0.03
yearly_increase_rate = 1.029
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: dashboard-viewonly
rules:
- apiGroups:
- ""
resources:
- configmaps

Start with the second half of this article to understand how they differ:

https://www.ontrack.com/blog/2018/02/22/the-evolution-of-storage-file-storage-vs-block-storage-vs-object-storage-part-1/

When it comes to how to evaluate, it varies by system:

Block: (Sometimes called SAN, but thats not really correct) Usually people here will focus on a couple things:

  • Raw Performance: How many operations per second can I execute? Usually called ‘IOPS’, we are talking ranges of a couple thousand for low end home-type systems, all the way up to millions of operations per second for high end systems. How many you need depends on your application