Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
reduce the network usage post (#118)
Browse files Browse the repository at this point in the history
* reduce the network usage post

* fixing linting issue
  • Loading branch information
b00f authored Dec 12, 2023
1 parent 6582b69 commit 652061e
Show file tree
Hide file tree
Showing 8 changed files with 147 additions and 0 deletions.
1 change: 1 addition & 0 deletions website/_i18n/ar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,3 +326,4 @@ dict:
run_pactus_docker: كيفية تشغيل بكتوس باستخدام دوكر؟
send_transactions_gui: كيفية إرسال المعاملات في الوضع الرسومي؟
use_wallet_cli: كيفية استخدام المحفظة في وضع سطر الأوامر؟
reduce_network: How to reduce the network usage?
45 changes: 45 additions & 0 deletions website/_i18n/ar/user-guides/reduce-network/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
version: 1
---

## Preface

Pactus is designed for low traffic usage.
However, some users still face bandwidth limitations imposed by their Internet Service Providers (ISPs).
This guide will explore effective ways to reduce networking usage for a Pactus node.

### Reducing the number of connection

By default, Pactus attempts to maintain 64 open connections with other nodes,
split into 32 inbound and 32 outbound connections.
To reduce networking usage, you can decrease this maximum number of connections.
However, it's important to remember that more connections with
peers usually enable the node to function more effectively and securely.
The `max_connections` setting in the config file can be adjusted to manage the maximum number of connections.

### Disabling Relay

A relay connection is a type of connection that can be established between two peers,
usually behind a NAT, by a third-party peer known as a relay.
This is especially helpful when users run Pactus on a private network like home internet.
However, the relay connection is not as stable as a direct connection.
Disabling the relay connection may reduce network usage.
If you have a reliable and public IP address, you can disable the relay connection.
The relay connection is enabled by default. To disable the relay connection,
set `enable_relay` to `false` inside the config file.

### Disabling Node-Network service

A node-network is a type of node that provides historical data, such as blocks,
to other nodes so they can sync with the network.
By default, this service is enabled.
Disabling this service helps reduce traffic usage.
Keep in mind that new nodes rely on other nodes to be able to sync.
To disable the node-network service, set `node_network` to `false`.

### Disabling Node-Gossip service

The node-gossip is a type of node that helps the network by broadcasting data
such as transactions and consensus votes.
By default, this service is disabled. If you enable this service,
the network usage of your node will increase.
1 change: 1 addition & 0 deletions website/_i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -328,3 +328,4 @@ dict:
run_pactus_docker: How to run Pactus using Docker?
send_transactions_gui: How to send transactions in Graphic Mode?
use_wallet_cli: How to use wallet in Command Line Mode?
reduce_network: How to reduce the network usage?
45 changes: 45 additions & 0 deletions website/_i18n/en/user-guides/reduce-network/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
version: 1
---

## Preface

Pactus is designed for low traffic usage.
However, some users still face bandwidth limitations imposed by their Internet Service Providers (ISPs).
This guide will explore effective ways to reduce networking usage for a Pactus node.

### Reducing the number of connection

By default, Pactus attempts to maintain 64 open connections with other nodes,
split into 32 inbound and 32 outbound connections.
To reduce networking usage, you can decrease this maximum number of connections.
However, it's important to remember that more connections with
peers usually enable the node to function more effectively and securely.
The `max_connections` setting in the config file can be adjusted to manage the maximum number of connections.

### Disabling Relay

A relay connection is a type of connection that can be established between two peers,
usually behind a NAT, by a third-party peer known as a relay.
This is especially helpful when users run Pactus on a private network like home internet.
However, the relay connection is not as stable as a direct connection.
Disabling the relay connection may reduce network usage.
If you have a reliable and public IP address, you can disable the relay connection.
The relay connection is enabled by default. To disable the relay connection,
set `enable_relay` to `false` inside the config file.

### Disabling Node-Network service

A node-network is a type of node that provides historical data, such as blocks,
to other nodes so they can sync with the network.
By default, this service is enabled.
Disabling this service helps reduce traffic usage.
Keep in mind that new nodes rely on other nodes to be able to sync.
To disable the node-network service, set `node_network` to `false`.

### Disabling Node-Gossip service

The node-gossip is a type of node that helps the network by broadcasting data
such as transactions and consensus votes.
By default, this service is disabled. If you enable this service,
the network usage of your node will increase.
1 change: 1 addition & 0 deletions website/_i18n/zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,4 @@ dict:
run_pactus_docker: 如何使用Docker运行帕克图斯?
send_transactions_gui: 如何在图形模式下发送交易?
use_wallet_cli: 如何在命令行模式下使用钱包?
reduce_network: How to reduce the network usage?
45 changes: 45 additions & 0 deletions website/_i18n/zh/user-guides/reduce-network/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
version: 1
---

## Preface

Pactus is designed for low traffic usage.
However, some users still face bandwidth limitations imposed by their Internet Service Providers (ISPs).
This guide will explore effective ways to reduce networking usage for a Pactus node.

### Reducing the number of connection

By default, Pactus attempts to maintain 64 open connections with other nodes,
split into 32 inbound and 32 outbound connections.
To reduce networking usage, you can decrease this maximum number of connections.
However, it's important to remember that more connections with
peers usually enable the node to function more effectively and securely.
The `max_connections` setting in the config file can be adjusted to manage the maximum number of connections.

### Disabling Relay

A relay connection is a type of connection that can be established between two peers,
usually behind a NAT, by a third-party peer known as a relay.
This is especially helpful when users run Pactus on a private network like home internet.
However, the relay connection is not as stable as a direct connection.
Disabling the relay connection may reduce network usage.
If you have a reliable and public IP address, you can disable the relay connection.
The relay connection is enabled by default. To disable the relay connection,
set `enable_relay` to `false` inside the config file.

### Disabling Node-Network service

A node-network is a type of node that provides historical data, such as blocks,
to other nodes so they can sync with the network.
By default, this service is enabled.
Disabling this service helps reduce traffic usage.
Keep in mind that new nodes rely on other nodes to be able to sync.
To disable the node-network service, set `node_network` to `false`.

### Disabling Node-Gossip service

The node-gossip is a type of node that helps the network by broadcasting data
such as transactions and consensus votes.
By default, this service is disabled. If you enable this service,
the network usage of your node will increase.
1 change: 1 addition & 0 deletions website/user-guides/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ title: dict.guide.title
<ul class="list-unstyled">
<li><a href="{{ site.baseurl }}/user-guides/run-pactus-gui">{% t dict.guide.run_pactus_gui %}</a></li>
<li><a href="{{ site.baseurl }}/user-guides/send-transactions-gui">{% t dict.guide.send_transactions_gui %}</a></li>
<li><a href="{{ site.baseurl }}/user-guides/reduce-network">{% t dict.guide.reduce_network %}</a></li>
</ul>

## {% t dict.guide.advanced %}
Expand Down
8 changes: 8 additions & 0 deletions website/user-guides/reduce-network/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: guide
title: dict.guide.reduce_network
---

# {% t dict.guide.reduce_network %}

{% translate_with_version user-guides/reduce-network/index.md 1 %}

0 comments on commit 652061e

Please sign in to comment.