Gestan can operate using two data connection modes:
C/S mode offers the following advantages:
The installation of an HFSQL server is detailed in the tutorial below. If necessary, this installation can be performed for you by the Gestan technical support team.
In Classic mode, the program (Gestan.exe) accesses the database directly (the xxxxx.FIC, .NDX, and .MMO files). Data access management is handled exclusively by the operating system—in this case, Windows—using Windows' data sharing system (handling reads, updates, concurrent access, caching, etc.).
In Client/Server mode, the Gestan.exe program communicates with a data server application (the HFSQL server); this server queries the database and returns the requested data. Windows file sharing is no longer used: the HFSQL server alone handles data access on the server machine. From a technical standpoint, this offers two advantages:
First, install Gestan in “Classic” mode.
Next, install the HFSQL server. It is available for free on the PCSoft website for both Windows and Linux (you can even find a load-balanced cluster version there for use cases involving a very large number of users).
By default, the program installs to `C:\Program Files\PC SOFT\Serveur HFSQL`.
You can install the HFSQL server on:
The machine hosting the “server” component of the application does not necessarily need to run a server-grade operating system (Windows Server, Windows Enterprise Server, Linux Server, etc.). A standard PC running Windows 7, 10, or 11, or a Linux desktop distribution, is sufficient. However, server versions of operating systems are superior and will positively impact the software's overall performance.
You can find many videos online, for example:
During installation, you can set up usernames and passwords for users authorized to connect to and/or administer the server.
The Database directory field on the Configuration tab specifies where the databases are stored.
By default, the directory is %%COMMONAPPDATA%%\PC SOFT\Serveur HFSQL [server name]\BDD—for example, C:\ProgramData\PC SOFT\Serveur HFSQL srv1\BDD on a machine with the Windows name “srv1”.
It is advisable to specify a more easily accessible directory, such as C:\BDD-HFSQL, particularly to make backups more convenient.
To stop the HFSQL services: go to Control Panel → Administrative Tools → Services, and stop the “Hyper File Server” and “MantaManager” services.
You must now import your “Classic” database into the HFSQL server using the button below.
The Control Center will ask you to specify:
Since January 1, 2018, French law has required software vendors to implement data locking; consequently, all Gestan files are encrypted and password-protected. However, you do not need these passwords for the import process: to make the password optional, simply leave the analysis file path blank.
Starting with versions 15.41.00/U03, Gestan includes a menu specifically for client/server installations: Tools → Administration → Special tools → Link cleanup. This procedure cleans up any erroneous database links that may have been created randomly during the import process. This is a long-standing bug in the HFSQL server; it was reported to PCSoft about ten years ago, but they have never taken the time to fix it.
More details: link cleanup.
Special thanks to Yves B., an IT consultant, for identifying this issue.
By default, the HFSQL server installs with an “Admin” user who has super-admin rights across all databases. Depending on your security requirements, it may be advisable to create a specific user in Gestan—one who is not a super-admin on the HFSQL server—and assign them specific database permissions, as shown below.
The HFSQL connection normally uses port 4900, though you are free to use a different port. The HFSQL server installer usually opens this port automatically, but if you need to verify it, here are the details.
The communication port (normally 4900) must be open for TCP traffic, as configured below (you can restrict the exception to your internal network).
- On Windows 2012
- On Windows Server 2008 R2
To verify that port 4900 is open, you can use telnet (telnet [IP] 4900).
If you have an internet router and a local network, you will likely need to add a port forwarding rule.
Below is the configuration for an Orange Livebox for an HFSQL server installed on machine 192.168.1.100.
This configuration works with a Livebox V3; it differs for the V4. * HFCS server inaccessible after Livebox change (PCSoft forum)
If you want your server's Gestan data to be accessible remotely via the Internet (using the HTTP protocol), you must open TCP port 4900. On client machines, you will need to specify your server's IP address.
You will need to open a port in the firewall protecting the server.
You can choose to either:
Similarly, if the client machine uses a firewall, it must allow applications to connect outbound via the port being used.
Next, you need to enter the connection settings in Gestan.
To do this in Gestan, go to the Tools → Administration → Multi-company management menu, then click the New button.
Define the connection as detailed for LAN mode or WAN mode.
And that's it!
Response times depend partly on the quality of your Internet connection; you can test its speed.
Reverse migration—switching from Gestan C/S to Gestan Classic—requires two steps:
Defining a robust backup strategy is the primary responsibility of any company's IT manager.
While not the only solution, the control center includes a tool for automating backups.
To do this:
Verifying that backups are working correctly is part of the backup strategy!
Although this information is slightly dated—thanks to Guillaume Bayle - PC Soft—it remains relevant.
What should you focus on for a proper Client/Server configuration? (Some points also apply to optimizing response times in standard network mode.)
The most important factor is having sufficient memory on the server. If memory runs low, the system uses a disk-based swap file, causing performance to drop—potentially degrading it severely if the swap file is located on the same disk as the HyperFileSQL Client/Server engine data.
Generally speaking, 16 GB of RAM is a good starting point. This is the standard memory capacity for current server configurations.
To accurately assess the required amount of RAM, you can conduct “real-world” application tests and analyze server activity statistics. Simply go to the “Logs and Statistics” tab in the HyperFileSQL Control Center, then:
This allows you to precisely evaluate the RAM used by one or more connections, in order to… to estimate the RAM required based on the number of workstations to be connected to the server upon deployment.
Do not forget to take into account the RAM …also required by the system (8 GB for Windows 11, which is very resource-intensive) and by other applications.
Fast drives (7,400 rpm, or 15,000 rpm if possible) improve response times; SSDs offer the best performance.
If possible, separate the data drive from the system drive (especially for the swap file). To move the swap file, see here or there.)
Processor speed affects server responsiveness. A “Xeon” processor (or higher) is recommended if the applications perform significant processing on the server (stored procedures, triggers, etc.).
Use high-quality routers. In particular, the routing capabilities of some standard ISP gateways/routers are notably poor.
In a 32-bit environment, a single process cannot allocate more than 2 GB of memory (in practice, the maximum is around 1.6 GB). A 64-bit processor allows for memory allocation beyond 2 GB. Install the HFSQL server in 64-bit mode only.
The HFSQL engine is available for both Windows and Linux; the choice depends on the habits and expertise of the administration teams.
For Windows, any version is suitable. However, a “Server” edition is preferable for optimal performance and system security.
For Linux, the most widely used distributions are Debian, openSUSE, Ubuntu, Fedora, and Mandriva. See also on the PCSOFT blog:
If the HFSQL server is installed on Linux and file access is managed via SAMBA, specific configuration is required. In the `smb.conf` file (commonly located at `/etc/samba`), you must add or modify the following parameters within the `[global]` section:
[global] locking = yes strict locking = yes share modes = yes oplocks = no kernel oplocks = no blocking locks = no fake oplocks = no level2 oplocks = no
Next, you must restart the Samba service to apply the new configuration.
ℹ️ Other “Admin” articles