Project

General

Profile

Actions

Using Redux to serve images on myamiweb » History » Revision 15

« Previous | Revision 15/64 (diff) | Next »
Jim Pulokas, 10/05/2012 02:32 PM


Using Redux to serve images on myamiweb

Installation

  1. Follow Web_Server_Installation but ignore warning on not using php 5.3
  2. Install redux prerequisites as found in its README file
  3. Install myami-redux branch of myami on the webserver machine. Redux needs write permission at its installation location to write fftw wisdom file.
sudo easy_install fs

Configurations:

  1. Assign redux server in myamiweb
    define('SERVER_HOST',"your_hostname")
    
  1. Using Redux cache
    • At myamiweb/config.php
      define('USE_REDUX_CACHE',true)
      
    • Turn it on or off in redux/pipeline.py
    • Input the desired disk_cache_path, disk_cache_size, and mem_cache_size in the next few lines
    • Create the disk_cache_path before running redux if cache will be used
      mkdir /tmp/redux
      chmod 777 /tmp/redux
      

Test Installation

  1. Using Redux to do simple input output (simple client with no reduxd server needed):
    redux --filename=test.jpg --oformat=PNG > test.png
    Make sure the resulting test.png is in fact an image and not an error message.
  2. Run the server: run the following on a command line:
    reduxd
    leave it running for the following...
  3. Test command line client connecting to the server
    redux --server_host=localhost --filename=test.jpg --oformat=PNG > test.png
    Note: The input file name is from the perspective of the reduxd server, so be sure to give it an absolute path (unlike the first test, which was not accessing the server)

Using redux server with myamiweb

  1. start reduxd server if not already running from the above test:
    reduxd
  2. click on "[test dataset]" on your main myamiweb home page, or go directly to the URL: myamiweb/viewerxml.php
  3. test by accessing your own images from Leginon in myamiweb/imageviewer.php

starting reduxd at boot

sudo cp -v myami/redux/init.d/reduxd /etc/init.d/
sudo service reduxd start

Updated by Jim Pulokas about 12 years ago · 15 revisions