Haidian and welcome back now in today's we will be discussing about the elastic Bienstock service in
more detail.
Now, one of the common question that comes after you are familiar with the basics of elastic Bienstock
is whether Elastic Bienstock service will create the same infrastructure for all of the applications
or you have the capability to customize it according to the requirements.
So in today's We Do will precisely be looking into this area and along with that will also look into
how we can upload a custom application in Elastic Bienstock.
So currently I'm within the elastic Bienstock console, so let's go ahead and click on environments
here and let's create a new environment.
So we'll be using the default environment as of now, which is the Web server environment will be discussing
more in detail about the environments whenever required, but just use the default one as of now for
the application name, let's just call it as custom app.
Now, as soon as you click it, you will see certain details will be autofill over year.
Now, within the domain, you also have an option to have a customized domain.
So let me give you an example.
So just for a quick overview, I'll just specify Dominus Silveira will look into what exactly this means
once the application gets deployed.
Now, in the platform, you have various platforms that are supported by Elastic Bienstock.
Now, do not elastic Bienstock does not support all of the programming languages.
There are certain platforms that are supported like glass fish, go Java, BHP Billiton and so on.
So for R Simplicity will be using DOCA now as soon as you select the brand as well as the version has
been autofill.
Now within the application code you have the option to deploy a sample application.
You also have the option to upload your code.
So for today's video will go ahead and upload Arcore now within the source code origin from where the
code comes from can be a local file, which is a file within your laptop, or it can also be a public
S3.
You it for simplicity will be using a local file.
I already have a sample file that I have created.
I'll also share it across the code so that you can try it.
So let me click on Choose File and within it I have a file Collette's BCB app or zip file click on Open.
So as soon as the file is uploaded you'll get this file successfully uploaded message.
Now you can go ahead and create the environment and your application that is part of this file will
automatically get deployed.
Now, before we do that, as we were discussing about the question on whether Elastic Bienstock will
always create the same inurement or we have flexibility related to it.
So, yes, we have a flexibility related to it.
So if you click on configure more options here within you, you can exactly specify what are the things
that you need.
So within the configuration preset, you currently have a single instance that is selected.
So now what will happen is this and if I click on create an environment, it will just create a single
instance.
You also have various other configuration presets like high availability.
So for example, when I click on a single instance, you do not really have various things like load
balancing, etc..
However, as soon as I click on high availability, it enabled both the load balancing as well as the
auto scaling.
So if you need load balancing auto scaling, you can select how you will ability and so on.
So this is how things work here.
And depending upon what other configuration you want to modify, you can quickly do that within the
configuration page of Elastic Bienstock now for the time being, able to select the high availability
environment and let's go ahead and create an environment.
Now, similar to the previous setup, the elastic Bienstock environment has been started, so it will
go ahead and create load balancer security group, the auto scaling group, the C2 instances and so
on.
So let's go ahead and quickly wait for a moment for the environment to be great.
Great.
So it took around four to five minutes for our environment to be created.
So you see the health is OK and it is also showing you the platform of the environment.
So in this case, the platform is Dockett.
Now, if you look into the water that you are Elisi Water got a PSA one, not elastic Bienstock dot
com.
So with this, I hope you understood the importance of setting up the Deerness.
Now, again, depending upon your requirement, you can have appropriate DNS for you.
So as soon as you click on this you story, you will see the sample application that is up and running.
So do note that since this is based on the Docker platform, Elastic Bienstock intown installed there,
DOCA related packages within the easy to instant's and then it went ahead and deployed our Docker related
application within the easy to instant's.
Now do not that this inurement is also based on elastic load balancer, auto scaling group and so on.
So in case, if you want to modify the environment, you can also do that.
So you can go to the configuration here.
And depending upon what are the settings that you need, you can go ahead and modify things here.
So let me give you a quick example.
So let's go ahead and go to the easy doing things.
So currently only one or two instances running as part of our environment, for example.
Now, let's say that tomorrow there is a promotion that will be upcoming and one instance is not really
enough.
You need to have two easy to instanced that should be running all the time.
So now what you can go ahead and do is you can go ahead and modify the elastic Bienstock configuration.
So within the capacity, let's go ahead and edit it.
And within the instances, Lizzi will specify the minimum instance, Espoo, and will go ahead and apply
our configuration.
All right, so it took a few minutes for the update to complete now, under the instances, if you will
quickly refresh, you will see that there are two easy two instances that are up and running and load
balancer will go ahead and distribute the load across both of the instances.
So I hope with this you understood the basics on how elastic Bienstock environment works and how easy
it is for you to go ahead and customize it.
Now, there are a few more things that I wanted to quickly show you.
So we have explored the configuration.
You also have a very important feature of logs.
So basically what happens is that the logs are stored at the instance level.
So if you want to fetch the logs, you'll have to log into the sea to instant's again.
Since it is auto scaling, there can be a lot of easy two instances.
So instead of manually logging into this instance and look into the logs, you can quickly request the
logs.
Let's say we need logs for the last 100 lines.
You can quickly request it and know all the logs that are part of the easy doings then.
So it says that you have a log file, for instance, with this idea and you have a log file, for instance,
with a different idea.
And now you can go ahead and download the log file.
And you see these are the exact logs that are available.
So this allows you to quickly go ahead and look into issues if you are running into any.
No, apart from that, you also have a tab related to health which shows you the health status of the
so and so currently, both of them are okay.
It also shows you various other information related to the request that has been received, the EPA
response and various others.
You have the option of monitoring, which basically shows you the details related to the response time
to environmental, that request the CPU utilization and so on related to the actual instance.
That's great.
So I hope that this you understood the basics on the flexibility that Elastic Bienstock offers in terms
of the environmental setup that needs to be created.
We also look into how we can go ahead and upload our own custom application within the Elastic Bienstock.
Now, I'll also be uploading the application zip file along with the codes so that you can also try
it out.
Also make sure that after you have completed the practical related to this, make sure you delete the
entire environment because various things like elastic load balancer in other things will otherwise
increase your cost.
So with this will conclude today's video.