Hatoon, and welcome back into this, we will be discussing about the bad service.
Now, before we go, I and understand about bad service, let's go ahead and understand what bad jobs
are.
Now, a bad job is basically a collection, or you can also pay for it as a list of comments that are
processed in a sequence, often without requiring a user input or intervention, no journaling, whatever
bad jobs that are present, they get accumulated during their working hours and are then executed during
the evening time or whenever the computer is idle.
So one of the use cases that I can share is in Udemy.
Now in Udemy you have thousands of students and everyone would put a review after watching around four
or five videos.
Now that the review will not immediately appear within the Udemy course, it takes around two days or
even three days for it to appear so as a bad job at the night in mostly.
And then those reviews are being available at the website Gorleben.
Now in order to understand this in a much better sense, let me show you how exactly it might look like
in windows, no windows.
We have a service call as a task scheduler.
Let's open this up.
Know within this scheduler there are lot of jobs that are available over here now.
It says jobs already or jobs are running.
Now, if you quickly open up any one job, let's take up this one.
It has various subtypes.
One is the trigger on when exactly this job will get triggered.
Soyo, do you have daily start up time and one time know within the actions it basically states that
this job will start this program that this CCE updated EXI Now you also have conditions.
Now whenever you have a job you can define a condition how on when the job should run on what are the
conditions where the job would run and yet you can specify the condition.
So if I can go to the properties of this specific job, let's go to completion.
You can specify that this task should only start when the computer is idle.
You can specify the amount of minutes here.
You can also specify that this should only start if the computer is on the power.
So there are a lot of flexibilities which are available now for this type of service to work which basically
advance your predefined job.
There are a lot of components which are involved.
One of the major component is the task scheduler.
There are also various other components like triggers.
Do you have conditions and various others now or something similar to this?
Eatables also has a service of Bache.
Now, if organization, lot of organization, they make use of open source as well as various commercial
tools to have their batch job processing in cloud environment.
Now, with the help of eatables bad service, it really becomes much more easier.
So let's go ahead and do a practical so it becomes much easier for us to understand it.
Now, this is the best batch, so the first thing that will do is click on get started.
So this will take a defined job.
Screen will leave everything as default for you.
Now, if you see this is a container properties, no eatables that extensively uses the X behind the
scenes.
So you will have to specify the container image.
So by default, it is the busy box image, but you can specify your own container, which has the required
dependencies that control the job.
So let's leave it as a default.
OIWA And within the command you have a simple echo.
HelloWallet is present no below.
You can specify the amount of VCP and the amount of memory that is needed.
Let's say the amount of memory I just put it has 256.
Now let's let's go to the next screen.
So within the next screen you have the option to specify whether the provisioning model is on demand
or spot instances and also the allowed instance type.
Now, the allowed instance take currently is optimal.
That basically means that depending upon the number of VCP, the number of RAM that you define it by,
it will launch the easy to instance according to the requirement.
So let's do one thing maximum ECPA.
I do not want to keep it as 256.
I keep it as two.
One important part to remember about last batch is that the 32 instances are not supported.
That means t to make or is not supported and it will typically launch from infancy for an ad for that
means that you will get charged even though you are in free dir.
So this is one important part to remember now.
This is something that I'm seeing at January 2009.
Airbus does have plan to add 32 instances, but the dates are not confirmed yet, and it is so below,
you can specify the BBC and the subjects where you're easy to instant's would get launched and you also
have the job.
Kuria job is nothing but the W where the jobs can be scheduled.
Now, once you have defined all this, we can go ahead and we can do Uhtred.
So once you do agree, it will go ahead and it will set up a job.
It will set up a task definition as well as the computer environment, which is nothing.
But there easy two instances where your jobs would be running.
So it says that everything has been successful.
Let's go to the dashboard and this is how the dashboard looks like.
Now, if you go to services and click on AC2, you should see that that is one instance which is up
and running.
And this is of the type and forward line.
Now, depending upon the CPU that you, again, give this instance, that would be changed on your site.
So now let's go to the Aders bad service.
And there are a lot of tabs which are available on your computer environment is something that we already
saw.
So this is nothing but the computer like you see two instances which is up and running.
The next important thing is job.
Now, once you see two instances running, you might want to send a job, which the two instance will
go ahead and process.
Now, let's click on some big job now, I'll say as a demo job and you'll have to specify the job definition.
Now, job definition will will discuss about this.
Let I just select the first round job definition and the other job type of single.
And the Carmenere is a hello.
So this is the command that will get execute on the busy box container that was running.
So I'll just leave things as defined and a little concerning Tom Sawyer.
It is saying that the job has been successfully submitted.
Now, once the job is successfully submitted, it goes to the queue and then it will be processed inside
the EU instead.
Now, this particular job that we had submitted, it does nothing but echo hello.
And so once the job is successfully submitted and it gets succeeded, so currently you see it went out
of submitted.
Let's go into the succeeding state and you see our demo job has been succeeded.
So once this has been succeeded within the cloud, what you should see the output.
So let's go to the cloud, watch your eye, go to the logs.
And typically you should see two large streams because there were two jobs, which has right now, if
I just click on it, I know it should.
So hello, Alexa.
This is the halo which was executed.
Now, the job definition is where you can specify what exactly needs to be done so you can specify the
container image.
So earlier the container image was busy box and the command was hallowing.
However, if your application requires a certain container image or if you have your own custom container
image, you can specify the container image, you can specify the command over here.
Once you have created a job definition, then you create the job.
So from the job, you if you click on some big job, you can specify which job definition you want to
refer for and which is the job queue.
So this is the high level overview about the bad service.
Now, if you just want to take a minute, because this is not mandatory data, the first thing that
you need to do is you have to do a disable.
Once you do disable, you see the status has been changed to updating.
And if you click refresh, it's now valid and the state is disabled, so once it is disabled, you can
go ahead and delete your job queue and once your job is deleted, you can go ahead and you can disable
the computer environment and went to a computer environment is disabled.
You can go ahead and you can delete it says cannot delete phone existing job good relationships.
So that means that our job you are still deleting.
So basically, if you want to delete your computer environment, you need to make sure that your job
is deleted first grade.
So our job to is now deleted.
Now let's go ahead and try to delete our computing environment.
And now the status has been changed to delete it.
So once your computer environment is deleted, basically your AC2 instance would be terminated and you
see the instance is now terminated.
So this is the high level overview about the bad service.
I hope this video has been informative for you.
And I look forward to see you in the next video.