<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Talha Munir 🇵🇸</title>
    <description>The latest articles on Forem by Talha Munir 🇵🇸 (@talhahahae).</description>
    <link>https://forem.com/talhahahae</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1016092%2Ff6f9ad36-d9a5-4af5-8238-f44622d9eabb.jpg</url>
      <title>Forem: Talha Munir 🇵🇸</title>
      <link>https://forem.com/talhahahae</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/talhahahae"/>
    <language>en</language>
    <item>
      <title>Backing up and restoring in EDB BigAnimal</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Sat, 11 Nov 2023 11:12:26 +0000</pubDate>
      <link>https://forem.com/talhahahae/backing-up-and-restoring-in-edb-biganimal-4dk0</link>
      <guid>https://forem.com/talhahahae/backing-up-and-restoring-in-edb-biganimal-4dk0</guid>
      <description>&lt;h2&gt;
  
  
  Backups
&lt;/h2&gt;

&lt;p&gt;BigAnimal backs up the data in your PostgreSQL clusters. BigAnimal uses any of the following storage solutions which certainly depends on the cloud your cluster is deployed on. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AWS uses Amazon S3 (standard tier) as an Object storage solution&lt;/li&gt;
&lt;li&gt;Azure uses Azure blob storage as an Object storage solution.&lt;/li&gt;
&lt;li&gt;Google Cloud uses cloud storage as an Object storage solution.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The organization that has purchased all the subscriptions is responsible for all the charges related to the object storage solution.&lt;/p&gt;

&lt;p&gt;PostgreSQL clusters in BigAnimal are continuously backed up through a combination of base backups and transaction log archiving. When a new cluster is created an initial base backup is taken. After that whenever the WAL file is closed, which by default happens after every 5 minutes. It is uploaded to the cloud object storage solution. If your cluster has faraway replicas the application will copy the WAL files from your cloud object storage solution and asynchronously transfer them to the faraway replicas. Your organization is solely responsible for the charges that are associated with the cloud object storage solution.&lt;/p&gt;

&lt;h2&gt;
  
  
  Replication lags with faraway replicas:
&lt;/h2&gt;

&lt;p&gt;With faraway replicas, the primary server writes to the archive, which is moved to the object store. The replica reads from the object store as files arrive. Prior to the archive replicating across to the replica, the log file must write at least 16MB of data to the WAL to cut a new archive file. If the time interval for closing a WAL file is too large, it can introduce a delay until the replica receives the latest record. The amount of time that it takes to fill up the 16 MB log file and copy it to the archive is the replication lag. The replication lag is the period of time when data can be lost. The time totally depends on the amount of activity in your database. You need to measure the replication lag to determine if it's acceptable from a possible data-loss perspective. If it isn't acceptable, consider using a distributed high-availability cluster. &lt;/p&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/terraform_provider/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/terraform_provider/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>database</category>
      <category>backup</category>
      <category>postgres</category>
      <category>restore</category>
    </item>
    <item>
      <title>Deleting a cluster in Big Animal</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Sun, 05 Nov 2023 10:20:42 +0000</pubDate>
      <link>https://forem.com/talhahahae/deleting-a-cluster-in-big-animal-1h0i</link>
      <guid>https://forem.com/talhahahae/deleting-a-cluster-in-big-animal-1h0i</guid>
      <description>&lt;p&gt;In our series of Big Animal, we will see how we can delete a cluster in the application. You can easily restore deleted clusters for as long as the backup is available. The backup is available for the retention period set for each cluster. After the retention period is over the application automatically deletes the backup. To stop the management costs on the cluster, you can also contact EDB's BigAnimal support team. Otherwise, the costs accumulate way too much.&lt;/p&gt;

&lt;h2&gt;
  
  
  Delete your cluster:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Go to the clusters page in the portal.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To delete the cluster perform one of the following actions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Select the Delete cluster icon in the row for the cluster.&lt;/li&gt;
&lt;li&gt;Select the cluster you want to delete. From quick actions on the cluster details page, select the delete option.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Confirm that you want to delete the cluster. Once the process finishes, the cluster is listed on the Deleted tab of the Clusters page. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To stop the associated management costs, contact EDB's support team.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Restoring your cluster:
&lt;/h2&gt;

&lt;p&gt;You can also restore your deleted cluster for as long as the backup is available.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Select the Delete tab on the clusters page in the BigAnimal portal. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select the restore icon for the cluster you want to restore.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On the cluster restore page review the selections in the cluster summary. Select the restored cluster to begin the restore process.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When the process is completed, the restored cluster is available on the Clusters page.&lt;/p&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/03_modifying_your_cluster/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/03_modifying_your_cluster/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/05a_deleting_your_cluster/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/05a_deleting_your_cluster/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>delete</category>
      <category>cluster</category>
      <category>cloudcomputing</category>
      <category>database</category>
    </item>
    <item>
      <title>Managing regions in BigAnimal</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Sat, 04 Nov 2023 05:54:20 +0000</pubDate>
      <link>https://forem.com/talhahahae/managing-regions-in-biganimal-4335</link>
      <guid>https://forem.com/talhahahae/managing-regions-in-biganimal-4335</guid>
      <description>&lt;p&gt;In this blog, we will be discussing how we can manage regions in BigAnimal. If you are using BigAnimal's cloud account, you don't need to activate regions, you can simply suspend and delete them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Activate a new region
&lt;/h2&gt;

&lt;p&gt;When you activate a region, BigAnimal prepares the amount of resources required to deploy clusters. These added resources definitely lead to increased cloud costs. You must activate a region before creating or restoring a cluster.&lt;/p&gt;

&lt;p&gt;Every activated region shows a status. The status is only available when you try to restore or create new cluster tabs. You can also activate the region before time on the regions page.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;To activate a region before creating a cluster, go to the regions page.&lt;/li&gt;
&lt;li&gt;You will be prompted to set up your cloud server provider if it has not been set up yet.&lt;/li&gt;
&lt;li&gt;Select activate new region and select your cloud provider and the region you want to activate. You can activate multiple regions where you have plans on adding clusters.&lt;/li&gt;
&lt;li&gt;Lastly just select activate regions.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Suspend, reactivate, or delete a region
&lt;/h2&gt;

&lt;p&gt;Before you suspend or delete a region you must delete all clusters in that region. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On the left panel, select regions. You will see a list of previously activated regions appear.&lt;/li&gt;
&lt;li&gt;Select the icons next to a region to either:

&lt;ul&gt;
&lt;li&gt;Suspend or delete an active region&lt;/li&gt;
&lt;li&gt;Reactivate a suspended region&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Region status references
&lt;/h2&gt;

&lt;p&gt;These are various region statuses that will be visible in different states:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Activating: The status activating appears when you have activated the region and BigAnimal is setting up the compute and networking resources to support the cluster you just requested. Backups and logs of the cluster are not yet available. &lt;/li&gt;
&lt;li&gt;Active: BigAnimal has completed setup up all the prerequisites and has also set up computing and networking resources. The region has at least one cluster but you can create more, the region now has backups and logs available.&lt;/li&gt;
&lt;li&gt;Suspended: You have deleted active clusters, Big Animal will then remove the active allocated compute and networking resources. The backups and logs are still available.&lt;/li&gt;
&lt;li&gt;Deleted: You have deleted the clusters. BigAnimal has removed the computing and networking resources. The backups and logs are no longer available. One account owner can delete a region.&lt;/li&gt;
&lt;li&gt;Error: Any error occurred while trying to activate or suspend a region. The cause can be a quota issue. You can also contact EDB support if you need some additional help in solving the issues you are facing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  references:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/03_modifying_your_cluster/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/03_modifying_your_cluster/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8"&gt;https://dev.to/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/getting_started/activating_regions/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/getting_started/activating_regions/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>database</category>
      <category>postgres</category>
      <category>functions</category>
    </item>
    <item>
      <title>Modifying your cluster</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Thu, 26 Oct 2023 06:56:40 +0000</pubDate>
      <link>https://forem.com/talhahahae/modifying-your-cluster-h91</link>
      <guid>https://forem.com/talhahahae/modifying-your-cluster-h91</guid>
      <description>&lt;h2&gt;
  
  
  Modifying your cluster
&lt;/h2&gt;

&lt;p&gt;Big Animal provides you the opportunity to modify the cluster by editing its configuration settings.&lt;br&gt;
You can also modify the clusters by installing Postgres extensions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Modifying Cluster's Configuration Settings
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Sign in to the BigAnimal portal&lt;/li&gt;
&lt;li&gt;On the clusters page, You will see the list of clusters. Select the name of the cluster you want to edit.&lt;/li&gt;
&lt;li&gt;From the top right corner of the Cluster Info panel select the &lt;em&gt;edit cluster&lt;/em&gt; option.&lt;/li&gt;
&lt;li&gt;You can modify some of the following settings on the tab of the edit cluster page.
I have separated the settings with respect to different tabs.
### Cluster Info tab:

&lt;ul&gt;
&lt;li&gt;Cluster type setting:
You cannot shift from a high availability cluster or a single node cluster to a distributed high availability cluster or vice versa.&lt;/li&gt;
&lt;li&gt;Number of Replicas.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://dev.to/talhahahae/cluster-settings-tab-in-biganimal-5ebp"&gt;Cluster Settings tab&lt;/a&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Instance Type:
Changing instance types can lead to higher infrastructure charges.&lt;/li&gt;
&lt;li&gt;Volume Type:
You cannot switch between the io2 and io2 Block Express volume types in an AWS cluster.&lt;/li&gt;
&lt;li&gt;Volume Properties:
It can take up to six hours to tune IOPS or resize the disks of your cluster because AWS requires a cooldown period after volume modifications.&lt;/li&gt;
&lt;li&gt;Networking type:
If you are using Azure and previously set up a private link and want to change to a public network you must remove the private link resources before making the change.&lt;/li&gt;
&lt;li&gt;Cluster Name and Password.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Data Groups tab:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Nodes:
After the creation of the cluster, you cannot change the number of data nodes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://dev.to/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8"&gt;DB Configuration tab&lt;/a&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Database configuration parameters:
If you are using faraway replicas, only a small subset of parameters are editable. These parameters need to be modified in the replica when increased in the replica's source cluster.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://dev.to/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8"&gt;Additional Settings tab&lt;/a&gt;:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Retention period for backups.&lt;/li&gt;
&lt;li&gt;Custom maintenance window:
You can set or modify the maintenance window where maintenance upgrade occurs for the cluster.&lt;/li&gt;
&lt;li&gt;Read-only workloads:
Enabling read-only workloads can lead to higher cloud infrastructure charges.&lt;/li&gt;
&lt;li&gt;PgBouncer:
Enabling the feature of pg bouncer can also lead to higher infrastructure costs.&lt;/li&gt;
&lt;li&gt;IAM(Identity access management):
Turning on the ability to log into the Postgres using IAM credentials. &lt;/li&gt;
&lt;li&gt;Super User access:
Disabling the option removes superuser access for edb_admin but any other superusers existing in the database retain their superuser privileges.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Modify a data group:
&lt;/h2&gt;

&lt;p&gt;You can modify the data groups in your distributed high-availability cluster by editing the configuration settings. You can follow the below steps to modify a data group.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sign in to the BigAnimal portal.&lt;/li&gt;
&lt;li&gt;On the clusters page, you will be shown a list of data groups, select the data group you want to edit.&lt;/li&gt;
&lt;li&gt;Select the Edit, option next to the data group.&lt;/li&gt;
&lt;li&gt;Edit the cluster settings in the Data Groups tab.&lt;/li&gt;
&lt;li&gt;Select save.&lt;/li&gt;
&lt;li&gt;Confirm the changes in the pop-up window.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/03_modifying_your_cluster/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/03_modifying_your_cluster/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8"&gt;https://dev.to/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/talhahahae/cluster-settings-tab-in-biganimal-5ebp"&gt;https://dev.to/talhahahae/cluster-settings-tab-in-biganimal-5ebp&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>cloud</category>
      <category>postgres</category>
      <category>cloudcomputing</category>
      <category>database</category>
    </item>
    <item>
      <title>Faraway Replicas-part 3</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Wed, 25 Oct 2023 12:06:00 +0000</pubDate>
      <link>https://forem.com/talhahahae/faraway-replicas-part-3-3m3b</link>
      <guid>https://forem.com/talhahahae/faraway-replicas-part-3-3m3b</guid>
      <description>&lt;p&gt;In this part 3 of the replica series we will be discussing how we can control the replicas using CLI commands.&lt;br&gt;
You can view first 2 parts over here&lt;br&gt;
&lt;a href="https://dev.to/talhahahae/creating-a-faraway-replica-53h8"&gt;part1&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/talhahahae/faraway-replicas-part-2-4ma9"&gt;part2&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Faraway Replicas CLI commands
&lt;/h2&gt;

&lt;p&gt;You can use replica-specific CLI commands to create, promote, and get information on faraway replicas.&lt;/p&gt;

&lt;p&gt;To update we use &lt;strong&gt;faraway-replica update&lt;/strong&gt; &lt;br&gt;
To delete we use &lt;strong&gt;faraway-replica delete&lt;/strong&gt;&lt;br&gt;
To restore we use &lt;strong&gt;faraway-replica restore&lt;/strong&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Create a faraway replica:
&lt;/h2&gt;

&lt;p&gt;You use the &lt;code&gt;faraway-replica create&lt;/code&gt; command to create a replica from CLI. You can either use interactive mode or a config file. The example below uses interactive mode.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;biganimal faraway-replica create&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;You will be prompted to confirm that either you want to create the faraway replica. After the faraway replica creation process is complete, it generates a replica cluster-ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get information on faraway replicas
&lt;/h2&gt;

&lt;p&gt;You can use the &lt;code&gt;faraway-replica show-connected&lt;/code&gt; command to get information on faraway clusters for a specified source cluster. You can use either interactive mode or specify the settings with flags on the CLI.&lt;br&gt;
The example below shows the interactive mode.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;biganimal faraway-replica show-connected
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output will show the provider region, cluster name, and connected faraway replicas.&lt;/p&gt;

&lt;h2&gt;
  
  
  Promote a faraway replica
&lt;/h2&gt;

&lt;p&gt;You can use the &lt;code&gt;faraway-replica promote&lt;/code&gt; command to promote an existing replica to a standalone single-node standby high-availability cluster. You can use either interactive mode or specify the settings with flags on the CLI.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;biganimal faraway-replica promote
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You will be prompted to confirm whether you want to promote the faraway replica. It will generate a cluster ID when the promotion process is completed.&lt;/p&gt;

&lt;h2&gt;
  
  
  IAM authentication CLI commands
&lt;/h2&gt;

&lt;p&gt;To create a cluster that is enabled for IAM authentication, set the &lt;code&gt;--iam-authentication&lt;/code&gt; flag on &lt;code&gt;cluster create&lt;/code&gt; command to yes or in the configuration file to true.&lt;/p&gt;

&lt;p&gt;To change the IAM authentication setting after creating a cluster use the &lt;code&gt;--iam-authentication&lt;/code&gt; flag on the &lt;code&gt;cluster update&lt;/code&gt; command.&lt;/p&gt;

&lt;p&gt;To change the IAM authentication setting when restoring a cluster, use the &lt;code&gt;--iam-authentication&lt;/code&gt; flag on the &lt;code&gt;cluster restore&lt;/code&gt; command.&lt;/p&gt;

&lt;h2&gt;
  
  
  Logging and metrics CLI command
&lt;/h2&gt;

&lt;p&gt;You can get the URLs to access metrics and logs in your cloud providers blob storage solution using &lt;code&gt;cluster show-monitoring-urls&lt;/code&gt; CLI command.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;For single-node and primary/standby high-availability clusters, the syntax of the command is:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;biganimal cluster show-monitoring-urls {--id | --provider --region \
                                       --name} [--metrics] [--logs]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;FOr distributed high availability clusters, the syntax of the command is:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;biganimal pgd show-group-monitoring-urls {--id --group-id} [--metrics] \
                                         [--logs]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Maintenance Windows CLI command
&lt;/h2&gt;

&lt;p&gt;You can also set and view maintenance windows using the command &lt;code&gt;cluster set-maintenance-window&lt;/code&gt; and &lt;code&gt;cluster get-maintenance-window&lt;/code&gt; CLI commands.&lt;br&gt;
The syntax of the command is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;biganimal cluster [set|get]-maintenance-window 
                                     {--id | --provider --region --name}
                                     {--enable} [--start-day --start-time]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/talhahahae/faraway-replicas-part-2-4ma9"&gt;https://dev.to/talhahahae/faraway-replicas-part-2-4ma9&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/talhahahae/creating-a-faraway-replica-53h8"&gt;https://dev.to/talhahahae/creating-a-faraway-replica-53h8&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>cloudskills</category>
      <category>database</category>
      <category>postgres</category>
      <category>commandline</category>
    </item>
    <item>
      <title>Faraway Replicas-part 2</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Wed, 25 Oct 2023 10:34:28 +0000</pubDate>
      <link>https://forem.com/talhahahae/faraway-replicas-part-2-4ma9</link>
      <guid>https://forem.com/talhahahae/faraway-replicas-part-2-4ma9</guid>
      <description>&lt;p&gt;In the second part of faraway replicas, we will discuss how you can delete and restore a faraway replica. You can view part 1 &lt;a href="https://dev.to/talhahahae/creating-a-faraway-replica-53h8"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Delete a faraway Replica:
&lt;/h2&gt;

&lt;p&gt;You can delete the replica by following below steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sign in to the BigAnimal portal.&lt;/li&gt;
&lt;li&gt;Go to the cluster page. You will see a list of all previously created clusters.&lt;/li&gt;
&lt;li&gt;Select the cluster with the replica you want to delete. &lt;/li&gt;
&lt;li&gt;Select the replica you want to delete. &lt;/li&gt;
&lt;li&gt;Select the delete icon to delete the replica.&lt;/li&gt;
&lt;li&gt;Confirm the checkbox that you want to permanently delete the replica. The replica will be deleted.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Restore a replica backup:
&lt;/h2&gt;

&lt;p&gt;You can also restore a replica backup on a standalone cluster. A new standalone cluster is created and initialized with data from the replica backup. Following are the steps on restoring the backup of a replica. &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select the cluster with the replica that you are willing to restore on the clusters page in the big animal portal.&lt;/li&gt;
&lt;li&gt;In the overview tab, You can see the cluster replicas under faraway replicas. Select the Replica.&lt;/li&gt;
&lt;li&gt;From quick actions click on Restore Replica.&lt;/li&gt;
&lt;li&gt;On the restore replica page.

&lt;ul&gt;
&lt;li&gt;Fill in the required fields. &lt;/li&gt;
&lt;li&gt;Select now on the calendar to restore to the last possible recovery point.&lt;/li&gt;
&lt;li&gt;review your selection and select restore to begin the restore process.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;The new standalone cluster is now available on the clusters page.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/reference/cli/using_features/#faraway-replicas-cli-commands" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/reference/cli/using_features/#faraway-replicas-cli-commands&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>replica</category>
      <category>postgres</category>
      <category>database</category>
      <category>cloudcomputing</category>
    </item>
    <item>
      <title>Faraway Replica - part 1</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Wed, 25 Oct 2023 10:18:45 +0000</pubDate>
      <link>https://forem.com/talhahahae/creating-a-faraway-replica-53h8</link>
      <guid>https://forem.com/talhahahae/creating-a-faraway-replica-53h8</guid>
      <description>&lt;h2&gt;
  
  
  Managing Faraway Replicas in Big Animal:
&lt;/h2&gt;

&lt;p&gt;You can create replicas in different active regions in your cloud. A great feature provided by Big Animal is that there is no limit on the number of faraway replicas for each cluster. However, the addition of resources and data transfers can increase your cloud costs. &lt;/p&gt;

&lt;h2&gt;
  
  
  Create a faraway Replica:
&lt;/h2&gt;

&lt;p&gt;Below are the steps for creating replicas in your cloud.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to the clusters page, You will see a list of previously created clusters.&lt;/li&gt;
&lt;li&gt;Select the Create replica icon next to a cluster to create its faraway replica. You will be shown a create faraway replica page. &lt;/li&gt;
&lt;li&gt;You cannot edit your cloud provider details because they are automatically inherited.&lt;/li&gt;
&lt;li&gt;Move to the cluster setting tab and enter a name for the replica in the cluster name field.&lt;/li&gt;
&lt;li&gt;Skip to the region section and select any of the active regions where you will be deploying your replica. The password and database type values are inherited from the source cluster. &lt;/li&gt;
&lt;li&gt;Select the instance type in the instance type section.&lt;/li&gt;
&lt;li&gt;Select the storage settings in the storage section.&lt;/li&gt;
&lt;li&gt;In the networking section you can also specify whether you want to use private or public networking.&lt;/li&gt;
&lt;li&gt;On the DB configuration tab keep the inherited values or increase them to avoid any kind of replication issues. 

&lt;ul&gt;
&lt;li&gt;max_connections&lt;/li&gt;
&lt;li&gt;max_locks_per_transaction&lt;/li&gt;
&lt;li&gt;max_prepared_transactions&lt;/li&gt;
&lt;li&gt;max_wal_senders&lt;/li&gt;
&lt;li&gt;max_worker_processes&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On the additional settings tab, in the backups section, change the default replica backup retention period of 30 days using the retention time controls. You can configure the retention period as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1-180 days&lt;/li&gt;
&lt;li&gt;1-25 weeks&lt;/li&gt;
&lt;li&gt;1-6 months&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Enable identity and access management authentication to turn on the ability to log in to Postgres using your AWS IAM credentials.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select Create Replica and your replica will be created.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Promote a faraway replica:
&lt;/h2&gt;

&lt;p&gt;You can also promote a faraway replica to a full-fledged cluster, which makes it capable of accepting writes. The new cluster created is different from the source cluster and it doesn't replace the source cluster.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Go to the clusters page. You will be able to see previously created clusters.&lt;/li&gt;
&lt;li&gt;Select the cluster with the replica you want to promote. 
In the overview tab, you can see cluter's replica under faraway replicas.&lt;/li&gt;
&lt;li&gt;Select &lt;em&gt;Promote Faraway Replica&lt;/em&gt; icon next to the replica you want to promote. &lt;/li&gt;
&lt;li&gt;The cluster settings are populated with values inherited from the source cluster. You can edit the cluster settings while creating your cluster. &lt;/li&gt;
&lt;li&gt;Select &lt;em&gt;promote replica&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/managing_replicas/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/managing_replicas/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>replica</category>
      <category>database</category>
      <category>postgres</category>
      <category>functional</category>
    </item>
    <item>
      <title>Managing Postgres extensions</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Wed, 25 Oct 2023 09:31:35 +0000</pubDate>
      <link>https://forem.com/talhahahae/managing-postgres-extensions-1b</link>
      <guid>https://forem.com/talhahahae/managing-postgres-extensions-1b</guid>
      <description>&lt;p&gt;Big Animal supports many Postgres extensions. Some of the extensions can be viewed over &lt;a href="https://www.enterprisedb.com/docs/pg_extensions/" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Extensions in BigAnimal:
&lt;/h2&gt;

&lt;p&gt;Extensions are available when you use your cloud account.&lt;br&gt;
Installing Postgres extensions requires superuser privileges.&lt;br&gt;
If you use your cloud account you can grant superuser privileges to edb_admin so that you can install these extensions on your cluster.&lt;/p&gt;
&lt;h2&gt;
  
  
  List of extensions:
&lt;/h2&gt;

&lt;p&gt;A list of extensions that can be installed using your cloud account is given below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;auth_delay&lt;/li&gt;
&lt;li&gt;bloom&lt;/li&gt;
&lt;li&gt;btree_gin (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;btree_gist (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;citext (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;cube (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;earthdistance&lt;/li&gt;
&lt;li&gt;fuzzystrmatch&lt;/li&gt;
&lt;li&gt;hstore (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;hstore_plperl&lt;/li&gt;
&lt;li&gt;intagg&lt;/li&gt;
&lt;li&gt;intarray (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;isn (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;jsonb_plperl (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;ltree (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;old_snapshot (PostgreSQL and EDB Postgres Advanced Server v14 and v15 only)&lt;/li&gt;
&lt;li&gt;pageinspect&lt;/li&gt;
&lt;li&gt;pg_buffercache&lt;/li&gt;
&lt;li&gt;pg_freespacemap&lt;/li&gt;
&lt;li&gt;pg_prewarm&lt;/li&gt;
&lt;li&gt;pg_stat_statements&lt;/li&gt;
&lt;li&gt;pg_surgery (PostgreSQL and EDB Postgres Advanced Server v14 and v15 only)&lt;/li&gt;
&lt;li&gt;pg_trgm (PostgreSQL v12 and EDB Postgres Advanced Server v15 only)&lt;/li&gt;
&lt;li&gt;pg_visibility&lt;/li&gt;
&lt;li&gt;pgaudit (PostgreSQL only)&lt;/li&gt;
&lt;li&gt;pgcrypto (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;pglogical3 (PostgreSQL v12 and v13 only)&lt;/li&gt;
&lt;li&gt;pgrowlocks&lt;/li&gt;
&lt;li&gt;pgstattupple&lt;/li&gt;
&lt;li&gt;postgres_fdw&lt;/li&gt;
&lt;li&gt;seg (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;sslinfo&lt;/li&gt;
&lt;li&gt;tablefunc (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;tcn (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;tsm_system_rows (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;tsm_system_time (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;unaccent (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;uuid-ossp (PostgreSQL v12 only)&lt;/li&gt;
&lt;li&gt;xml2&lt;/li&gt;
&lt;li&gt;spi - autoinc&lt;/li&gt;
&lt;li&gt;spi - refint&lt;/li&gt;
&lt;li&gt;spi - insert_username&lt;/li&gt;
&lt;li&gt;spi - moddatetime&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Installing extensions:
&lt;/h2&gt;

&lt;p&gt;Use the create_extension command to install extensions. You can enable edb_pg_tuner on the DB configuration tab of the Create or Edit Cluster page of the big animal portal. The following example shows how you can install multiple extensions simultaneously.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 1:
&lt;/h3&gt;

&lt;p&gt;Create a text file containing the create extension command for each of the extensions you want to install. In this example, the file is named createExtension.sql&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE EXTENSION &amp;lt;extension_name_1&amp;gt; SCHEMA &amp;lt;schema_name&amp;gt;;
CREATE EXTENSION &amp;lt;extension_name_2&amp;gt; SCHEMA &amp;lt;schema_name&amp;gt;;
CREATE EXTENSION &amp;lt;extension_name_3&amp;gt; SCHEMA &amp;lt;schema_name&amp;gt;;
CREATE EXTENSION &amp;lt;extension_name_4&amp;gt; SCHEMA &amp;lt;schema_name&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2:
&lt;/h3&gt;

&lt;p&gt;Use your Postgres client of choice to load the extensions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;psql &amp;lt;biganimal_connection_string&amp;gt; -f createExtension.sql
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Removing Extensions:
&lt;/h2&gt;

&lt;p&gt;You can remove extensions using &lt;em&gt;Drop Extensions&lt;/em&gt; command. &lt;/p&gt;

&lt;h2&gt;
  
  
  Retrieving list of extensions:
&lt;/h2&gt;

&lt;p&gt;You can view the list of all Postgres extensions using &lt;em&gt;pg_available_extension&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Pg extension catalog:
&lt;/h2&gt;

&lt;p&gt;The &lt;em&gt;Catalog_pg_extension&lt;/em&gt; catalog stores all the information about the installed extensions. &lt;/p&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/extensions/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/using_cluster/extensions/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>edb</category>
      <category>database</category>
      <category>postgres</category>
      <category>functions</category>
    </item>
    <item>
      <title>What can a pg_ba_admin do and what they can't</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Wed, 25 Oct 2023 08:20:52 +0000</pubDate>
      <link>https://forem.com/talhahahae/what-can-a-pgbaadmin-do-and-what-they-cant-442c</link>
      <guid>https://forem.com/talhahahae/what-can-a-pgbaadmin-do-and-what-they-cant-442c</guid>
      <description>&lt;p&gt;Now we will discuss what a pg_ba_admin role can do, and what actions are out of the reach of the user with this role.&lt;/p&gt;

&lt;p&gt;What can a pg_ba admin role do:&lt;br&gt;
A user with a pg_ba_admin role can perform many operations typically reserved for the Postgres superuser. For example, they can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create roles&lt;/li&gt;
&lt;li&gt;Create Databases&lt;/li&gt;
&lt;li&gt;Create, modify, and delete any non-superuser role which also includes the setting of passwords.&lt;/li&gt;
&lt;li&gt;SET Another role for any user except the superuser without the need for a password.&lt;/li&gt;
&lt;li&gt;Read the data from all the Postgres system catalogs in pg_catalog.&lt;/li&gt;
&lt;li&gt;Read and write to all user objects such as tables, views, etc.&lt;/li&gt;
&lt;li&gt;Perform all monitoring functions on the Postgres instance.&lt;/li&gt;
&lt;li&gt;Install supported extensions for EDB.&lt;/li&gt;
&lt;li&gt;Grant pg_checkpoint role to itself and to other users.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What a pg_ba_admin can't do:&lt;br&gt;
There are certain roles and actions that can't be performed by pg_ba_admin. Some of them are mentioned below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can't execute programs on the server. &lt;/li&gt;
&lt;li&gt;Can't Create tablespaces, casts, operator classes, access methods, and text search templates.&lt;/li&gt;
&lt;li&gt;Can't read or write files on the server. pg_ba_admin does not have permission to read or write server files.&lt;/li&gt;
&lt;li&gt;Can't Define LeakProof functions.&lt;/li&gt;
&lt;li&gt;Can't install unsupported extensions.&lt;/li&gt;
&lt;li&gt;Can't execute set session authorization.&lt;/li&gt;
&lt;li&gt;Can't execute reindex system catalogs.&lt;/li&gt;
&lt;li&gt;Can't create a language with custom handlers.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>postgres</category>
      <category>database</category>
      <category>methods</category>
      <category>functions</category>
    </item>
    <item>
      <title>Creating a distributed high-availability cluster</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Mon, 25 Sep 2023 06:49:27 +0000</pubDate>
      <link>https://forem.com/talhahahae/creating-a-distributed-high-availability-cluster-3dnh</link>
      <guid>https://forem.com/talhahahae/creating-a-distributed-high-availability-cluster-3dnh</guid>
      <description>&lt;p&gt;We will now discuss on how can we create a high availability cluster. &lt;br&gt;
When you create a distributed high-availability cluster, you will need to setup a data group. &lt;br&gt;
The cluster can contain one or two data groups:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After you have specified the type on the cluster information tab and your cluster name and password on cluster settings tab you can select next: Data Groups.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;On Nodes settings tab in the nodes section, you can either select two data nodes or three data nodes. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the database type section you can select the postgres you want to use in the postgres type field.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;select the settings for your cluster. You can find the instructions of node settings in  the following tabs: cluster settings tab and additional settings tab&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In the parameters section on DB configuration tab, you can update the value of the database configuration parameters. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select Create: Data group. the data group preview will appear.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finish the process by selecting create cluster. If you want to create a second data group you can select add a data group. &lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Creating a second data group:
&lt;/h3&gt;

&lt;p&gt;After creating the first data group, you can also create a second data group for your distributed high availability cluster by selecting add a data group before you create the cluster.&lt;/p&gt;

&lt;p&gt;By default the second data group also has same settings as your first data group. However, you can still change the settings if you want to. Just know that the settings change can change the settings for the entire cluster. The database type and cloud provider should be same in both data groups. &lt;/p&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/free_trial/quickstart/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/free_trial/quickstart/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>postgres</category>
      <category>database</category>
      <category>cluster</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Cluster Architecture</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Mon, 25 Sep 2023 06:33:50 +0000</pubDate>
      <link>https://forem.com/talhahahae/cluster-architecture-58h3</link>
      <guid>https://forem.com/talhahahae/cluster-architecture-58h3</guid>
      <description>&lt;p&gt;Previously we discussed the making of clusters in the big animal application.&lt;br&gt;
In this article, we will be discussing the cluster architecture.&lt;br&gt;
The Big Animal clusters can be exposed to client applications in two ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Public-The cluster is easily available on the internet&lt;/li&gt;
&lt;li&gt;Private-The IP address is private to the VNet or VPC service that is hosting your BigAnimal services. By default, it isn't routable from other networks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Basic Architecture:
&lt;/h2&gt;

&lt;p&gt;The application initially deploys the VNET in Azure, an amazon virtual private cloud in AWS, or a google VPC in google cloud which are then used to host clusters and their supporting management services.&lt;/p&gt;

&lt;h2&gt;
  
  
  Load Balancing:
&lt;/h2&gt;

&lt;p&gt;The Big Animal uses the following resources to make routing decisions and distributing requests.&lt;/p&gt;

&lt;h3&gt;
  
  
  Standard Load Balancer in Azure:
&lt;/h3&gt;

&lt;p&gt;When we create a cluster is created with public network access, a load balancer is created. The load balancer is configured with a public IP address. Once an IP address is assigned it is not changed until we change the network configuration of our cluster. The load balancer always routes to the leader of your cluster. &lt;/p&gt;

&lt;h3&gt;
  
  
  Amazon network load balancer in AWS:
&lt;/h3&gt;

&lt;p&gt;BigAnimal also creates a new load balancer for each cluster and tags it with the cluster-ID using following format/&lt;br&gt;
&lt;code&gt;service.k8s.aws/stack: default/&amp;lt;cluster_ID&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Since the load balancer IP address in AWS is dynamic, make sure that your application uses the correct DNS name to access the network load balancer of a particular cluster. In your application's AWS account:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Select the load balancers service.&lt;/li&gt;
&lt;li&gt;Search for the load balancer with the cluster ID you want to access. 
3- Use the DNS name to access the cluster.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Google Load balancer in google cloud:
&lt;/h3&gt;

&lt;p&gt;Big Animal creates a new load balancer using the premium network service. tier for each cluster and tags it using a unique identifier. &lt;br&gt;
The corresponding front end forwarding rule uses the same unique identifier and includes the cluster-ID in the following format.&lt;br&gt;
&lt;code&gt;{"kubernetes.io/service-name":"default/&amp;lt;cluster_ID&amp;gt;-&amp;lt;service_type&amp;gt;"}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Since the load balancer IP address used in google cloud is dynamic, make sure your application uses the correct DNS name to access the network load balancer of a particular cluster. &lt;/p&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/free_trial/quickstart/"&gt;https://www.enterprisedb.com/docs/biganimal/latest/free_trial/quickstart/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>cluster</category>
      <category>cloudcomputing</category>
      <category>database</category>
      <category>postgres</category>
    </item>
    <item>
      <title>DB configuration and Additional settings tab in EDB BigAnimal</title>
      <dc:creator>Talha Munir 🇵🇸</dc:creator>
      <pubDate>Tue, 12 Sep 2023 09:59:42 +0000</pubDate>
      <link>https://forem.com/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8</link>
      <guid>https://forem.com/talhahahae/db-configuration-and-additional-settings-tab-in-edb-biganimal-5i8</guid>
      <description>&lt;p&gt;In the series of creating a cluster this is the last article on the topic. &lt;/p&gt;

&lt;h2&gt;
  
  
  DB configuration Tab:
&lt;/h2&gt;

&lt;p&gt;You will see the below screen:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp5q6xmu7g5ztjkncsgy3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp5q6xmu7g5ztjkncsgy3.png" alt="DB configuration lab" width="800" height="474"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the parameters section, you can update the value of the database configuration parameters as needed. &lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Settings Tab:
&lt;/h2&gt;

&lt;p&gt;In additional settings tab you will see below options, you can easily set them according to your convenience.&lt;/p&gt;

&lt;h3&gt;
  
  
  Backups:
&lt;/h3&gt;

&lt;p&gt;You can change the default database backup retention period of 30 days by using the backup retention time control. &lt;br&gt;
You configure the retention period as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1-180 days &lt;/li&gt;
&lt;li&gt;1 - 25 weeks&lt;/li&gt;
&lt;li&gt;1 - 6 months
Big animal deletes backups older than the retention period. &lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Maintenance:
&lt;/h3&gt;

&lt;p&gt;This settings enable the custom maintenance window option and uses the controls to set a weekly 60-minute maintenance window in which maintenance upgrades occur for the cluster. If you don't set a window, the updates are applied at EDB's discretion with prior notification. &lt;/p&gt;

&lt;h3&gt;
  
  
  Connections:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;- Read-only workloads:&lt;/strong&gt;&lt;br&gt;
Enable Read-only Workloads. This feature directs read-only operations exclusively toward replicas. If this option is enabled, you might have to raise the IP address resource limits for the cluster:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;For Azure, the IP address quota is Standard Public IP Address.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;For AWS, the IP address quota is Elastic IP. You might also have to increase the Network Load Balancers per Region value.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Pg Bouncer:
&lt;/h3&gt;

&lt;p&gt;You can enable PG bouncer, that can help you to manage your Postgres connections and will help your workloads run more efficiently.&lt;/p&gt;

&lt;h3&gt;
  
  
  Access:
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Identity and access management:
&lt;/h4&gt;

&lt;p&gt;You can enable IAM authentication to turn on the ability to log in to Postgres using your AWS IAM credentials. &lt;/p&gt;

&lt;h4&gt;
  
  
  Super User Access:
&lt;/h4&gt;

&lt;p&gt;Enable superuser access to grant super user privileges to the edb_admin role. This option is available for single-node and primary/standby high availability clusters.&lt;/p&gt;

&lt;h2&gt;
  
  
  References:
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.postgresql.org/docs/" rel="noopener noreferrer"&gt;https://www.postgresql.org/docs/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.enterprisedb.com/docs/biganimal/latest/free_trial/quickstart/" rel="noopener noreferrer"&gt;https://www.enterprisedb.com/docs/biganimal/latest/free_trial/quickstart/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;part1: &lt;a href="https://dev.to/talhahahae/creating-a-new-cluster-in-edb-big-animal-544"&gt;https://dev.to/talhahahae/creating-a-new-cluster-in-edb-big-animal-544&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;part2: &lt;a href="https://dev.to/talhahahae/different-types-of-cluster-in-edb-2bkp"&gt;https://dev.to/talhahahae/different-types-of-cluster-in-edb-2bkp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;part3: &lt;a href="https://dev.to/talhahahae/cluster-settings-tab-in-biganimal-5ebp"&gt;https://dev.to/talhahahae/cluster-settings-tab-in-biganimal-5ebp&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>edb</category>
      <category>biganimal</category>
      <category>database</category>
      <category>postgres</category>
    </item>
  </channel>
</rss>
