Skip to content

Instantly share code, notes, and snippets.

@rayhassan
rayhassan / kafka-flume-spark-notes
Last active July 27, 2018 12:36
Kafka , Flume, Spark sizing notes
Flume
=====
ingest : number or sources of origin for events / number of events (per source) <<<<* this is required
R.o.T : one aggregator for every 4-16 agents
so using the above info work from outer tier to final inner tier - and we know final destination of events : hdfs ?
@rayhassan
rayhassan / sybase-IQ-16.1-notes
Created July 27, 2018 12:31
Sybase IQ 16.1 - Simplex creation and Multiplex conversion
The devices were partitions that served as a SAP Sybase IQ consistency group, and mapped to an EMC VNX 5700 with 9 SSDs configured to provide 20 x 35 GB devices. The devices were mapped to dbspace files as follows:
2 devices for shared IQ_SYSTEM_MAIN
12 devices for shared IQ_USER_MAIN
2 devices for shared IQ_SHARED_TEMP
2 devices for node 1 IQ_SYSTEM_TEMP
2 devices for node 2 IQ_SYSTEM_TEMP
1 device (450 GB) for ext4 filesystem used to host source load data (node 1)
brw-rw----. 1 root disk 8, 16 Jul 17 08:17 /dev/sdb
o get k8s cluster status
# kubectl --kubeconfig ./kubeconfig cluster-info
Kubernetes master is running at https://10.68.68.108:443
Elasticsearch is running at https://10.68.68.108:443/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy
Kibana is running at https://10.68.68.108:443/api/v1/namespaces/kube-system/services/kibana-logging/proxy
KubeDNS is running at https://10.68.68.108:443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
@rayhassan
rayhassan / ms-disk-tune.txt
Created November 20, 2017 12:50
Microsoft DIsk Tuning Notes ...
Basic Disk Partition Offsets: wmic.exe
Windows can be interrogated for disk-related information via Windows Management Instrumentation (WMI). A straightforward method for obtaining partition starting offsets of Windows basic disks is this Wmic.exe command.
Command Line Syntax
wmic partition get BlockSize, StartingOffset, Name, Index
The value for Index is the same as disk number in the Disk Management Microsoft Management Console (MMC) snap-in (Diskmgmt.msc); wmic volume can also be used to map disk indexes and drive letters.
@rayhassan
rayhassan / fstrim.txt
Created November 14, 2017 11:05
TRIM/fstrim notes
The TRIM command enables an operating system to notify the SSD of pages which no longer contain valid data. For a file deletion operation, the operating system will mark the files sectors as free for new data, then send a TRIM command to the SSD. After trimming, the SSD will not preserve any contents of the block when writing new data to a page of flash memory, resulting in less write amplification (fewer writes), higher write throughput (no need for a read-erase-modify sequence), thus increasing drive life.
Different SSDs implement the command somewhat differently, so performance can vary.[3][8]
Trim tells the SSD to mark a LBA region as invalid and subsequent reads on the region will not return any meaningful data. However, the data could still reside on the flash internally.
are my disks TRIM enabled
lsblk -o MOUNTPOINT,DISC-MAX,FSTYPE
@rayhassan
rayhassan / Nutanix DVP demo script
Last active February 9, 2018 10:37
Nutanix Docker Volume Plugin (DVP) demo run through
demo notes for Docker volume driver
o cluster VIP / Dataservices VIP
o clone Docker host VM from gold image in AHV (set hostname vis hostnamectl set-hostname)
o login and install Docker Engine (https://docs.docker.com/engine/installation/linux/docker-ce/centos/)
o enable/start docker service
@rayhassan
rayhassan / 11g-install-notes.txt
Created May 11, 2017 13:38
Oracle 11G install notes + ASM - Virtualised
http://packages.vmware.com/tools/esx/5.5u1/repos/index.html
yum install http://packages.vmware.com/tools/esx/5.5u1/repos/vmware-tools-repo-RHEL6-9.4.5-1.el6.x86_64.rpm
yum install vmware-tools-esx-nox
20GB additional harddisk - for /u01/app/oracle
/dev/sdb1 20G 44M 19G 1% /u01/app/oracle
@rayhassan
rayhassan / calculating-IOPS.txt
Created May 11, 2017 13:37
Calculating IOPS ....
IO Performance:
--------------
NCQ - Native Cmd Queueing - SATA II - 32 cmds
TCQ - Tagged Cmd Queuing - SCSI 2 - 216 cmds possible (64 cmds supported by most disk queues)
- Reordering of cmds when requests for sectors spaced far from one another.
- attempts to reduce disk seek time and rotation latency by optimising order in which sectors are found.
@rayhassan
rayhassan / REST-API-notes.txt
Created May 11, 2017 13:35
REST API notes for Athens Tech Summit
2048afa6-a785-4aa8-b2b1-6124114ab91d
"uuid": "661cd354-33dc-4cdd-8874-9875fc7834b3",
"name": "Windows Server 2012 R2",
"deleted": false,
"storage_container_id": 1023,
"storage_container_uuid": "c99819f0-bb38-4a5e-b473-48371ef8561c",
"logical_timestamp": 2,
"image_type": "DISK_IMAGE",
"vm_disk_id": "7eb94d44-8d8d-4da0-82cd-6da4103a14af",
@rayhassan
rayhassan / DVP-notes.txt
Created May 11, 2017 13:32
Nutanix Docker Volume plugin notes - v2 API
o install Docker
sudo yum install -y yum-utils
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum install docker-ce