Skip to content

Instantly share code, notes, and snippets.

View AdheipSingh's full-sized avatar
📚
Focusing

AdheipSingh AdheipSingh

📚
Focusing
  • Pind India
View GitHub Profile
@AdheipSingh
AdheipSingh / HelloWorld.java
Last active February 6, 2018 20:13
Simple HelloWorld Java Program
package com.sanumala;
public class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello adheip @ GitHub!");
}
}
@AdheipSingh
AdheipSingh / Jaegar-Traces
Last active January 29, 2020 11:30
Jaegar Traces
{
"data": [
{
"traceID": "6a0795da25410ad4",
"spans": [
{
"traceID": "6a0795da25410ad4",
"spanID": "6fde6f7d72942984",
"operationName": "details.default.svc.cluster.local:9080/*",
"references": [
@AdheipSingh
AdheipSingh / jaegar-traces
Created January 29, 2020 15:20
Concurrent Requests ranging 50 - 500.
{
"data": [
{
"traceID": "dc516d25315cb28c33701f9dd37dee22",
"spans": [
{
"traceID": "dc516d25315cb28c33701f9dd37dee22",
"spanID": "33701f9dd37dee22",
"operationName": "productpage.default.svc.cluster.local:9080/productpage",
"references": [],
@AdheipSingh
AdheipSingh / TraceStruct
Created January 29, 2020 15:35
Trace represents as user defined data type
type Trace struct {
Data []struct {
TraceID string `json:"traceID"`
Spans []struct {
TraceID string `json:"traceID"`
SpanID string `json:"spanID"`
OperationName string `json:"operationName"`
References []interface{} `json:"references"`
StartTime int64 `json:"startTime"`
Duration int `json:"duration"`
apiVersion: "druid.apache.org/v1alpha1"
kind: "Druid"
metadata:
name: tiny-cluster
spec:
image: apache/incubator-druid:0.16.0-incubating
startScript: /druid.sh
securityContext:
fsGroup: 1000
runAsUser: 1000
@AdheipSingh
AdheipSingh / druid-operator.yaml
Created February 20, 2020 11:50
druid-operator.yaml
---
apiVersion: druid.apache.org/v1alpha1
kind: Druid
metadata:
name: my-druid
spec:
common.runtime.properties: |-
#
# Extensions
#
@AdheipSingh
AdheipSingh / coordinator.yaml
Created February 20, 2020 14:33
coordinator.yaml
adheip@DevOps:~/juspay/druid-operator/examples$ k get sts druid-my-druid-coordinators -n druid -o yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
druidOpResourceHash: N3ctP81z9eXQb/sJd73iRaLT0Ro=
creationTimestamp: 2020-02-20T14:26:09Z
generation: 1
labels:
app: druid
@AdheipSingh
AdheipSingh / druid-pay.yaml
Last active August 28, 2020 19:07
druid-pay.yaml
apiVersion: druid.apache.org/v1alpha1
kind: Druid
metadata:
name: cluster
spec:
podAnnotations:
iam.amazonaws.com/role: arn:aws:iam::91243143143423403742:role/my-role
env:
- name: AWS_REGION
value: ap-south-1
@AdheipSingh
AdheipSingh / ansible.yaml
Last active February 22, 2020 22:26
ansible.yaml
---
- name: LAUNCH AN EC2 INSTANCE
hosts: localhost
vars: ##################### THESE VARS WILL LAUNCH THE EC2 INSTANCE ################# ON LINE 56 57 58 MENTION THE AMI VARS #######################
region: us-east-1 ## The region you want to provision the EC2
ec2_key_name: Ansible-Keypair ## The key which shall launch the instance
instance_type: t2.micro ## Instance Type
image: ## Image ID for which Base OS
subnet_id: ## The subnet id in which the ec2 shall be launched
security_group_name: launch-wizard-2 ## Name of security group which shall be allocated to the instance launched
apiVersion: druid.apache.org/v1alpha1
kind: Druid
metadata:
name: cluster
spec:
podAnnotations:
iam.amazonaws.com/role: arn:aws:iam::9806916998632986329863220374:role/dsfdghjkl
env:
- name: AWS_REGION
value: ap-south-1