> For the complete documentation index, see [llms.txt](https://eric-lo.gitbook.io/lab-actor-model-and-ray/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eric-lo.gitbook.io/lab-actor-model-and-ray/run-the-program-in-local.md).

# Test the program locally

In directory `~/ray-lab`execute the following command to launch the program

```
python main.py
```

The following output should be prompted (initially one default chatroom with 3 users are created):

```
2021-03-01 23:43:16,670	INFO services.py:1092 -- View 
      the Ray dashboard at http://172.17.0.2:8265
(pid=112598) Created UserActor for user user2
(pid=112598) user2 join chatroom ActorID(df5a1a8201000000)
(pid=112577) Created UserActor for user user1
(pid=112577) user1 join chatroom ActorID(df5a1a8201000000)
(pid=112614) Created UserActor for user user0
(pid=112614) user0 join chatroom ActorID(df5a1a8201000000)
Action 1: Send a chat 'Hello world' from specific user 
Action 2: Create a new chatroom with 3 users
Your choice (1 or 2): 
```

You can try Action 1 and Action 2 through the CLI.

## Monitor your distributed application through Ray's dashboard&#x20;

Ray provides a dashboard. Go to URL `127.0.0.1:8265`

![](/files/-MUiUMhNqOfwnifSby3F)

The dashboard provides different useful information such as the Actor allocation and logs.

***Note: If you are running docker in node-1.cse.cuhk.edu.hk instead of your own machine, the URL to the dashboard will be: \`node-1.cse.cuhk.edu.hk:8265\`***

*\[If you want to use the url 127.0.0.1:8265, you need to first open and terminal and run the following command, before you open the above URL on your own machine.]*

```
// forward the port of node-1 to your own machine
ssh -N -f -L localhost:8266:127.0.0.1:8265 your-cse-account@node-1.cse.cuhk.edu.hk
```

##


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eric-lo.gitbook.io/lab-actor-model-and-ray/run-the-program-in-local.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
