Skip to main content

Posts

Showing posts from 2017

Kumaoni Song - Aai hai hai re mizata o hoi hoi re mizata

Maachhi lai.... fatak maari ya baluwa reta ma.... O hausiya chhaji raye ya hariya khet ma...... Rangeeli bindi ghaghari kaai dhoti laal kinaar waai Rangeeli bindi ghaghari kaai dhoti laal kinaar waai Aai hai hai re mizata o hoi hoi re mizata Aai hai hai re mizata o hoi hoi re mizata Ki mukhi pyoli fuli waai ya aankham,, ya aankham kaai feriya syayi aai hai hai re mizata oi hoi hoi re mizata  aai hai hai re mizata oi hoi hoi re mizata  Ek haath datuli chhe ek haath aina ek haath.......... ek haath datuli chha ek haath aina hai ek haath aina Nau paat ghaghari para,,nau pati ghaghari para reshamiya chaina aai hai hai re mizata oi hoi hoi re mizata Rangeeli bindi ghaghari kaai dhoti laal kinar waai aai hai hai re mzata oi hoi hoi re miza...ta Naak main jhardaar nathuli galadi ma tora Naak main jhardaar nathuli galadi ma tora hai galadi main tora Jhamkanai pajeb chha,,jhamkanai pajeb chha o meri chakora aai hai re mizata o hoi hoi re mizata O rangeeli O Rangeeli bindi

Pivotal Cloud Foundry Developer Certification - Log Drain

What is a log drain? Logs are treated as event stream in CF. CF executor with the help of Metron agent send the logs to Loggregator. Doppler is the responsible for forwarding the logs to different log drains i.e. system logs i.e. splunk, paper trail etc... Traffic controller publish the logs to developer terminal and websocket endpoint i.e. Firehose. Nozzles extract the logs form Firehose. How do you create one? By creating user provided service and assigning the log drain path. $ cf create-user-provided-service SERVICE-INSTANCE -l SYSLOG-URL $ cf bind-service YOUR-APP-NAME SERVICE-INSTANCE Why would you use it? To search, filter the logs, debug applications, create reports, find out top exceptions.  What is “Syslog”? System log

Pivotal Cloud Foundry Developer Certification - Application Security Groups

What is an application security group (ASG)? What does it do? Application Security Groups (ASGs) are a collections of egress rules that specify the protocols, ports, and IP address ranges where app or task instances send traffic.  The platform sets up rules to filter and log outbound network traffic from app and task instances. ASGs apply to both buildpack-based and Docker-based apps and tasks. Types of ASG's:   Default : public_networks, dns   Staging vs Staging   Platform-wide vs Space Scope Typical ASG's: ASG For access to dns DNS, either public or private public-networks Public networks, excluding IaaS metadata endpoints private-networks Private networks in accordance with  RFC-1918 load-balancers The internal Cloud Foundry load balancer and others internal-proxies Internal proxies internal-databases Internal databases How do you define one? cf create-security-group SECURITY-GROUP PATH-TO-RULES-FILE RULES file eg. [ { "protoco

Pivotal Cloud Foundry Developer Certification - Manifests

1. What is a manifest? What type of file is it? What is its purpose? Manifest is app configuration file which provides declarative way to define app push options. Manifest is a YAML file. Used for deployment of apps in CF. 2. How do you create a manifest? cf  create-app-manifest APP_NAME  [-p pathtofile] - Create an app manifest for an app that has been pushed successfully 3. If I specify a command in a manifest and on the command line what happens? If application build pack need app owner to specify the command to start an application. It overrides the build pack start command. 4. What happens if I don’t specify a deployment option at all? App will be installed with cf defaults i.e. default instances as 1, disk memory as 1GB, RAM as 512MB, default routes etc...

Pivotal Cloud Foundry Developer Certification - Managed and User-Provided Services

1. What is a service? Can you name some examples? Services are cloud native apps dependencies. Consider S ervice as a factory that delivers service instances. Two types: 1. Managed services Cloud Foundry offers a marketplace of services, from which users can provision reserved resources on-demand. Examples of resources services provide include databases on a shared or dedicated server, or accounts on a SaaS application.  Example: my-sql, rabbitmq, redis etc... 2. User provided services User provided services provides the metadata to connect to the system outside the cloud. These services are not available in market place. This are custom services i.e. connecting to your own external DB or any other service outside the cloud i.e. erp etc.. Command to list the service instances in your space: cf services To see details of particular service cf service SERVICE_INSTANCE_NAME What is the “marketplace”? Does it show all services?  The Pivotal Cloud Foundry (P

Pivotal Cloud Foundry Developer Certification - Logging, Scaling and High Availability

 How do you access application logs? cf logs APP_NAME cf start APP_NAME To see the logs of particular pcf sub system. cf logs APP_NAME | grep "API\|CELL" To exclude particular logs cf logs APP_NAME | grep -v "API\|CELL" To see application events i.e. start, stop, crash etc... cf events APP_NAME To display all the lines in the Loggregator buffer cf logs APP_NAME --recent  What are the components of the Loggregator system? Loggregator is the next generation system for aggregating and streaming logs and metrics from all of the user apps and system components in a Cloud Foundry deployment. Primary use: 1. Tail/dump logs using CLI.  2. Stream to 3rd party log archive and analysis service 3. Operators and admins can access Loggregator Firehouse, the combined stream from all the apps and metrics data. 4. Operators can deploy nozzle to the firehouse.  A nozzle is a component that monitors the Firehose for specified events and metrics,

Hindi Song/Poem - Kabhi kisi ko mukammal jahan nahi milta

Kabhi kisi ko mukammal jahan nahi milta, Kahi jami to kahi aasman nahi milta.. Jise bhi dekhiye wo apne aap me gum hai, Zuba mili hai magar hum-zuban nahi milta.. Bujha saka hai bhala kon waqt ke shole, Ye aisi aag hai jisme dhuwa nahi milta.. Tere jahaan me aisa nahi ke pyaar na ho, Jaha ummid ho iski waha nahi milta.. Kabhi kisi ko mukammal jahan nahi milta, Kahi jami to kahi aasman nahi milta..

Kumaoni Song/Poem - o ho re, aai hai re, o digau laali

o ho re, aai hai re, o digau laali chhani khariku main dhuwan laga hai o ho re o ho ye, o ho re, digau laali thand laagi bachhi ki gai panguri hai thand laagi bachhi ki gai panguri hai dwi dwan dwi dwan doodhi dhaar chhuti hai or duhane wale ka hiya bhara hai o oo ho ye o ho ye duhane wali ka hiya bhara hai o ho ye man dhwa thinali muskil se aama ka chulha jala hai muskil se aama ka chulha jala hai geeli hai lakdi ki geela dhuwan hai saag ke chaunka ke gaon mahka hai o ho ye o ho ye O ho re gandh nirali kaans ki thaal sa chand taka hai O eja o hibolali O ho ye shaam nirali o ho ye saanjh junyali Jaulya muruli ka shor laga hai O ho re o ho re laagi kutkyali

Kumaoni Song/Poem - Uttarakhand meri matrebhoomi

O Bhumi Teri Jai Jaikaara Myar Himaala O Bhumi Teri Jai Jaikaara Myar Himaala Khwar main koot tyaro hyu jhalako-2 Chhalaki kaali Gangai ki dhaara myara Himaala Himaala kaali Gangai ki dhaara myar Himaala Uttarakhand meri matrebhoomi Matrabhoomi ya meri pitrabhoomi O Bhoomi teri jai jai kaara myar Himaala Himaala teri jai jai kaara myar Himaala Tali tali taraai kuni-2 O kuni mali mali bhabara myar Himaala Himaala Mali mali bhabara myar Himaala Badari Kedara ka dwar chhana-2 Myara kankhal Hariwara myar Himaala Himaala kankhal Haridwara myar Himaala Kaali Dhauli ka bali chhali jaani-2 Bata naan thula kailasha myar himaala  Ho Bata naan thula kailasha myar Himaala Parvati ko myaro mait yen chha-2 Ho yen chha Shivjyu ko saurasa myar Himaala Himaala Shiv jyu ko saurasa myar Himaala Dhan mayedi mero yo janama-2 Himaala teri kokhi mahana myar Himaala Himaala teri kokhi mahana myar Himaala Mari jula to tari julo-2 O eju ail tyara baana myar Himaala-2 Himaala ail tyara

Kumaoni Song/Poem- Jeta ek din to aalo

chahe hum ni lya saku, chahe tum ni lya sako, magar kue na kue to lalo, yo din yeh duni mein, magar kue na kue to lalo, yo din yeh duni mein, o jeta ek din to aalo, din yo duni mein, o jeta ek din to aalo, din yo duni mein, jei din kathuli raat vyali, pau fatala ko kanalo, jei din kathuli raat vyali, pau fatala ko kanalo, o jeta ek din to aalo, din yo duni mein, o jeta ek din to aalo, din yo duni mein, o jeta kue na kue to lalo, yo din yeh duni mein, o jeta ek din to aalo, din yo duni mein

Kumaoni Song/Poem - Aaj ka dina

Aaj ka dina,  Tu holi ghar pana O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Ghutghutu maike, Batuli lagaye Ghutghutu maike, Batuli lagaye O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Aankho me aanshu, teri holi Mai pardesha, Tu ghar holi Ghutghutu maike, Batuli lagaye Ghutghutu maike, Batuli lagaye O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Aaj ka dina,  Tu holi ghar pana

Pivotal Cloud Foundry Developer Certification - Cloud Foundry Architecture

Can you name the main components running inside Cloud Foundry? Do you know what  each of them does? Main components are: Router :  routes incoming traffic to cloud controller or the hosted application in diego cell. It periodically queries the Diego bulletin board system to determine which cells and containers each application currently runs on. Using this router recomputes new routing table based on IP addresses of each cell VM and the host side port number for the cell's container. Oauth2 Server(UAA) and Login server work together to provide the identity management. Cloud controller and Diego brain: CC is responsible for application life-cycle and deployment. It directs the diego brain through CC Bridge component to coordinate individual Diego cells to stage and run applications. CC also maintains record of orgs, spaces, user roles and services. nsync : recieves the message from CC when user scales an app. It writes number of instances into a desiredLRP structure i

Pivotal Cloud Foundry Developer Certification - Command Line Utility cf

Do you know what cf command is used to perform the following: View organizations?      cf orgs View routes?     cf routes View spaces?     cf spaces View a single organization, route or space?     cf org ORG-NAME, cf check-route ROUTE, cf space SPACE Deploy an application?     cf push APP-NAME Select a space and/or organization to deploy to?     cf space SPACE-NAME, cf ORG ORG-NAME View logs?     cf logs APP_NAME Connect (login) to the Cloud Controller?     cf login Start, stop or restart an application?     cf start APP-NAME, cf stop APP-NAME, cf restart APP-NAME What does cf target do? What information does it give you?     cf target [-o ORG] [-s SPACE)      It sets or view the targeted org/space Refer to  cf-help  for more commands.