From 652061eaae87befc7787891b2f60f8dffdfbd0bb Mon Sep 17 00:00:00 2001 From: b00f Date: Wed, 13 Dec 2023 00:48:04 +0800 Subject: [PATCH] reduce the network usage post (#118) * reduce the network usage post * fixing linting issue --- website/_i18n/ar.yml | 1 + .../ar/user-guides/reduce-network/index.md | 45 +++++++++++++++++++ website/_i18n/en.yml | 1 + .../en/user-guides/reduce-network/index.md | 45 +++++++++++++++++++ website/_i18n/zh.yml | 1 + .../zh/user-guides/reduce-network/index.md | 45 +++++++++++++++++++ website/user-guides/index.md | 1 + website/user-guides/reduce-network/index.md | 8 ++++ 8 files changed, 147 insertions(+) create mode 100644 website/_i18n/ar/user-guides/reduce-network/index.md create mode 100644 website/_i18n/en/user-guides/reduce-network/index.md create mode 100644 website/_i18n/zh/user-guides/reduce-network/index.md create mode 100644 website/user-guides/reduce-network/index.md diff --git a/website/_i18n/ar.yml b/website/_i18n/ar.yml index 74e00ef42..f91c33186 100644 --- a/website/_i18n/ar.yml +++ b/website/_i18n/ar.yml @@ -326,3 +326,4 @@ dict: run_pactus_docker: كيفية تشغيل بكتوس باستخدام دوكر؟ send_transactions_gui: كيفية إرسال المعاملات في الوضع الرسومي؟ use_wallet_cli: كيفية استخدام المحفظة في وضع سطر الأوامر؟ + reduce_network: How to reduce the network usage? diff --git a/website/_i18n/ar/user-guides/reduce-network/index.md b/website/_i18n/ar/user-guides/reduce-network/index.md new file mode 100644 index 000000000..f8b3930c5 --- /dev/null +++ b/website/_i18n/ar/user-guides/reduce-network/index.md @@ -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. diff --git a/website/_i18n/en.yml b/website/_i18n/en.yml index fcd04c70f..b09c6797e 100644 --- a/website/_i18n/en.yml +++ b/website/_i18n/en.yml @@ -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? diff --git a/website/_i18n/en/user-guides/reduce-network/index.md b/website/_i18n/en/user-guides/reduce-network/index.md new file mode 100644 index 000000000..f8b3930c5 --- /dev/null +++ b/website/_i18n/en/user-guides/reduce-network/index.md @@ -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. diff --git a/website/_i18n/zh.yml b/website/_i18n/zh.yml index 463b3eb64..e663e7e7d 100644 --- a/website/_i18n/zh.yml +++ b/website/_i18n/zh.yml @@ -306,3 +306,4 @@ dict: run_pactus_docker: 如何使用Docker运行帕克图斯? send_transactions_gui: 如何在图形模式下发送交易? use_wallet_cli: 如何在命令行模式下使用钱包? + reduce_network: How to reduce the network usage? diff --git a/website/_i18n/zh/user-guides/reduce-network/index.md b/website/_i18n/zh/user-guides/reduce-network/index.md new file mode 100644 index 000000000..f8b3930c5 --- /dev/null +++ b/website/_i18n/zh/user-guides/reduce-network/index.md @@ -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. diff --git a/website/user-guides/index.md b/website/user-guides/index.md index 02dbf11b2..9db8807f2 100644 --- a/website/user-guides/index.md +++ b/website/user-guides/index.md @@ -12,6 +12,7 @@ title: dict.guide.title ## {% t dict.guide.advanced %} diff --git a/website/user-guides/reduce-network/index.md b/website/user-guides/reduce-network/index.md new file mode 100644 index 000000000..b260a99d0 --- /dev/null +++ b/website/user-guides/reduce-network/index.md @@ -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 %}