Commit efe445da authored by Gabriel Monnerat's avatar Gabriel Monnerat

- update README

- add sample of cloudooo configuration
- rename cloudooo.conf to cloudooo.conf.in, because it will be used by echo_cloudooo_conf script and is more templeable.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@38431 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fa98ad64
...@@ -3,7 +3,8 @@ Install Cloudooo ...@@ -3,7 +3,8 @@ Install Cloudooo
$ python2.6 setup.py install $ python2.6 setup.py install
Warning: you must have installed setuptools>=0.6c11 in this python. Warnings:
- you must have installed setuptools>=0.6c11 in this python.
Install Dependencies in Mandriva Install Dependencies in Mandriva
================================ ================================
...@@ -38,12 +39,12 @@ Create Configuration File ...@@ -38,12 +39,12 @@ Create Configuration File
========================= =========================
The configuration file is used to start the application using paster. The configuration file is used to start the application using paster.
$ cp ./cloudooo/samples/cloudooo.conf . # Copy to current folder $ cp ./cloudooo/samples/samples.conf . # Copy to current folder
The next step is define some attributes in cloudooo.conf: The next step is define some attributes in cloudooo.conf:
- working_path - folder to run the application. This folder need be created.
- uno_path - full path to UNO library; - uno_path - full path to UNO library;
- soffice_bin_path - full path to soffice.bin; - soffice_binary_path - full path to soffice.bin;
Run Application Run Application
=============== ===============
......
...@@ -7,41 +7,41 @@ debug_mode = True ...@@ -7,41 +7,41 @@ debug_mode = True
# Folder where pid files, lock files and virtual frame buffer mappings # Folder where pid files, lock files and virtual frame buffer mappings
# are stored. In this folder is necessary create a folder tmp, because this # are stored. In this folder is necessary create a folder tmp, because this
# folder is used to create all temporary documents. # folder is used to create all temporary documents.
working_path = @WORKING_PATH@ working_path = /hd/cloudooo/run
# Folder where OpenOffice Uno interpreter is installed # Folder where OpenOffice Uno interpreter is installed
uno_path = @UNO_PATH@ uno_path = /opt/openoffice.org3/basis-link/program
# Folder where OpenOffice Binarie is installed # Folder where OpenOffice Binarie is installed
office_binary_path = @OFFICE_BINARY_PATH@ office_binary_path = /opt/openoffice.org3/program
# #
## Monitor Settings ## Monitor Settings
# #
# Limit to use the Openoffice Instance. if pass of the limit, the instance is # Limit to use the Openoffice Instance. if pass of the limit, the instance is
# stopped and another is started. # stopped and another is started.
limit_number_request = @NUMBER_MAXIMUM_OF_REQUEST@ limit_number_request = 100
# Interval to check the factory # Interval to check the factory
monitor_interval = @MONITOR_INTERVAL@ monitor_interval = 10
timeout_response = @TIMEOUT_RESPONSE@ timeout_response = 180
enable_memory_monitor = @ENABLE_MEMORY_MONITOR@ enable_memory_monitor = True
# Set the limit in MB # Set the limit in MB
# e.g 1000 = 1 GB, 100 = 100 MB # e.g 1000 = 1 GB, 100 = 100 MB
limit_memory_used = @MAXIMUM_USE_BY_OPENOFFICE@ limit_memory_used = 3000
# #
## OOFactory Settings ## OOFactory Settings
# #
# The pool consist of several OpenOffice.org instances # The pool consist of several OpenOffice.org instances
application_hostname = @APPLICATION_HOSTNAME@ application_hostname = localhost
# OpenOffice Port # OpenOffice Port
openoffice_port = @OPENOFFICE_PORT@ openoffice_port = 4062
# #
## Xvfb Settings ## Xvfb Settings
# #
# Default port to xvfb # Default port to xvfb
virtual_display_port = @XVFB_PORT@ virtual_display_port = 6097
# ID of the virtual display where OOo instances are launched # ID of the virtual display where OOo instances are launched
virtual_display_id = @XVFB_DISPLAY_ID@ virtual_display_id = 97
virtual_screen = @XVFB_SCREEN_NUMBER@ virtual_screen = 0
[server:main] [server:main]
use = egg:PasteScript#wsgiutils use = egg:PasteScript#wsgiutils
host = @SERVER_HOST@ host = 0.0.0.0
port = @SERVER_PORT@ port = 8011
[app:main]
use = egg:cloudooo
debug_mode = @DEBUG_MODE@
working_path = @WORKING_PATH@
uno_path = @UNO_PATH@
office_binary_path = @OFFICE_BINARY_PATH@
limit_number_request = @NUMBER_MAXIMUM_OF_REQUEST@
monitor_interval = @MONITOR_INTERVAL@
timeout_response = @TIMEOUT_RESPONSE@
enable_memory_monitor = @ENABLE_MEMORY_MONITOR@
limit_memory_used = @MAXIMUM_USE_BY_OPENOFFICE@
application_hostname = @APPLICATION_HOSTNAME@
openoffice_port = @OPENOFFICE_PORT@
virtual_display_port = @XVFB_PORT@
virtual_display_id = @XVFB_DISPLAY_ID@
virtual_screen = @XVFB_SCREEN_NUMBER@
[server:main]
use = egg:PasteScript#wsgiutils
host = @SERVER_HOST@
port = @SERVER_PORT@
[app:main]
use = egg:cloudooo
#
## System config
#
debug_mode = True
# Folder where pid files, lock files and virtual frame buffer mappings
# are stored. In this folder is necessary create a folder tmp, because this
# folder is used to create all temporary documents.
working_path = /hd/cloudooo/run
# Folder where OpenOffice Uno interpreter is installed
uno_path = /opt/openoffice.org3/basis-link/program
# Folder where OpenOffice Binarie is installed
office_binary_path = /opt/openoffice.org3/program
#
## Monitor Settings
#
# Limit to use the Openoffice Instance. if pass of the limit, the instance is
# stopped and another is started.
limit_number_request = 100
# Interval to check the factory
monitor_interval = 10
timeout_response = 180
enable_memory_monitor = True
# Set the limit in MB
# e.g 1000 = 1 GB, 100 = 100 MB
limit_memory_used = 3000
#
## OOFactory Settings
#
# The pool consist of several OpenOffice.org instances
application_hostname = localhost
# OpenOffice Port
openoffice_port = 4062
#
## Xvfb Settings
#
# Default port to xvfb
virtual_display_port = 6097
# ID of the virtual display where OOo instances are launched
virtual_display_id = 97
virtual_screen = 0
[server:main]
use = egg:PasteScript#wsgiutils
host = 0.0.0.0
port = 8011
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment