Skip to main content

How to refresh Geos cache?

To refresh the Geos cache, you need to update the search API (Apache Solr) and refresh the cache on both server nodes (geos-02 and geos-03).

Steps

  1. SSH into geos-02 or geos-03:
    ssh geos-02
    # or
    ssh geos-03
    
  2. Switch to deployer user:
    sudo su - deployer
    
  3. Generate cache (on both nodes):
    /usr/bin/curl http://localhost:3000/generate
    
  4. Reindex Solr (on both nodes):
    /usr/bin/curl http://localhost:4000/indexer/reindex/3
    
You must run these commands on both geos-02 and geos-03 to ensure the cache is refreshed across all search instances.

Production Notes

Common Operations

Check PM2 status:
pm2 list
Restart services:
pm2 restart all
View logs:
pm2 logs admin    # Admin panel logs
pm2 logs          # All logs
Stop services:
pm2 stop all

Configuration Locations

  • Admin Panel MySQL Config: /home/deployer/geos/admin_panel/config/adapters.js
  • MySQL Database Config: /home/deployer/geos/config/database.json

Important Notes

  • Weather ID column is heavily used throughout the system and cannot be removed, even though it was originally a mapper to Foreca
  • is_enterprise_only flag controls access to enterprise locations for ARD Solutions clients
  • Apache Solr is deployed on both geos-02 and geos-03 for redundancy
  • Geo location type does not support overrides