Results 1 to 6 of 6

Sitemap Gen in multi-server environment?

This is a discussion on Sitemap Gen in multi-server environment? within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; I am currently faced with one issue, I hope that you guys can help clarifying. I have currently three www ...

  1. #1
    Member
    Real Name
    Vlad
    Join Date
    Feb 2006
    Location
    NYC
    Posts
    47
    Liked
    0 times

    Question Sitemap Gen in multi-server environment?

    I am currently faced with one issue, I hope that you guys can help clarifying.

    I have currently three www front ends along with 2 db master/slave servers running my forums. When I visit the sitemap generator page and run the script manually, only the one front end gets the sitemap data generated that was assigned to me via the load balancer. I understand that I can then run an rsync between the three servers to update the contents.

    How does it work when I run the scheduled task / cron job though. ./vbseo_sitemap/vbseo_sitemap.php will be run, but on which box? Are the cron jobs executed on all three boxes simultaneously or just one?

    I guess this is more of a general question about the inner workings of vB scheduled tasks, still thought I'd ask for this case though.

    Thanks in advance!

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    In case of "regular" vB scheduled task, sitemap generator will be executed on the box that will server "cron.php" request at that particular moment (i.e. one random server). You can setup system cron task for every server though to regenerate sitemap on all boxes or create rsync script that will put sitemaps on all your hosts.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Member
    Real Name
    Vlad
    Join Date
    Feb 2006
    Location
    NYC
    Posts
    47
    Liked
    0 times
    How would I go about running the cron on all three servers?

  4. #4
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You should setup a cron task for every box either in hosting control panel or in command line using crontab. The cmd line would be:
    /usr/local/bin/php /path/to/forum/vbseo_sitemap/vbseo_sitemap.php
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  5. #5
    Member
    Real Name
    Vlad
    Join Date
    Feb 2006
    Location
    NYC
    Posts
    47
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    You should setup a cron task for every box either in hosting control panel or in command line using crontab. The cmd line would be:
    /usr/local/bin/php /path/to/forum/vbseo_sitemap/vbseo_sitemap.php
    That was waaaaay too obvious. I forgot that it was not required to run the maintenance tasks via the vB scheduled tasks but that it all could be run as a system cron.

    I'll give that a shot!
    Thanks Oleg, great work as usual.

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You are welcome!
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. sitemap file without web server access
    By ksugam in forum General Discussion
    Replies: 1
    Last Post: 12-06-2007, 01:19 AM
  2. Problems setting up test environment
    By convergent in forum General Discussion
    Replies: 2
    Last Post: 11-03-2007, 03:19 PM
  3. Multi Domain Support
    By rdm in forum vBSEO Features Archive
    Replies: 10
    Last Post: 05-17-2007, 03:29 PM
  4. change sitemap path to server
    By spagman in forum General Discussion
    Replies: 1
    Last Post: 11-22-2006, 06:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •