You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 28, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: docs/_documentations/appmetrics.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Application Metrics is available in Java, Node.js, and Swift. You can monitor th
25
25
26
26
## Accessing Application Metrics
27
27
28
-
Click **App monitor** in the Microclimate project to access Application Metrics. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
28
+
Click **App monitor** in the Codewind project to access Application Metrics. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
29
29
30
30
## Enabling Application Metrics
31
31
@@ -45,35 +45,35 @@ View these metrics to learn if your application is performing as intended. An ap
45
45
46
46
## Clicking the **Run load** button
47
47
48
-
Click the **Run load** button to run load your microservice. This button pings endpoints by using the Microclimate load runner service.
48
+
Click the **Run load** button to run load your microservice. This button pings endpoints by using the Codewind load runner service.
49
49
50
50
## Viewing metrics information in the **Summary** tab
51
51
52
52
View a summary of the information from the performance metrics graphs that you saw in the **Dashboard** tab.
53
53
***HTTP Requests:** This table displays how many times an endpoint is hit. If you repeatedly run a test while making code changes, you can see how the code changes are impacting application performance.
54
54
***Environment:** This table shows information about the environment you're running, such as the OS architecture and the number of processors you have. Having this information can make troubleshooting easier if you need to contact support and provide it.
55
-
***Resource usage:** This table shows the **Average Process CPU**, which shows what Microclimate is doing, and the **Average System CPU**, which shows what the environment as a whole is doing. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
55
+
***Resource usage:** This table shows the **Average Process CPU**, which shows what Codewind is doing, and the **Average System CPU**, which shows what the environment as a whole is doing. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
56
56
57
57
## Viewing the graph in the **Profiling** tab
58
58
59
59
The **Profiling** tab is available only in Node.js projects. This tab pulls information from the CPU metric in the **Dashboard** tab. CPU cycles are caused by an execution of code. Receiving an endpoint doesn't cause many CPU cycles, but receiving an incoming payload can. Profiling shows you what occurs when a spike appears in the CPU metric. Each spike on the flame graph shows a call stack in the path. The width of a spike indicates how much time the CPU spends on a function. Wide spikes indicate that your CPU spends much time on a particular function and where you might want change the code to optimize it.
60
60
61
61
## Profiling Data Support
62
62
63
-
In Theia or VS Code, you can use the Profiling Language Server to provide code highlighting. Code highlighting displays the relative time spent in JavaScript functions based on profiling data gathered through [Microclimate load testing](performancetesting). Profiling support is only available for Node.js projects that are created through Microclimate and then profiled.
63
+
In Theia or VS Code, you can use the Profiling Language Server to provide code highlighting. Code highlighting displays the relative time spent in JavaScript functions based on profiling data gathered through [load testing](performance). Profiling support is only available for Node.js projects that are created through Codewind and then profiled.
64
64
65
65
- Profiling data is written to the workspace only on a successfully completed load run. If the load run is cancelled, it won't be written to the workspace.
66
66
- Run the load run for a minimum of 45 seconds for enough profiling data to be gathered to generate the `profiling.json` file.
67
67
- You can configure the load run time in the `config.json` file in the `load-test` directory. The default time is 2 minutes.
68
68
- Out of all the folders that contain a `profiling.json` file, the most up-to-date `profiling.json` file is the one that is displayed. The code for the older profiling data might be out of date, such as pointing to lines that have been moved.
69
69
70
70
To display code highlighting:
71
-
1. Open a project created with Microclimate and profiled using the [performance testing](performancetesting) feature of Microclimate. Profiling data is created in a `load-test/<datestamp>/profiling.json` file in your Microclimate project.
71
+
1. Open a project created with Codewind and profiled using the [performance testing](performance) feature of Codewind. Profiling data is created in a `load-test/<datestamp>/profiling.json` file in your Codewind project.
72
72
2. In the **Editor** view, open a JavaScript file. The Editor highlights any lines that were found in the profiling data and annotates them to show how often they were seen and where they were called from.
73
73
74
74
To enable or disable the profile highlighting in the code, access the profiling in one of the following ways:
75
75
- Right-click in the editor and select `Toggle Profiling`.
76
-
- Open the command palette with `cmd+shift+p` on a Mac or `ctrl+shift+p` on Windows. Then, select `Microclimate: Profiling: Toggle Profiling`.
76
+
- Open the command palette with `cmd+shift+p` on a Mac or `ctrl+shift+p` on Windows. Then, select `Profiling: Toggle Profiling`.
77
77
- Toggle the `Microprofile Profiling: Show Profiling` setting in the extensions settings.
78
78
79
79
For more information on sample-based profiling, see [Sample-based profiling](https://www.ibm.com/support/knowledgecenter/en/SS3KLZ/com.ibm.java.diagnostics.healthcenter.doc/topics/profiling_using.html).
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-che-dockerregistries.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ order: 20
10
10
parent: root
11
11
---
12
12
13
+
# Setting the Docker registry
13
14
14
-
### Setting the Docker registry
15
15
After creating a Codewind workspace, you must set the container registry to deploy your projects. When you go to create or add an existing project to Codewind, Codewind will prompt you for the registry. See [Docker registry docs](https://www.eclipse.org/codewind/dockerregistry.html) for guidance on using proper container registries.
16
16
17
17
If you would like to change the registry that's used at any time, run the `Codewind: Set Deployment Registry` command in Theia to dynamically set a new registry for your workspace. <br>
The fastest way to install Eclipse Che for Codewind is to use the `chectl` CLI. To install the `chectl` CLI tool, see [Installing the chectl management tool](https://www.eclipse.org/che/docs/che-7/installing-the-chectl-management-tool/).
27
30
28
31
After you install `chectl`, complete the following steps:
@@ -35,15 +38,17 @@ After you install `chectl`, complete the following steps:
35
38
- On OpenShift, run the following command: `chectl server:start --platform=openshift --installer=operator --che-operator-cr-yaml=codewind-checluster.yaml --che-operator-image=quay.io/eclipse/che-operator:7.5.1`
36
39
- On Kubernetes, run the following command: `chectl server:start --platform=k8s --installer=operator --domain=<ingress-domain> --che-operator-cr-yaml=codewind-checluster.yaml --che-operator-image=quay.io/eclipse/che-operator:7.5.1`
37
40
38
-
### Updating an existing Che installation
41
+
## Updating an existing Che installation
42
+
39
43
If you already have a Che installation, you can update it for Codewind.
40
44
41
45
After creating the Codewind ClusterRole from the [Prerequisites](#prerequisites), run the following command, where `$NAMESPACE` is the namespace that your Che workspaces run in. By default, this namespace is `che`.
### Enabling privileged and root containers to run
50
+
## Enabling privileged and root containers to run
51
+
47
52
Codewind needs to run as privileged and as root because it builds container images. If your cluster is running OpenShift, run the following commands, where `<che namespace>` is the namespace into which you installed Che.
48
53
1. To enable privileged containers, enter `oc adm policy add-scc-to-user privileged system:serviceaccount:<che namespace>:che-workspace`.
49
54
2. To enable containers to run as root, enter `oc adm policy add-scc-to-user anyuid system:serviceaccount:<che namespace>:che-workspace`.
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-che-odo-support.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,29 +11,35 @@ parent: mdt-che-installinfo
11
11
---
12
12
13
13
# OpenShift Do (odo) support in Codewind
14
+
14
15
The extension to Codewind provides support for [OpenShift Do (odo)](https://github.com/openshift/odo). You can use the extension to efficiently write, build, and deploy components on an OpenShift or OKD cluster.
15
16
16
17
1.[Extension overview](#overview)
17
18
2.[Setting up extension](#setting-up-extension)
18
19
3.[Current limitation](#current-limitation)
19
20
20
21
## Extension overview
22
+
21
23
- Supports Java, Node.js, Python, and Perl components.
22
24
- Provides OpenShift templates to help you create components with different supported languages.
23
25
- Imports your existing components and continues to develop the components.
24
26
25
27
## Setting up extension
26
28
27
29
### Prerequisites
30
+
28
31
-[Install](mdt-che-installinfo.html) Codewind on Che on an OpenShift cluster.
29
32
30
33
### Adding roles to support the extension
34
+
31
35
The extension needs additional roles for accessing OpenShift resources. Use the following commands to clone the [codewind-odo-extension](https://github.com/eclipse/codewind-odo-extension) repository, create the ClusterRole with the required permissions, and bind that ClusterRole to the corresponding Codewind service account.
32
36
33
37
### Importing Java image stream to your OpenShift or OKD cluster
38
+
34
39
In order to create or import Java compoent, you need to import Java image stream to your OpenShift or OKD cluster so that odo can build component image.
35
40
36
41
### Adding the roles and importing the Java image stream
42
+
37
43
1. Log in to your OpenShift or Origin Community Distribution (OKD) cluster and ensure the Codewind workspace is created.
38
44
2. Enter the following commands to go to the correct location, add the roles and import the Java image stream, and perform cleanup:
Copy file name to clipboardExpand all lines: docs/_documentations/mdt-che-setupregistries.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ order: 20
10
10
parent: root
11
11
---
12
12
13
-
### Adding registries in Che
13
+
# Adding registries in Che
14
+
14
15
After Che is started and running, add the container registry that will be used with Codewind.
15
16
- On OpenShift or other Kube platforms, you can push your images to any Docker registry, such as Docker Hub, Quay.io, Google Cloud Registry (GCR), and more.
16
17
- On IBM Cloud Private, you can push your image to any Docker registry *except* the internal Docker registry.
0 commit comments