FAQ
How to configure NTP service?
NTP is critical for production services. If it is not configured, use public NTP services or Chronyd on the admin node as the time source.
If the nodes already have NTP configured, set node_ntp_enabled to false to preserve that configuration.
Otherwise, if you have Internet access, you can use public NTP services such as pool.ntp.org.
Without Internet access, use the configuration below to synchronize all nodes with the admin node. You can also use another internal NTP service.
How to force sync time on nodes?
Use chronyc to sync time. You must configure the NTP service first.
You can replace all with any group or host IP address to limit the execution scope.
Remote nodes are not accessible via SSH?
A target can require an SSH jump host or other settings that prevent direct ssh ip access. Use Ansible connection parameters to specify the required SSH options. For example:
Password required for remote node SSH and SUDO?
When performing deployments and changes, the admin user used must have ssh and sudo privileges for all nodes. Passwordless login is not required.
Pass SSH and sudo passwords with the -k|-K parameters when you run playbooks. To run a playbook as another user, use -eansible_user=<another_user>.
However, Pigsty strongly recommends configuring SSH passwordless login with passwordless sudo for the admin user.
How to create a dedicated admin user with an existing admin user?
Use an existing admin user on the node to run this command. It creates the standard admin user specified by node_admin_username.
How to expose services using HAProxy on nodes?
Use haproxy_services to define exposed services. Run node.yml -t haproxy_config,haproxy_reload to update the configuration.
Here’s an example of exposing Silo: Silo Service Access
Why are all my /etc/yum.repos.d/* files gone?
Pigsty builds a local software repository on infra nodes that includes all dependencies. By default, node_repo_modules is local. Regular nodes use the local software repository on Infra nodes.
This design avoids Internet access and enhances installation stability and reliability. Pigsty moves all original repository definition files to /etc/yum.repos.d/backup. Copy them back as needed.
If you want to preserve the original repo definition files during regular node installation, set node_repo_remove to false.
If you want to preserve the original repo definition files during Infra node local repo construction, set repo_remove to false.
Why did my command line prompt change? How to restore it?
The PS1 environment variable defines the Pigsty shell prompt. Pigsty sets it in /etc/profile.d/node.sh.
If you don’t like it and want to modify or restore it, you can remove this file and log in again.
Why did my hostname change?
Pigsty will modify your node hostname in two situations:
nodenamevalue is explicitly defined (default is empty)- The
PGSQLmodule is declared on the node and thenode_id_from_pgparameter is enabled (default istrue)
If you don’t want the hostname to be modified, you can set nodename_overwrite to false at the global/cluster/instance level (default is true).
For details, see the NODE_ID section.
What compatibility issues exist with Tencent OpenCloudOS?
OpenCloudOS does not provide the softdog kernel module. Remove it from node_kernel_modules. Add this override to the global configuration variables:
What common issues exist on Debian systems?
When using Pigsty on Debian/Ubuntu systems, you may encounter the following issues:
Missing locale
If the system reports locale-related errors, you can fix them with the following command:
Missing rsync tool
Pigsty relies on rsync for file synchronization. If the system doesn’t have it installed, you can install it with:
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)