Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faster start #3213

Merged
merged 9 commits into from
May 28, 2018
Merged

Faster start #3213

merged 9 commits into from
May 28, 2018

Conversation

fdurand
Copy link
Member

@fdurand fdurand commented May 1, 2018

Description

Up to 30s start faster.
Use the perl module to generate the configuration instead of pfcmd

Impacts

Systemd script

Delete branch after merge

YES

NEWS file entries

Enhancements

  • Faster start

@@ -173,6 +173,7 @@ sub service_exists {
my (@services) = @_;

foreach my $service (@services) {
next if ($service eq 'pf');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this remove the checkup when starting all PF services ?

If so, it doesn't sound that good since some people may miss out on major issues

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it doesn't , here a sample when i restart pf:

fabian81:/usr/local/pf$ bin/pfcmd service pf restart
service|command
api-frontend|Service enabled
etcd|Service enabled
fingerbank-collector|Service enabled
haproxy-db|Service enabled
haproxy-portal|Service enabled
httpd.aaa|Service enabled
httpd.admin|Service enabled
httpd.collector|Service disabled
httpd.dispatcher|Service enabled
httpd.parking|Service enabled
httpd.portal|Service enabled
httpd.proxy|Service disabled
httpd.webservices|Service enabled
iptables|Service enabled
keepalived|Service enabled
netdata|Service enabled
pfbandwidthd|Service disabled
pfdetect|Service disabled
pfdhcp|Service enabled
pfdhcplistener|Service enabled
pfdns|Service enabled
pffilter|Service enabled
pfipset|Service enabled
pfmon|Service enabled
pfperl-api|Service enabled
pfqueue|Service enabled
pfsso|Service enabled
pfstats|Service enabled
radiusd-eduroam|Service enabled
radiusd-acct|Service enabled
radiusd-auth|Service enabled
radiusd-load_balancer|Service enabled
radiusd-cli|Service enabled
radsniff|Service enabled
redis_ntlm_cache|Service disabled
redis_queue|Service enabled
routes|Service disabled
snmptrapd|Service disabled
tc|Service enabled
winbindd|Service enabled
service|command
haproxy-db|stop
pf|stop
Could not write namespace config::PfDefault to L2 cache !
....
Could not write namespace resource::unified_api_system_user to L2 cache !
haproxy-db|start
Checking configuration sanity...
WARNING - template directory '/usr/local/pf/html/captive-portal/profile-templates/Wire' for profile Wire does not exist using default templates
WARNING - template directory '/usr/local/pf/html/captive-portal/profile-templates/Dot1x' for profile Dot1x does not exist using default templates
pf|start

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As they said in France:
"Superbe! maintenant allons chercher une baguette chez le boulanger"

@fdurand
Copy link
Member Author

fdurand commented May 25, 2018

Rebased, ready for the last review

@julsemaan julsemaan merged commit 13075f3 into devel May 28, 2018
julsemaan added a commit that referenced this pull request May 28, 2018
@fdurand fdurand deleted the feature/faster_start branch October 16, 2018 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants