-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from ceramicnetwork/adding-node-running-items
adding node running items
- Loading branch information
Showing
9 changed files
with
93 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
docs/protocol/js-ceramic/nodes.md → docs/protocol/js-ceramic/nodes/overview.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Nodes | ||
# Nodes Overview | ||
--- | ||
Two types of nodes currently work together to support the Ceramic network. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Running a Node | ||
--- | ||
This will help explain how to run a Ceramic Node and some other specifics that are recommended to make sure your node is running smoothly. | ||
|
||
## Installation | ||
--- | ||
|
||
### Install and Run the Ceramic CLI | ||
|
||
This can be installed from NPM and updated through NPM by using the following command: | ||
|
||
```bash | ||
npx @ceramicnetwork/cli daemon | ||
``` | ||
|
||
This will install the CLI and start the daemon. This will allow all of the initial files to be created. This will successfully have a node running on the Clay TestNet. | ||
|
||
## Operations Considerations | ||
--- | ||
|
||
### Log Rotate | ||
|
||
As a node runs for sometime if you enable the log to files you will want to enable `logrotate` to ensure that your node does not overfill the hard drive. This can be done by following the following steps: | ||
|
||
1. Install `logrotate` using the following command: | ||
|
||
```bash | ||
sudo apt install logrotate | ||
``` | ||
|
||
2. Create a file in `/etc/logrotate.d/ceramic` with the following contents: | ||
|
||
```bash | ||
/home/ubuntu/.ceramic/logs/*.log { | ||
daily | ||
missingok | ||
rotate 7 | ||
compress | ||
delaycompress | ||
notifempty | ||
create 0640 ubuntu ubuntu | ||
sharedscripts | ||
postrotate | ||
systemctl restart ceramic | ||
endscript | ||
} | ||
``` | ||
|
||
3. Enable and Start the `logrotate` service using the following commands: | ||
|
||
```bash | ||
sudo systemctl enable logrotate | ||
sudo systemctl start logrotate | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters