Skip to main content

Posts

Showing posts from October, 2017

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.

Pivotal Cloud Foundry Developer Certification - Cloud Foundry Overview - environment variables

Why does Cloud Foundry rely on environment-variables? Can you manage environment-variables manually? If so how? Can you name two predefined environment-variables available to any application? Environment variables are the means by which the Cloud Foundry (CF) runtime communicates with a deployed application about its environment.  To view environment variables use 'cf env APP-NAME' command.  The 'cf env'  command displays the following environment variables: The  VCAP_APPLICATION  and  VCAP_SERVICES  variables provided in the container environment The user-provided variables set using the 'cf set-env' command For more details refer  environment-variables

Pivotal Cloud Foundry Developer Certification - Cloud Foundry Overview - 12 Factor Design patterns

What are the 12 Factor Design patterns? Could you list each one from memory? The twelve-factor app is a methodology for building software-as-a-service apps that use declarative formats for automation, have clean contract with underlying OS, are suitable for cloud deployment, have continuous deployment and can scale up. Below are the 12 factors: I. Codebase One codebase tracked in revision control, many deploys. There is only one codebase per app, but there will be many deploys of the app. There is always a one-to-one correlation between the codebase and the app: If there are multiple codebases, it’s not an app – it’s a distributed system. Each component in a distributed system is an app, and each can individually comply with twelve-factor. Multiple apps sharing the same code is a violation of twelve-factor. The solution here is to factor shared code into libraries which can be included through the  dependency manager . II. Dependencies Explicitly declare and isolat