Language Selection

English French German Italian Portuguese Spanish

New Content/Layout OK?

Varnish Proxy

Silly me, a poll would not work on the new server. I forgot that with the Varnish cache proxy at the front almost all visitors arrive from the same IP address (the proxy), which means that Drupal would allocate just one vote to all (except registered and presently logged in users). With Drupal upgrade we can perhaps find polling software that overcomes this.

rpaf

You must use mod_rpaf to fix this problem that Varnish introduces.
See eg https://www.varnish-cache.org/lists/pipermail/varnish-misc/2008-September/016470.html
mod_rpaf for EL6 64bit here: http://centos.alt.ru/repository/centos/6/x86_64/mod_rpaf-0.6-2.el6.x86_64.rpm

Proxy

Thank, we will look into it. Currently, a lot of stuff other than the poll (e.g. views being counted) are not compatible with Varnish and it makes it look as though not many people visit and can participate in the site.

For sheer stats you could use

For sheer stats you could use an external (i.e. not cached by varnish) service, such as Google Analytics or run your own Piwik.

Piwik

Google Analytics is spyware, but Piwik would be a possibility (Stallman recently told me that it's good). Can it be installed on a cache proxy? I'd have to gain access to it first. Either way, this would not facilitate per-post page request count. Susan had it set up with a module, but it's no longer working correctly. In turn, rating/sorting posts by popularity is no longer possible, and that's the real downside (the front page can no longer list popular items for today).

The problem is not just that IP addresses are not unique. Some requests are never seen by the CMS and Apache.

For the non-unique addresses

For the non-unique addresses look at mod_rpaf, it was made for this situations.
Is this drupal6 or 7? With 6 varnish integration sucks from what I've seen.

See also
https://drupal.org/project/varnish
https://fourkitchens.atlassian.net/wiki/display/TECH/Configure+Varnish+3+for+Drupal+7

Agreed on Google Analytics. You can just install Piwik on the same host and tell Varnish either not to cache it or you can just set its virtualhost on a port other than 80 so it bypasses Varnish completely.

Varnish

Thanks for the pointers.

Yes, it's Drupal 6 and there are other issues that I am beginning to see, such as lack of updates from the RSS feeds around the page (I am currently investigating this, maybe it's related to a cron job or module config although I very much doubt the latter as I haven't changed configs).

Non-unique addresses could be bypassed as an issue even by writing random IP addresses, but that would enable easy poll rigging. I guess it's not essential for operation of the site, but it's a nice-to-have...

From Drupal.org: "This module provides integration between your Drupal site and the Varnish HTTP Accelerator, an advanced and very fast reverse-proxy system. Basically, Varnish handles serving static files and anonymous page-views for your site much faster and at higher volumes than Apache, in the neighborhood of 3000 requests per second."

I have had such issues with Varnish on top of WordPress and MediaWiki (pages served improperly from cache) and it all makes me wonder if removing Varnish altogether is the best way to proceed.

As for Piwik, I have never tried it before, so I will look into it.

I would keep Varnish on for

I would keep Varnish on for static files (css, js, jpeg etc) and to clean up HTTP traffic (Varnish will not forward incomplete or malformed HTTP requests to the backend, it should also be the front line against synfloods etc).

Here's a sample of what I use (test it first, I'm just beginning with Varnish myself)

director default dns {
.list = {
.port = "8080";
.connect_timeout = 5s;
.first_byte_timeout = 600s;
.between_bytes_timeout = 600s;
.max_connections = 10000;
"172.16.1.53"/32;
}
}
sub vcl_recv {
if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {
return(lookup);
}
}
sub vcl_fetch {
if (req.url ~ "\.(png|gif|jpg|swf|css|js)$") {
unset beresp.http.set-cookie;
}
if (req.restarts == 0) {
if (req.http.x-forwarded-for) {
set req.http.X-Forwarded-For =
req.http.X-Forwarded-For + ", " + client.ip;
} else {
set req.http.X-Forwarded-For = client.ip;
}
}
}

Then install mod_rpaf and make sure your Apache is listening on port 8080 and add this to /etc/httpd/conf.d/rpaf.conf:
LoadModule rpaf_module modules/mod_rpaf-2.0.so

RPAFenable On
RPAFproxy_ips 127.0.0.1 IPs_OF_THE_SERVER
RPAFsethostname On
RPAFheader X-Forwarded-For

PS: looks like drupal is messing with my comments, here's a text version http://fpaste.org/74672/raw/

Thanks

Thanks, I will look at it and into it in the weekend.

RSS feeds

The Piwik demo looks impressive, I have just given them a word of endorsement.

I am still trying to resolve some other issues we've identified.

I think I found the source of the issue above (RSS feeds). It seems like any external site access is denied by default, which helps explain why RSS feeds cannot be retrieved by the Drupal part of the site:


[root@tuxmachines ~]# wget lxer.com
--2014-02-05 04:34:37--  http://lxer.com/
Resolving lxer.com... 108.166.170.174
Connecting to lxer.com|108.166.170.174|:80... failed: Connection refused.
[root@tuxmachines ~]# wget linuxtoday.com
--2014-02-05 04:34:54--  http://linuxtoday.com/
Resolving linuxtoday.com... 70.42.23.121
Connecting to linuxtoday.com|70.42.23.121|:80... failed: Connection refused.

Looks like a firewall issue

Looks like a firewall issue at the first glance.

Firewall

Nux wrote:

Looks like a firewall issue at the first glance.

Yes, it was a simply issue to tackle. It works now.

Pageview count and polls

I'll have a look and see if configuration can solve not just the polling issue but also pageview count. The site of this module is down and it seems like it may require configuration on the cache server too.

More in Tux Machines

Graphics: Vulkan, Intel and NVIDIA

  • Vulkan 1.2.158 Released With Fragment Shading Rate Extension - Phoronix

    Vulkan 1.2.158 was released this morning with two notable extensions introduced. First up is VK_KHR_fragment_shading_rate that allows changing the rate at which fragments are shaded. Multiple pixels can be shaded now by a single fragment shader invocation. The new extension allows controlling the fragment shading rate on a per-draw, per-primitive, or per-region basis. Most notably this can be used by Vulkan-powered games for shading higher levels of detail in a scene compared to others. Or rather lower quality shading in some areas of the scene.

  • Linux 5.10 Continues Bringing Up Support For Intel's Rocket Lake - Phoronix

    Building off Linux 5.9 that featured initial support for Gen12 graphics on next year's Rocket Lake desktop platform along with other early enablement for Rocket Lake like RAPL support and other PCI ID additions, that work has continued for the Linux 5.10 cycle. The libata pull adds Rocket Lake PCH-H RAID PCI IDs as one of the additions. There is also the platform-drivers-x86 work for Linux 5.10 where Rocket Lake support is added to the intel_pmc_core driver.

  • GCC's Ada Frontend Seeing More Work On NVIDIA CUDA Support - Phoronix

    Should you want to use the Ada programming language for GPU programming, the GCC compiler has been working on CUDA support within its front-end for this safety and security minded language. In the past born out of academia there's been CUDA Ada bindings. There has also been Ada/SPARK GPU programming initiatives in the past with various APIs. This latest still ongoing effort is wiring up the GCC Ada front-end with CUDA support.

  • You may want to avoid Linux Kernel 5.9 if you want fully supported NVIDIA drivers | GamingOnLinux

    On the official NVIDIA forum, an employee put out an announcement warning NVIDIA GPU owners that the Linux Kernel 5.9 and later is currently unsupported. It's worth noting they posted that in the CUDA forum, so other workloads like gaming may work as normal. In the post they mention Kernel 5.9+ is currently "incompatible" with any of their drivers, and they're suggesting to wait until "mid-November" for a fresh NVIDIA driver update which is expected to bring support for it. They're "working diligently" to get ready to support it.

Con Kolivas Releases Linux 5.9-ck1 (MuQSS)

      
  • -ck hacking: linux-5.9-ck1, MuQSS version 0.204 for linux-5.9

    Unfortunately these past few months have been marred by lockdown and family issues, culminating in the ultimate death of my father just over a month ago (unrelated to covid19 but made that much worse because of its effects on everything in our city) so linux kernel was the furthest thing from my mind and a 5.8 resync never happened. He'll be sorely missed, and if this were something more substantial I'd dedicate it towards him but it doesn't do him justice. Announcing a new -ck release, 5.9-ck1  with the latest version of the Multiple Queue Skiplist Scheduler, version 0.204 These are patches designed to improve system responsiveness and interactivity with specific emphasis on the desktop, but configurable for any workload. 

  • Linux 5.9-ck1 Released With Updated MuQSS - Phoronix

    Independent Linux kernel developer Con Kolivas (and retired anaesthetist) is back on track with a new update to his "CK" patch-set and the MuQSS scheduler.  The retired doctor had taken some time off from his kernel development hobby earlier this year to help design equipment for the COVID-19 battle. He did manage to release his updated patches for Linux 5.7 but has been becoming increasingly concerned over the size of the Linux kernel and his ability in the future to continue maintaining these independent patches as a result. Making the matters worse, his father passed away (non-COVID) and that further complicated his development work. 

Change CPU Governor And Frequencies On Linux With cpupower-gui (New Release)

cpupower-gui is a tool that makes it easy to change the CPU governor as well as the CPU frequency limits on Linux. [...] This Python3 + Gtk3 application was updated to version 0.9.0 (followed by 0.9.1 to fix a few bugs) recently with new features, like the ability to use custom CPU profiles for quickly switching the settings. You can switch between the 2 pre-built profiles, Balanced and Performance, from the cpupower-gui user interface, but you can't change them or create a new profile from there. Read more

Ubuntu Vs Pop!_OS: Which One’s Better?

Both Ubuntu and Pop!OS is great for beginners as well as professionals. Like how the budget Android devices ship with a lot of bloatware, Ubuntu also ships with bloatware, resulting in a relatively poor user experience and performance compared to Pop!_OS. Ubuntu also comes with “Ubuntu Minimal options” that don’t include many applications letting you install what you actually need. Apart from that, Ubuntu’s software center has a built-in section for snap applications, whereas you won’t find snap packages in the Pop!_OS shop rather you’ll find the Flatpak package option. However, Snap packages take too much space on the disk; hence, we suggest you consider using the APT version of any application. Pop!_OS also has its own official PPA, where you can find applications like TensorFlow and Android Studio one “apt-get install” away from installing. Read more