[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-asset-081e5d6a":3,"seo:featured-workflow:081e5d6a-4ecb-11f1-9bc6-00163e2b0d79:zh":84,"workflow-related-asset-081e5d6a-081e5d6a-4ecb-11f1-9bc6-00163e2b0d79":85},{"id":4,"uuid":5,"slug":6,"title":7,"description":8,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":12,"parent_id":12,"parent_uuid":13,"lang_type":14,"steps":15,"tags":22,"has_voted":28,"visibility":18,"share_token":13,"is_featured":12,"content_hash":29,"asset_kind":30,"target_tools":31,"install_mode":35,"entrypoint":19,"risk_profile":36,"dependencies":38,"verification":44,"agent_metadata":47,"agent_fit":60,"trust":72,"provenance":81,"created_at":83,"updated_at":83},3615,"081e5d6a-4ecb-11f1-9bc6-00163e2b0d79","asset-081e5d6a","Patroni — High Availability PostgreSQL Cluster Manager","Patroni is a Python-based template for creating and managing highly available PostgreSQL clusters with automatic failover, using distributed consensus stores like etcd, Consul, or ZooKeeper.","8a911193-3180-11f1-9bc6-00163e2b0d79","AI Open Source","https:\u002F\u002Ftokrepo.com\u002Fapple-touch-icon.png",0,"","en",[16],{"id":17,"step_order":18,"title":19,"description":13,"prompt_template":20,"variables":13,"depends_on":21,"expected_output":13},4175,1,"Patroni PostgreSQL HA","# Patroni — High Availability PostgreSQL Cluster Manager\n\n## Quick Use\n```bash\npip install patroni[etcd]\n\n# Create patroni.yml with cluster name, etcd endpoint, and PostgreSQL config\n# Then start:\npatroni patroni.yml\n\n# Check cluster status\npatronictl -c patroni.yml list\n```\n\n## Introduction\nPatroni automates PostgreSQL high availability by managing streaming replication, leader election, and automatic failover. It uses a distributed consensus store (etcd, Consul, or ZooKeeper) to coordinate cluster state, ensuring one primary and zero or more synchronous or asynchronous replicas.\n\n## What Patroni Does\n- Bootstraps new PostgreSQL clusters or takes over existing instances\n- Performs automatic leader election and failover via distributed consensus\n- Manages streaming replication configuration between primary and replicas\n- Provides a REST API and patronictl CLI for cluster operations and switchover\n- Supports scheduled and on-demand switchovers with no data loss\n\n## Architecture Overview\nEach PostgreSQL node runs a Patroni agent that registers itself with a DCS (distributed configuration store). The DCS holds the leader lock; the agent holding the lock configures its PostgreSQL instance as primary, while others configure as replicas. If the leader fails to renew its lock, a replica with the most recent WAL position is promoted. HAProxy or PgBouncer sits in front to route connections to the current primary.\n\n## Self-Hosting & Configuration\n- Requires a running DCS (etcd, Consul, or ZooKeeper) for consensus\n- Configure patroni.yml with PostgreSQL data directory, replication settings, and DCS endpoints\n- Deploy one Patroni agent per PostgreSQL node, managed by systemd\n- Place HAProxy or a connection pooler in front for transparent client routing\n- Tune TTL, loop_wait, and retry_timeout to balance failover speed and stability\n\n## Key Features\n- Automatic failover with configurable data loss tolerance (synchronous mode available)\n- REST API for health checks, switchover, and reinitializing failed nodes\n- Supports custom bootstrap methods including pg_basebackup, WAL-E, and pgBackRest\n- Watchdog integration for split-brain prevention\n- Used in production by Zalando and many other organizations\n\n## Comparison with Similar Tools\n- **Stolon** — Go-based PostgreSQL HA manager; similar architecture but less actively maintained\n- **repmgr** — replication manager with manual or automatic failover; Patroni offers tighter DCS integration\n- **pg_auto_failover (Citus)** — built-in monitor node for HA; simpler setup but less flexible than Patroni\n- **CloudNativePG** — Kubernetes-native PostgreSQL operator; Patroni is infrastructure-agnostic\n\n## FAQ\n**Q: What happens if the DCS goes down?**\nA: Patroni enters a safe mode where the current primary continues serving but no failover can occur until the DCS recovers.\n\n**Q: Can I use Patroni with existing PostgreSQL instances?**\nA: Yes. Patroni can adopt running PostgreSQL instances without reinitializing them.\n\n**Q: How fast is automatic failover?**\nA: Typically 10-30 seconds, depending on TTL and loop_wait configuration.\n\n**Q: Does Patroni handle connection routing?**\nA: Patroni exposes health endpoints. Pair it with HAProxy, PgBouncer, or a service mesh for automatic connection routing.\n\n## Sources\n- https:\u002F\u002Fgithub.com\u002Fpatroni\u002Fpatroni\n- https:\u002F\u002Fpatroni.readthedocs.io","0",[23],{"id":24,"name":25,"slug":26,"icon":27},12,"Configs","config","⚙️",false,"caf081ba1e4d845bf6ebf6f763aada7b4a7bef29b5b3f63a80d7842c26c2006a","skill",[32,33,34],"claude_code","codex","gemini_cli","single",{"executes_code":28,"modifies_global_config":28,"requires_secrets":37,"uses_absolute_paths":28,"network_access":28},[],{"npm":39,"pip":40,"brew":42,"system":43},[],[41],"patroni[etcd]",[],[],{"commands":45,"expected_files":46},[],[19],{"asset_kind":30,"target_tools":48,"install_mode":35,"entrypoint":19,"risk_profile":49,"dependencies":51,"content_hash":29,"verification":56,"inferred":59},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":50,"uses_absolute_paths":28,"network_access":28},[],{"npm":52,"pip":53,"brew":54,"system":55},[],[41],[],[],{"commands":57,"expected_files":58},[],[19],true,{"target":33,"score":61,"status":62,"policy":63,"why":64,"asset_kind":30,"install_mode":35},98,"native","allow",[65,66,67,68,69,70,71],"target_tools includes codex","asset_kind skill","install_mode single","markdown-only","policy allow","safe markdown-only Codex install","trust established",{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":29,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":75,"review_status":76,"signals":77},"established","hash_only",[],"unreviewed",[78,79,80],"author has published assets","content hash available","no dangerous capability badges",{"owner_uuid":9,"owner_name":10,"source_url":82,"content_hash":29,"visibility":18,"created_at":83,"updated_at":83},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fasset-081e5d6a","2026-05-13 20:55:34",null,[86,144,191,238],{"id":87,"uuid":88,"slug":89,"title":90,"description":91,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":92,"parent_id":12,"parent_uuid":13,"lang_type":14,"steps":93,"tags":94,"has_voted":28,"visibility":18,"share_token":13,"is_featured":12,"content_hash":96,"asset_kind":30,"target_tools":97,"install_mode":35,"entrypoint":98,"risk_profile":99,"dependencies":101,"verification":106,"agent_metadata":109,"agent_fit":121,"trust":128,"provenance":132,"created_at":134,"updated_at":135,"__relatedScore":136,"__relatedReasons":137,"__sharedTags":142},1282,"63ff1c2c-37c8-11f1-9bc6-00163e2b0d79","thanos-global-prometheus-unlimited-retention-high-63ff1c2c","Thanos — Global Prometheus with Unlimited Retention and High Availability","Thanos extends Prometheus with global query, unlimited storage via object storage, and HA replication. It is the proven way to run Prometheus at multi-cluster, multi-year scale without changing your existing workflow.",87,[],[95],{"id":24,"name":25,"slug":26,"icon":27},"7b51d0b24831d4fbbc178793b5fe40b929601bdfa95b69528bd2c539f2d0c86f",[32,33,34],"SKILL.md",{"executes_code":28,"modifies_global_config":28,"requires_secrets":100,"uses_absolute_paths":59,"network_access":28},[],{"npm":102,"pip":103,"brew":104,"system":105},[],[],[],[],{"commands":107,"expected_files":108},[],[13],{"asset_kind":30,"target_tools":110,"install_mode":35,"entrypoint":98,"risk_profile":111,"dependencies":113,"content_hash":96,"verification":118},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":112,"uses_absolute_paths":59,"network_access":28},[],{"npm":114,"pip":115,"brew":116,"system":117},[],[],[],[],{"commands":119,"expected_files":120},[],[13],{"target":33,"score":122,"status":123,"policy":124,"why":125,"asset_kind":30,"install_mode":35},64,"needs_confirmation","confirm",[65,66,67,126,127,71],"policy confirm","risk_profile.uses_absolute_paths is true",{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":96,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":129,"review_status":76,"signals":131},[130],"uses_absolute_paths",[78,79],{"owner_uuid":9,"owner_name":10,"source_url":133,"content_hash":96,"visibility":18,"created_at":134,"updated_at":135},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fthanos-global-prometheus-unlimited-retention-high-63ff1c2c","2026-04-14 14:08:43","2026-05-13 17:20:15",99.91672400822526,[138,139,140,141],"topic-match","same-kind","same-target","same-author",[26,143],"configs",{"id":145,"uuid":146,"slug":147,"title":148,"description":149,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":150,"parent_id":12,"parent_uuid":13,"lang_type":14,"steps":151,"tags":152,"has_voted":28,"visibility":18,"share_token":13,"is_featured":12,"content_hash":154,"asset_kind":30,"target_tools":155,"install_mode":35,"entrypoint":156,"risk_profile":157,"dependencies":159,"verification":164,"agent_metadata":167,"agent_fit":179,"trust":181,"provenance":184,"created_at":186,"updated_at":187,"__relatedScore":188,"__relatedReasons":189,"__sharedTags":190},1402,"e1ff9c2c-38e6-11f1-9bc6-00163e2b0d79","cloudnativepg-production-grade-postgresql-operator-e1ff9c2c","CloudNativePG — Production-Grade PostgreSQL Operator for Kubernetes","CloudNativePG is a Level V Kubernetes operator that manages PostgreSQL clusters with streaming replication, online backups, point-in-time recovery and rolling upgrades — without any external pgBouncer-like layer.",83,[],[153],{"id":24,"name":25,"slug":26,"icon":27},"7d5fd0cbc38e687d541ed0795e660af99d21ec1a32a1b8331805093c13e494e3",[32,33,34],"CloudNativePG",{"executes_code":28,"modifies_global_config":28,"requires_secrets":158,"uses_absolute_paths":28,"network_access":28},[],{"npm":160,"pip":161,"brew":162,"system":163},[],[],[],[],{"commands":165,"expected_files":166},[],[156],{"asset_kind":30,"target_tools":168,"install_mode":35,"entrypoint":156,"risk_profile":169,"dependencies":171,"content_hash":154,"verification":176},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":170,"uses_absolute_paths":28,"network_access":28},[],{"npm":172,"pip":173,"brew":174,"system":175},[],[],[],[],{"commands":177,"expected_files":178},[],[156],{"target":33,"score":61,"status":62,"policy":63,"why":180,"asset_kind":30,"install_mode":35},[65,66,67,68,69,70,71],{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":154,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":182,"review_status":76,"signals":183},[],[78,79,80],{"owner_uuid":9,"owner_name":10,"source_url":185,"content_hash":154,"visibility":18,"created_at":186,"updated_at":187},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fcloudnativepg-production-grade-postgresql-operator-e1ff9c2c","2026-04-16 00:19:31","2026-05-13 20:04:23",88.88641892909283,[138,139,140,141],[26,143],{"id":192,"uuid":193,"slug":194,"title":195,"description":196,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":197,"parent_id":12,"parent_uuid":13,"lang_type":14,"steps":198,"tags":199,"has_voted":28,"visibility":18,"share_token":13,"is_featured":12,"content_hash":201,"asset_kind":30,"target_tools":202,"install_mode":35,"entrypoint":98,"risk_profile":203,"dependencies":205,"verification":210,"agent_metadata":213,"agent_fit":225,"trust":227,"provenance":231,"created_at":233,"updated_at":234,"__relatedScore":235,"__relatedReasons":236,"__sharedTags":237},1085,"412fe31a-3634-11f1-9bc6-00163e2b0d79","echo-high-performance-minimalist-go-web-framework-412fe31a","Echo — High Performance Minimalist Go Web Framework","Echo is a high performance, minimalist Go web framework. Clean API, automatic TLS, HTTP\u002F2, data binding, middleware, and group routing. A strong alternative to Gin with excellent documentation and built-in features.",125,[],[200],{"id":24,"name":25,"slug":26,"icon":27},"4429811a2bce65a5aa0b2bb0e3b94241c47b26d681c48e57eeaf3f196e56a6e1",[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":204,"uses_absolute_paths":28,"network_access":28},[],{"npm":206,"pip":207,"brew":208,"system":209},[],[],[],[],{"commands":211,"expected_files":212},[],[13],{"asset_kind":30,"target_tools":214,"install_mode":35,"entrypoint":98,"risk_profile":215,"dependencies":217,"content_hash":201,"verification":222},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":216,"uses_absolute_paths":28,"network_access":28},[],{"npm":218,"pip":219,"brew":220,"system":221},[],[],[],[],{"commands":223,"expected_files":224},[],[13],{"target":33,"score":61,"status":62,"policy":63,"why":226,"asset_kind":30,"install_mode":35},[65,66,67,68,69,70,71],{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":201,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":228,"review_status":76,"signals":229},[],[230,78,79,80],"asset has usage views",{"owner_uuid":9,"owner_name":10,"source_url":232,"content_hash":201,"visibility":18,"created_at":233,"updated_at":234},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fecho-high-performance-minimalist-go-web-framework-412fe31a","2026-04-12 13:55:48","2026-05-13 23:20:54",86.15055581767635,[138,139,140,141],[26,143],{"id":239,"uuid":240,"slug":241,"title":242,"description":243,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":244,"parent_id":12,"parent_uuid":13,"lang_type":14,"steps":245,"tags":246,"has_voted":28,"visibility":18,"share_token":13,"is_featured":12,"content_hash":248,"asset_kind":30,"target_tools":249,"install_mode":35,"entrypoint":250,"risk_profile":251,"dependencies":253,"verification":258,"agent_metadata":261,"agent_fit":273,"trust":275,"provenance":278,"created_at":280,"updated_at":281,"__relatedScore":282,"__relatedReasons":283,"__sharedTags":284},1598,"fac5cfb3-398f-11f1-9bc6-00163e2b0d79","bpftrace-high-level-tracing-language-linux-ebpf-fac5cfb3","bpftrace — High-Level Tracing Language for Linux eBPF","A high-level tracing language for Linux that uses eBPF to instrument the kernel and user-space programs. Write powerful one-liner performance analysis scripts with an awk-like syntax that compiles to eBPF bytecode.",73,[],[247],{"id":24,"name":25,"slug":26,"icon":27},"6f583bd32e1d4ba9e3878099ac66f4247cfe11f9977061ff3f36261ad329743d",[32,33,34],"bpftrace",{"executes_code":28,"modifies_global_config":28,"requires_secrets":252,"uses_absolute_paths":28,"network_access":28},[],{"npm":254,"pip":255,"brew":256,"system":257},[],[],[],[],{"commands":259,"expected_files":260},[],[250],{"asset_kind":30,"target_tools":262,"install_mode":35,"entrypoint":250,"risk_profile":263,"dependencies":265,"content_hash":248,"verification":270},[32,33,34],{"executes_code":28,"modifies_global_config":28,"requires_secrets":264,"uses_absolute_paths":28,"network_access":28},[],{"npm":266,"pip":267,"brew":268,"system":269},[],[],[],[],{"commands":271,"expected_files":272},[],[250],{"target":33,"score":61,"status":62,"policy":63,"why":274,"asset_kind":30,"install_mode":35},[65,66,67,68,69,70,71],{"author_trust_level":73,"verified_publisher":28,"asset_signed_hash":248,"signature_status":74,"install_count":12,"report_count":12,"dangerous_capability_badges":276,"review_status":76,"signals":277},[],[78,79,80],{"owner_uuid":9,"owner_name":10,"source_url":279,"content_hash":248,"visibility":18,"created_at":280,"updated_at":281},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fbpftrace-high-level-tracing-language-linux-ebpf-fac5cfb3","2026-04-16 20:29:57","2026-05-13 07:36:30",85.80384757959646,[138,139,140,141],[26,143]]