Cloudhub

Mule 4 Indepth Understanding and deploying to Cloudhub
25 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$69.99
List Price:  $99.99
You save:  $30
€60.14
List Price:  €85.91
You save:  €25.77
£52.23
List Price:  £74.62
You save:  £22.38
CA$96.41
List Price:  CA$137.73
You save:  CA$41.32
A$107.49
List Price:  A$153.57
You save:  A$46.07
S$90.17
List Price:  S$128.82
You save:  S$38.65
HK$546.29
List Price:  HK$780.45
You save:  HK$234.16
CHF 56.34
List Price:  CHF 80.49
You save:  CHF 24.15
NOK kr700.29
List Price:  NOK kr1,000.46
You save:  NOK kr300.16
DKK kr448.84
List Price:  DKK kr641.23
You save:  DKK kr192.38
NZ$119.50
List Price:  NZ$170.72
You save:  NZ$51.22
د.إ257.03
List Price:  د.إ367.21
You save:  د.إ110.17
৳8,522.14
List Price:  ৳12,175.01
You save:  ৳3,652.86
₹6,168.91
List Price:  ₹8,813.10
You save:  ₹2,644.19
RM296.26
List Price:  RM423.25
You save:  RM126.99
₦107,242.87
List Price:  ₦153,210.67
You save:  ₦45,967.80
₨19,867.39
List Price:  ₨28,383.20
You save:  ₨8,515.81
฿2,267.25
List Price:  ฿3,239.07
You save:  ฿971.82
₺2,880.29
List Price:  ₺4,114.87
You save:  ₺1,234.58
B$381.10
List Price:  B$544.45
You save:  B$163.35
R1,240.41
List Price:  R1,772.09
You save:  R531.68
Лв117.26
List Price:  Лв167.53
You save:  Лв50.26
₩97,608.87
List Price:  ₩139,447.22
You save:  ₩41,838.34
₪237.34
List Price:  ₪339.07
You save:  ₪101.73
₱4,022.50
List Price:  ₱5,746.67
You save:  ₱1,724.17
¥10,397.98
List Price:  ¥14,854.89
You save:  ¥4,456.91
MX$1,313.09
List Price:  MX$1,875.93
You save:  MX$562.83
QR255.58
List Price:  QR365.13
You save:  QR109.55
P1,005.53
List Price:  P1,436.54
You save:  P431
KSh9,042.70
List Price:  KSh12,918.70
You save:  KSh3,876
E£3,394.48
List Price:  E£4,849.46
You save:  E£1,454.98
ብር9,944.21
List Price:  ብር14,206.62
You save:  ብር4,262.41
Kz63,827.73
List Price:  Kz91,186.39
You save:  Kz27,358.65
CLP$67,762.91
List Price:  CLP$96,808.31
You save:  CLP$29,045.40
CN¥499.08
List Price:  CN¥713
You save:  CN¥213.92
RD$4,404.27
List Price:  RD$6,292.09
You save:  RD$1,887.81
DA9,088.91
List Price:  DA12,984.71
You save:  DA3,895.80
FJ$158.31
List Price:  FJ$226.17
You save:  FJ$67.86
Q537.17
List Price:  Q767.42
You save:  Q230.25
GY$14,656.15
List Price:  GY$20,938.25
You save:  GY$6,282.10
ISK kr8,635.36
List Price:  ISK kr12,336.76
You save:  ISK kr3,701.40
DH630.06
List Price:  DH900.12
You save:  DH270.06
L1,163.30
List Price:  L1,661.93
You save:  L498.63
ден3,679.94
List Price:  ден5,257.29
You save:  ден1,577.34
MOP$562.85
List Price:  MOP$804.11
You save:  MOP$241.25
N$1,231.84
List Price:  N$1,759.85
You save:  N$528
C$2,579.16
List Price:  C$3,684.68
You save:  C$1,105.51
रु9,886.26
List Price:  रु14,123.84
You save:  रु4,237.57
S/247.52
List Price:  S/353.62
You save:  S/106.09
K296.72
List Price:  K423.91
You save:  K127.18
SAR262.62
List Price:  SAR375.19
You save:  SAR112.56
ZK1,655.81
List Price:  ZK2,365.54
You save:  ZK709.73
L305.47
List Price:  L436.41
You save:  L130.93
Kč1,472.13
List Price:  Kč2,103.13
You save:  Kč631
Ft23,825.45
List Price:  Ft34,037.82
You save:  Ft10,212.36
SEK kr661.74
List Price:  SEK kr945.38
You save:  SEK kr283.64
ARS$96,357.49
List Price:  ARS$137,659.46
You save:  ARS$41,301.96
Bs484.25
List Price:  Bs691.82
You save:  Bs207.56
COP$283,145.81
List Price:  COP$404,511.35
You save:  COP$121,365.54
₡35,431.55
List Price:  ₡50,618.68
You save:  ₡15,187.12
L1,834.90
List Price:  L2,621.40
You save:  L786.50
₲506,210.65
List Price:  ₲723,189.07
You save:  ₲216,978.42
$U2,800.60
List Price:  $U4,001.03
You save:  $U1,200.43
zł256.61
List Price:  zł366.60
You save:  zł109.99
Already have an account? Log In

Transcript

Welcome back. In this video, we will understand about what is cloud hub and how to deploy your applications on cloud hub. What are things you need to take care when you're deploying the on premise application to cloud hub. So let's get started. So actually, cloud hub is a platform as a service key a s, and especially we call it as a pass integration platform as service. So Cloud hub provides a platform for deploying your applications.

So once you have built your applications on any point studio, if you build, you'll get a dot JAR file, right? So what you can do is you can just upload this jar file onto cloud hub and cloud hub, what it will do is to provision a virtual machine where it will have mule runtime and you can deploy your application inside the virtual machine. One more thing is suppose whenever you're uploading your application, if you want five instances of your application, while deploying, you can just select the number of workers as five. So in that case, the cloud app will spin up five virtual machines, where five instances of your application will be running. So you can scale horizontally or even vertically also very easily. What do I mean by horizontal scaling?

Increasing the number of instances is nothing but horizontal scaling. And what do I mean by vertical scaling? If you are having a VM, where you have allocated one v core, and let's say one GB and support for for the same VM, if you want to increase the capacity to two v course, and two GB that means you're increasing the capacity of a VM. Then we call it as whatever scaling. So on cloud hub, what you can do is during deployment or even after deployment, you can scale the number of instances, vertical, that means increase the capacity of each VM, or horizontally, that means increase the number of VMs just by a mouse click, and cloud have guarantees high availability. So if any of the VM crashes nauseous, it will take care of restarting it.

And suppose if you are having a history P and point in your application, how do you access or how do you hit that HTTP endpoint? Because now there are five VMs. So each VM may be having its own IP, then which IP to hit. So actually cloud up, it will automatically map a load balancer for all of your instances. So you have to give the load balancer URL So, the load balancer is actually mapped to star dot cloud up.io. And whenever you deploy your application to cloud, your application will be allocated some URL something like a dark cloud app.io.

So whenever a request comes to a dot cloud app.io request will go to load balancer and load balancer will distribute the load across your file instances. So whenever we are deploying to cloud, we don't need to worry about load balancing of HTTP requests. But if you are deploying it on premise and if you are to have five instances, it is your responsibility to have a configure HTTP load balancer in front. In cloud, it is automatically taken care and load balancing is provided. And on cloud have, we have other offers Let me show you. Once your organization has purchased a cloud hub license, let me tell you what all you will get, and what all you can do on cloud hub.

So basically, I'm logged into my any point account. And if you see on the right corner, this is my organization name, which I gave while signing up. So I am logged into where to learn organization. So, once your company purchases cloud a license, they will be having one cloud up administrator login. Okay. Now what this administrator can do is once he is logged in, he can go to access management on the any point platform account.

And here I can see my organization's listed the first link here is organization and right now, this is my current organization. So this organization might have some quota. Basically, whenever licenses purchased license will be given for some quota for your organization. So let's assume that your organization has a license for 50 v courts. Right just for an example. Your your cloud of license have caught off 50 v costs.

And let's say hundred GB memory. That means in your Cloud account, you can deploy applications which can consume up to 50 a week or 100 gb. This is your quota. Now, I purchased a license, let's assume for my organization, in that organization, I might be having multiple business units, right. So I don't want each of my business unit to purchase a separate license from Cloud hub. All my business units should be able to deploy applications on my Cloud account itself.

So what I will do is I can create business groups. Business Group you can think of it represents your one bu business unit in your organization. So here, let me create a business group. So I can give my own business group name is Eva business group. And whenever I'm creating a business, we've actually, right now I am logged in as cloud up administrator. The login is provided, and we purchase or license.

So what I can do is I can add other users also add one second make other users as on so I'm making one user. Right now I have only one. And here there is something called as wallet can create environments. We'll discuss about what is an environment in few minutes. But let me select it and hear sandbox right now. I'm using trial account, I have a quarter of only one week or so, in design in certain sandbox environment, I have a capacity to use only one week or so, in that one week or I want to allocate 0.2 week course to business group ci g. and again in design environment, I have one v Core i can allocate say 0.3 v course to this car, so you can click on Add business.

Now a business group is created under my vehicle loan organization. And this business group if you see it has this quarter allocated 0.2 v cores in sandbox environment and 0.3 v cores in design environment and who is a winner? There is some water allocated in your organization. And every organization or every business group also has a unique client ID and secret so This is a client ID and secret. Okay? So like that in one organization, I can create n number of business groups.

Okay, hope you understood about what our business groups Now, let me go to environments. Actually, by default, you have these environments here design and sandbox. So I can add few more environments like I click on this and I'll say, silver production Corp or worry. And I want to say that this environment is having production grade machines. So in this environment, I don't want to use commodity machines, I want high quality machines. So if I select production environment, the VMs will be created on high quality hardware so that there are very less chances of cash.

So I can select production environment. For normal testing annuity, we don't want such high, high cost infrastructure. So what I want is I want to design create one more environment with sandbox type. I'll say Siva, dope development environment. But in development environment, even if my VM crashes, I don't bother it is not going to cause huge loss to my business. So I would say that for this environment, low commodity hardware also is sufficient.

So the cost of my physical infrastructure or virtual infrastructure can reduce. So I'm selecting sandbox, select that I can create n number of environments. Okay. Now, let me tell about what is environments let them go to a runtime manager. I clicked on runtime manager Yep, now here, if you see on the left corner, it shows the current environment, I'm in sandbox environment. If I click on the sandbox will be able to switch.

Now, I can go to civil prod, I can I can select any one of the environment and I can switch. So I selected civil prod and if I say switch, I'll be switched to that particular environment. And now whatever I deploy, I will be deploying it to that particular environment. Okay, so plan cancelled out, it got selected. Right now, we should see the environment change. Now I'm in this car prod environment.

So when I'm here in cloud hub, if I deploy applications, I'm replying to civil prod environment. So again, and go back to the default sandbox environment which is given by mule soft bye Default. And login, go back to access management to show you a few more things. First of all, I would like to talk about roles, how to create your own roles, and how to actually use user management. So click on roles and pull out hub. If I click on this roles, it will show me all the existing nodes in the organization.

Yep, you can see these are all the default roles. So Cloud admin for design, cloud of admin for sandbox, a lot of admin for see what else you have. So right now, I am the Organization Administrator. theory can see the number of members is only one. And since I am also doing cloud of administration, I am a cloud of admin as well. So these are the roles, right?

So these are the existing roles I want to add my own role. Let me click on ad roll. I will say silver. Okay, some description. Okay. I'm creating a new roll color silver.

All right, if I click on the silver roll now I can specify what permissions I want to give. First of all, let's go to runtime manager. What I want to do is for Siva server let's assume that he is a developer. Whenever somebody is given a server all development environment I for runtime manager I want the user to flinch, I want to do in dev environment and select on all the 14 permissions. But when it comes to production environment, I don't want somebody who's having several to deploy applications on production I want them to only view so I can select Save a prod environment. And here I will, I want him to only view so only read application permission and read alerts and read servers.

These are the permissions which are giving only three permissions in production environment. So in production environment, only read permissions are there for reading applications or reading servers, alerts, etc. But in Devon, And if somebody asks you what role he has full. And similarly, there is API manager, something called API manager, he will I can specify when somebody has server or what how he can do. So let's say in civil prod. When he goes to API Management, I want to give only view permissions.

I don't want to give manage permissions. So I select all and I can click on plus. So like that, there are other things also other tabs Also, you can go to each tab and you can allocate permissions, whatever you want to do for this particular role. Okay. Now, what I want to do is I want to invite users to this organization. So I can go here.

I can click on class. If I click on or sorry, if I click on this, there are no other users in my organization. To add this role, so what I would do is, maybe Firstly, I would add one user, so I'll go to users. I can invite organization, users are external users, users from external endpoint organizations who have registered client applications. So I can invite some users who are present in this organization, or external organization. So right now I want to invite somebody to my organization, click on invite user.

Then I can type the user male ad, so the male will go to him. So I want to give a shout out@gmail.com I want him to We are signed with silver all sending invitations. So mutations has been sent and I can see the pending invites here. Right. So once the user logs into his mail ad, he will be able to accept the invitation. And now that you really haven't that corresponding role, so great.

Now you understood how to create your own roles and your users. But if your organization is having some identity Mansur verson flow, there's a link here called as external identity. So if your organization has open ID connect or SAML two, which are supported, let's assume that I want to use something like SAML two, identity management. I have to give all these details of my external identity management so that all the users and roles can be loaded from the external identity provider. Right now I'm just discarding it. Okay.

So now you know, user management and all, let's go and deploy one application to cloud up. Go to runtime manager, let it go. And in the meanwhile, I'll show you some small changes what you need to do your applications to deploy your application to cloud. So only one change is whenever you are configuring history, please learn your application. The listener config, don't hard code the court because you are deploying the cloud right? So you should not hard code the code use a standard key, exactly dollar HTTP dot four.

And then once they are placeholders Of course, in the Configure the configuration properties which you know, which is pointing to some YAML file in this case, I made it to point to http dot Yama and we are in http.pm I have for local system Yemen and cloud of deployments this will be replaced dynamically right. So, like that What are our properties are there I can externalize it and I can configure this in http.ml or in Yama file. Now, this application is a simple application, it is having one HTTP listener, which is listening at which which is listening at slash test. And then we have a set payload transformer. What is it doing? Here is just returning Hello, and concatenating with a query parameter plus username.

Now I want to deploy it. If I want to deploy it from Studio itself, what I can do right click any points to do deploy to cloud hub. Okay, I can click on deploy to cloud up from here itself, but I need to give my credentials of anybody. Okay, I am providing. So once a provided under window is opening, where it will show me the configurations. It will show me the runtime manager Actually, it's asking which environment you want to choose, I want to apply to sandbox environment.

I've selected this. Yep. Now here you can see the deployment target is cloud up in this jar file. And now I can select in runtime, which runtime I want Applying for.or four dot one dot five, etc. And what are the worker sighs here, as I told you in in prior I have only worker is nothing but VM. So I want my VM which is getting created to have one v course and how many such workers means how many number of instances right now since I'm in trial, I cannot actually deploy my application on to more than one VM or more than one worker.

So I'm selecting this. Then let me show you other configurations as well. Here you have properties tab. If you want to pass any properties during deployment, you can provide it here. Whatever properties you provide here will be over writing the values in your actual YAML files which you might be having for your application. So whatever our default values for the properties, you can keep it inside the amyl file in your application.

If you want to override those values, you can of course over right in this properties. And when I come to logging. So actually, for each application there is logged for j two dot XML where you can configure, enable some level of logs for packages, etc. Right? So it can override the values present inside log for you to load XML by configuring logging support, if I want, say debug level logs to be enabled for anything under package org.mil you, right. So we have other properties as well.

Right now I'm just going with the defaults. So here, I'm getting a Red Cross symbol because this application name has to be unique as a cloud up perceiver. And we check Yep, this name is unique, nobody has used it. So now the deploy button has been enabled effective contract The application will be deployed, it will take some time to get deployed. You can observe that is deploying, I want the next of next things to open the browser, I can click on Open browser. So the runtime manager will be opened on the browser.

Yep, now you can see that cloud observer started. And if we click on it, if we click on this link here, I should see a link to manage application. Yep. Here we can see the app URL. This is my app URL. I click on this.

I have to do request to slash test. And that was username as query parameter username in SQL Server Let's see, you get response or not? Yep, I have God responds by asking me to open with an opening with lap with notepad about the expected result. So the application got successfully deployed on cloud up, and I was able to hit that using this URL provided here. Now if I want to see the logs, I can click on logs to show me the logs. Yep.

You can see in the logs, the VM is provisioned, actually. Yeah, you can see if I click on system log. Okay, sorry, I clicked on deployment icon system lock. You can see that Applications deployed to one worker in US East to region on Amazon. Right? So let's provision the worker worker means in this case VM and it is the IP is this one, you cannot hit this IP directly.

You can only be hit that using the load balancer. You are. So now you understood about cloud of basics of cloud and how to application how to operate deploying, how to see the logs, the basics. I'll see you next week.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.