How is Bandwidth Usage calculated?
In Typesense Cloud, we charge for
Outgoing Bandwidth for each node in your cluster.
Outgoing bandwidth is accrued in the following scenarios:
- API responses from your cluster. For eg, when you make a search API call, the response size from your Typesense cluster counts as outgoing bandwidth. So if you fetch say 100 results per page vs 5 results per page in each search request, that will have a corresponding impact on your bandwidth costs.
- For Highly Available multi-node clusters
- When you index data, the data first reaches one node and is then replicated out to the other nodes in the cluster. This is considered outgoing bandwidth from the perspective of the node that first receives the data and then replicates it out.
- When you do any configuration changes, each new node that comes up with the updated configuration will pull your dataset from the current leader node, and this counts as outgoing bandwidth from the perspective of the leader node.
- When a cluster is running, there is an overhead of about ~0.5MB every minute for various cluster operations (monitoring, heart beats between clusters, metrics, logs, etc) per node. This typically consumes ~720MB per day of bandwidth per node.