In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
In this issue, the editor will bring you about how to use Rainbond to create a shared cloud application? the article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Application is the smallest service unit that can be managed by Rainbond. Users can compose multiple applications into a complex business system, which can provide services to the outside world, or can be shared with other organizations for independent deployment. This article will demonstrate "how to make a shareable cloud application" through the example of Solo+Pinpoint (Pinpoint-java performance Analysis Best practice). The shared application can be installed and deployed by the team, company or users in the cloud city with one click, and the standardized one-click delivery deployment can be achieved.
Create an application
There are three ways to create an application, namely, from the source code, from the Docker image, and from the application market. For more information, please see: create an Application.
Next, it will be created from the source code and installed from the application market--
Apply synchronously to the internal market
If there are no applications to be created in the internal market, you need to download them from the cloud first.
Create an application
First of all, Pinpoint is installed from the application market, which is a public cloud service provided by Haoyu, which provides commonly used development applications and tools. This is a very simple way to deploy applications on the cloud platform. This deployment method minimizes the difficulty and workload of deployment for complex multi-component applications such as pinpoint.
Enter Rainbond and select [install from Cloud City]
Search for [pinpoint] in the search bar
Select an existing [Application Group], or create a new one.
Click "OK", and after a short period of time, the application is deployed.
Then, create the MySQL in the same way (because Solo depends on MySQL)
Finally, create the Solo by creating the application with the source code.
Click "create Application"-- "create from Source Code"
Fill in the information such as application name, application name, warehouse address and code version
Click [OK]
In this way, there will be a process of application detection, which takes a long time, so we just skip it and go to the advanced settings.
In advanced settings, you need to enable external services, add environment variables, add service dependencies, and set memory information:
Open the external service so that we can access the application through the browser.
Add the environment variables ENABLE_APM = true and APP_NAME = Solov999 so that Solo can be associated with Pinpoint.
Under the traditional architecture, pinpoint needs to attach Agent to the monitored object and make it effective by modifying the configuration file. On the cloud help platform, we have simplified these two steps accordingly. Applications based on Haoyu's official OpenJDK image are integrated with Pinpoint-Agent by default and do not need to be installed again. The cloud help platform uses the way of setting environment variables instead of configuration files, and the key value pair is very easy to use in the form of environment variables.
Add MySQL and Pinpoint-Collector service dependencies respectively.
Set the memory to 1G (can be adjusted according to the actual situation).
The creation of the entire application is complete, and then you can access the application that has just been installed
Visit solo--
Monitor Solo-- through Pinpoint
Since the real-time monitoring function of Pinpoint-Web is implemented with Websocket, and the load balancer component of Rainbond does not support Websocket, it is necessary to change the access mode of Pinpoint-Web from Http to Tcp. Otherwise, the real-time monitoring function of Pinpoint-Web cannot be used.
As you can see, Solo can be monitored in real time through Pinpoint, indicating that we have successfully installed Pinpoint and Solo.
Release application to market release
In Rainbond, you can package the entire business system into a cloud market application, and choose to publish the application to the team, the company, and the good rain public cloud market. The visibility varies with different areas of sharing. The specific scope is as follows:
Team: only members of the current team are visible
Company: visible to all members of the current enterprise
Good Yuyun City: visible to all enterprises and users connected to Yuyun City
Haoyuyun City is a way of storage, sharing, delivery and management of Rainbond applications defined by Rainbond. For the current difficult problem of complex delivery mode and large manpower investment of IT software, Rainbond provides a standardized packaging form for heterogeneous application services, packaging and storing software, dependent deployment relationships, functional extensions, version information, running environment, configuration information and even initialization data in the application market. Therefore, the application market is an application sharing approach defined by Rainbond, which can share applications across teams, data centers, and even platforms. Applications in the application market are complete business solution integrators or excellent architectural practices that can be standardized for one-click delivery and deployment.
We package the complete business solution integration in an application group into a cloud application. After successful release, other users can choose to install and deploy a complete service system from the application market with one click when creating the application. To achieve standardization, one-click delivery deployment. For more information, see: application Publishing
After filling in the application name, version, sharing scope, icon and other basic application information, you can submit it.
After it is submitted, the application test will be carried out. After the application detection is completed, go to the bottom of the page, click OK to share, and publish the application.
Then we can find the newly released Solo-Pinpoint in the internal market (only in the internal market).
On the shelf
If you want to be able to find the Solo-Pinpoint application that has just been released in the cloud city, you need to put up the Solo-Pinpoint in the cloud city. The application on the shelf can be seen by all enterprises and users connected to the rain public cloud city.
Information editing, using Markdown to write a detailed introduction of the application, so that users can better understand the application.
Set the price
On the shelf
After getting on the shelves, we can find Solo-Pinpoint in the cloud.
Apply Import and Export
In order to enable users to better manage their applications and deliver their business quickly and easily, we have designed an application import and export function for the platform, which allows users to use a few clicks to package the applications in the internal market into a compressed file that can be downloaded locally. When exporting, two formats are supported, one is rainbond-app format, the other is docker-compose format. For more information, please see: apply Import and Export
Application export
Enter the internal market page
Locate Solo-Pinpoint and click Export App on the application section.
The export process may take a long time. After the export is successful, the download button will change from gray to blue. Click the download button to download and download the file locally.
When the download is complete, you will get a file called Solo-Pinpoint-v1.0.zip, which is the backup file of Solo-Pinpint.
Apply Import
There are two ways to apply import:
If your network situation is not optimistic, we recommend that you operate directly on the server in the corresponding data center. You can copy the RainbondAPP file to the directory we provide on the data center management node.
If the network is in good condition, you can upload files directly through the network to the specified directory in the data center (the method used in this article).
We first delete the Solo-Pinpoint in the market, and then import the Solo-Pinpoint-v1.0.zip exported above.
When the upload is complete, check Solo-Pinpoint-v1.0.zip and click to confirm import.
Because the size of the Solo-Pinpoint-v1.0.zip file is 1G, it takes a long time to upload and import.
After the import is complete, the Solo-Pinpoint can be found in the internal market again.
Apply backup and restore apply backup
For the business system of the generation environment, we need to back up the business system on a regular basis. In the past, we backed up the data or the database separately. Lack of a global unified backup mechanism, especially for distributed applications. The backup and recovery of the Rainbond application group completes the overall and full backup of the business system, in order to realize the global rollback in the event of the whole system failure. For more information, please see: apply backup
Backup operations are divided into local backup and cloud backup. Local backup is used here:
Local backup: a set of applications are backed up locally, and local backup applications cannot be migrated across data centers and tenants.
Cloud backup: sftp servers and private hub repositories need to be configured to perform cloud backups. Cloud backups can operate across data centers and tenants, and can also support the export of this group of backups. Currently, Enterprise Edition supports managing backend configurations of sftp and hub repositories.
The backup operation is as follows-
Backup successful--
Application recovery
Next, we restore the file Solo-Pinpoint-v1.0.zip backed up in the 5.1 application backup as follows:
Do not close the recovery page during the restore operation, or it may cause the restore to fail.
In order to ensure the security of your data, we will generate a copy of your backup application during the recovery operation. You can choose to delete the original application in the last step of the restore.
After the recovery is successful, there will be one more application called Solo-Pinpoint_1ccf, which is the restored application.
Solo-Pinpoint_1ccf after successful start of recovery
The above is the editor for you to share how to use Rainbond to create a shared cloud application? If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.