Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
wmmihaa committed Jul 23, 2024
1 parent 6ebd696 commit 9cf243c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 51 deletions.
2 changes: 1 addition & 1 deletion assets/index.json

Large diffs are not rendered by default.

15 changes: 0 additions & 15 deletions nav/_operation/controlling-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,6 @@ Moving a node to another organization will cause the Node to reconfigure, restar
4. Click Move
5. Change organization to confirm that the node have been moved.

## Debug Node

>Remote debugging is a very powerful option which can provide you with valuable insight to your *Service*. You can also run profiling on your *Node* to find potential memory leaks or high memory/CPU contention.
1. Navigate to the *Node* page. Click the **ACTIONS** button and select **Debug**, then click **START DEBUG**.

>The *Node* will now get restarted in "Debug mode". Wait a few seconds and you'll be presented a debug url.
2. Click the **COPY** button, open a new tab (in chrome), and paste the url into the address field. This opens the Chrome Debug Tool.
3. Go to the Sources tab. Expand the top item in left pane ("no domain") to see an overwhelming number of files (sorry about that). Scroll down to your script file. Should be something like: *C:\Users\YOU\microServiceBus\services\alexCpuService.js*
4. Set a breakpoint at approx row 36 (```var computer = os.platform();```) by clicking the row number in the gutter of the editor. Wait a few seconds and the breakpoint should hit.
5. Step over the line by hitting F10, and hover the **computer** variable and view the value.

The problem is that you use ```os.platform()``` rather than ```os.hostname()```. Easy enough to fix. Let's head over to the *Scripts & Services* again. -But first, in *Node* page, make sure to stop debugging by click on the **STOP DEBUG** button in the debugging window before you proceed. Go back to the Chrome Debug Tool and hit the resume button.

## Node information

### History data
Expand Down
8 changes: 4 additions & 4 deletions nav/_quickreference/common-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Here is a list of commonly used Linux terminal commands"
categories: quickreference
order: 51
---
:star: = Personal favorites
<script src="https://gist.github.com/rxaviers/7360908.js"></script>

### Favorite Linux commands
* `cd [directory]` - *Change directory.
Expand All @@ -19,14 +19,14 @@ This command can also be used double dots to go back one level `cd ..` or with d
* `sudo [command]` -*Run command as root*
* `sudo su` -*Change user to `root`*
* `find -name [name of file]` -*Find a file by name*
* `grep -R ./ -e "[seach pattern]"` -*find files containing a word or pattern* :star:
* `grep -R ./ -e "[seach pattern]"` -*find files containing a word or pattern*
* `cat [file name]` -*View content of file*
* `df -h` -*shows available and used disk space on the Linux system*
* `chmod +x [file name]` -*Makes file executable*
* `grep` - is used to filter output such as `df -h | grep udev` returns only one row from the `df` command
* `asw` - spits an input into an array. For instance `df -h | grep udev | awk '{print $2}'` returns only the second column.

**grep and awk** sample :star:
**grep and awk** sample
```
$ df -h
Filesystem Size Used Avail Use% Mounted on
Expand Down Expand Up @@ -78,7 +78,7 @@ $ df | grep udev | awk '{print $2}'
### Favorite **journalctl** commands
`journalctl` is also part of the `systemd` suite and helps you view logfile in real-time.

`journalctl -u [service] -n [number of previous lines] -f` :star:. E.g.
`journalctl -u [service] -n [number of previous lines] -f` . E.g.
```
journalctl -u microservicebus-node -n 100 -f
```
Expand Down
2 changes: 1 addition & 1 deletion nav/_quickreference/installing-microservicebus-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ For a fully manageable Raspberry Pi, consider using the [Raspberry Pi Yocto Imag
#### Raspberry Pi 3 or 4

```bash
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -

sudo apt install -y nodejs

Expand Down
29 changes: 0 additions & 29 deletions nav/_quickreference/remote-debug-your-microservices.md

This file was deleted.

1 change: 0 additions & 1 deletion nav/what-is-msb.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ microServiceBus.com provides great insight to what is and has happened on the de
For more information:
* [Using the *Console*]({{site.baseurl}}/using-the-console)
* [Get insight using tracking]({{site.baseurl}}/get-insight-using-tracking)
* [Remote debug your *microservices*]({{site.baseurl}}/remote-debug-your-microservices)


## API and Integration
Expand Down

0 comments on commit 9cf243c

Please sign in to comment.