<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Config on PIGSTY</title>
    <link>https://v27.pgsty.pro/categories/config/</link>
    <description>Recent content in Config on PIGSTY</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    
    
    
      <lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate>
    
    
      <atom:link href="https://v27.pgsty.pro/categories/config/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>Configuration</title>
        <link>https://v27.pgsty.pro/docs/pgsql/config/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/pgsql/config/</guid>
        <description>&lt;p&gt;You can define different types of instances &amp;amp; clusters.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/reference/param/#pg_id&#34;&gt;Identity&lt;/a&gt;: Parameters used for describing a PostgreSQL cluster&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#primary&#34;&gt;Primary&lt;/a&gt;: Define a single instance cluster.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#replica&#34;&gt;Replica&lt;/a&gt;: Define a basic HA cluster with one primary &amp;amp; one replica.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#offline&#34;&gt;Offline&lt;/a&gt;: Define a dedicated instance for OLAP/ETL/Interactive queries&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#sync-standby&#34;&gt;Sync Standby&lt;/a&gt;: Enable synchronous commit to ensure no data loss.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#quorum-commit&#34;&gt;Quorum Commit&lt;/a&gt;:   Use quorum sync commit for an even higher consistency level.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#standby-cluster&#34;&gt;Standby Cluster&lt;/a&gt;: Clone an existing cluster and follow it&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#delayed-cluster&#34;&gt;Delayed Cluster&lt;/a&gt;: Clone an existing cluster for emergency data recovery&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#citus-cluster&#34;&gt;Citus Cluster&lt;/a&gt;: Define a Citus distributed database cluster&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/config/#major-version&#34;&gt;Major Version&lt;/a&gt;: Create postgres cluster with different major version&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;primary&#34;&gt;Primary&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s start with the simplest case, singleton meta:&lt;/p&gt;</description>
      </item>
    <item>
        <title>Configuration</title>
        <link>https://v27.pgsty.pro/docs/setup/config/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/setup/config/</guid>
        <description>&lt;p&gt;&lt;strong&gt;Pigsty treats Infra &amp;amp; Database as Code.&lt;/strong&gt; You can describe the infrastructure &amp;amp; database clusters through a declarative interface. All your essential work is to describe your need in the &lt;a href=&#34;https://v27.pgsty.pro/docs/setup/config/#inventory&#34;&gt;inventory&lt;/a&gt;, then materialize it with a simple idempotent playbook.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;inventory&#34;&gt;Inventory&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Each pigsty deployment has a corresponding config &lt;strong&gt;inventory&lt;/strong&gt;. It could be stored in a local git-managed file in &lt;a href=&#34;https://docs.ansible.com/ansible/2.9/user_guide/playbooks_variables.html&#34;&gt;YAML&lt;/a&gt; format or dynamically generated from &lt;a href=&#34;https://docs.ansible.com/ansible/2.9/user_guide/intro_dynamic_inventory.html&#34;&gt;CMDB&lt;/a&gt; or any ansible compatible format. Pigsty uses a monolith YAML config file as the default config inventory, which is &lt;a href=&#34;https://github.com/Vonng/pigsty/blob/v2.7.0/pigsty.yml&#34;&gt;&lt;code&gt;pigsty.yml&lt;/code&gt;&lt;/a&gt;,  &lt;a href=&#34;https://github.com/Vonng/pigsty/blob/v2.7.0/ansible.cfg#L3&#34;&gt;located&lt;/a&gt; in the pigsty home directory.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Infra as Code</title>
        <link>https://v27.pgsty.pro/docs/concept/iac/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/concept/iac/</guid>
        <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Infra as Code, Database as Code, Declarative API &amp;amp; Idempotent Playbooks, GitOPS works like a charm.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;Pigsty provides a &lt;strong&gt;declarative&lt;/strong&gt; interface: Describe everything in a &lt;a href=&#34;https://v27.pgsty.pro/docs/setup/config/&#34;&gt;config&lt;/a&gt; file,&#xA;and Pigsty operates it to the desired state with idempotent &lt;a href=&#34;https://v27.pgsty.pro/docs/setup/playbook/&#34;&gt;playbooks&lt;/a&gt;.&#xA;It works like Kubernetes CRDs &amp;amp; Operators but for databases and infrastructures on any nodes: bare metal or virtual machines.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;declare-module&#34;&gt;Declare Module&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Take the default config snippet as an example, which describes a node &lt;code&gt;10.10.10.10&lt;/code&gt; with modules &lt;a href=&#34;https://v27.pgsty.pro/docs/infra/&#34;&gt;&lt;code&gt;INFRA&lt;/code&gt;&lt;/a&gt;, &lt;a href=&#34;https://v27.pgsty.pro/docs/node/&#34;&gt;&lt;code&gt;NODE&lt;/code&gt;&lt;/a&gt;, &lt;a href=&#34;https://v27.pgsty.pro/docs/etcd/&#34;&gt;&lt;code&gt;ETCD&lt;/code&gt;&lt;/a&gt;, and &lt;a href=&#34;https://v27.pgsty.pro/docs/pgsql/&#34;&gt;&lt;code&gt;PGSQL&lt;/code&gt;&lt;/a&gt; installed.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
