Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
c56ffe39
Commit
c56ffe39
authored
Sep 09, 2011
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert README to reStructuredText
parent
1f9925fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
80 deletions
+91
-80
README
README
+91
-80
No files found.
README
View file @
c56ffe39
NEO is a distributed, redundant and scalable implementation of ZODB API.
NEO stands for Nexedi Enterprise Object.
Requirements
Overview
========
- Linux 2.6 or later
A NEO cluster is composed of the following types of nodes:
- Python 2.4 or later
- "master" nodes (mandatory, 1 or more)
- For python 2.4: ctypes http://python.net/crew/theller/ctypes/
(packaged with later python versions)
Note that setup.py does not define any dependency to 'ctypes' so you will
have to install it explicitely.
Takes care of transactionality. Only one master node is really active
(the active master node is called "primary master") at any given time,
extra masters are spares (they are called "secondary masters").
- MySQLdb http://sourceforge.net/projects/mysql-python
- "storage" nodes (mandatory, 1 or more)
- ZODB 3.10 or later (requires python 2.5 or later, only for client nodes)
Stores data in a MySQL database. All available storage nodes are in use
simultaneously. This offers redundancy and data distribution.
Overview
- "admin" nodes (mandatory for startup, optional after)
A NEO cluster is composed of the following types of nodes:
Accepts commands from neoctl tool and transmits them to the
primary master, and monitors cluster state.
- "master" nodes (mandatory, 1 or more)
Takes care of transactionality. Only one master node is really active
(the active master node is called "primary master") at any given time,
extra masters are spares (they are called "secondary masters").
- "client" nodes
- "storage" nodes (mandatory, 1 or more)
Stores data in a MySQL database. All available storage nodes are in use
simultaneously. This offers redundancy and data distribution.
Well... Something needing to store/load data in a NEO cluster.
- "admin" nodes (mandatory for startup, optional after)
Accepts commands from neoctl tool and transmits them to the
primary master, and monitors cluster state.
Disclaimer
==========
- "client" node
s
Well... Something needing to store/load data in a NEO cluster
.
In addition of the disclaimer contained in the licence this code i
s
released under, please consider the following
.
Disclaimer
NEO does not implement any authentication mechanism between its nodes, and
does not encrypt data exchanged between nodes either.
If you want to protect your cluster from malicious nodes, or your data from
being snooped, please consider encrypted tunelling (such as openvpn).
In addition of the disclaimer contained in the licence this code i
s
released under, please consider the following.
Requirement
s
============
NEO does not implement any authentication mechanism between its nodes, and
does not encrypt data exchanged between nodes either.
If you want to protect your cluster from malicious nodes, or your data from
being snooped, please consider encrypted tunelling (such as openvpn).
- Linux 2.6 or later
- Python 2.4 or later
- For python 2.4: ctypes http://python.net/crew/theller/ctypes/
(packaged with later python versions)
Note that setup.py does not define any dependency to 'ctypes' so you will
have to install it explicitely.
- MySQLdb http://sourceforge.net/projects/mysql-python
- ZODB 3.10 or later (requires python 2.5 or later, only for client nodes)
Installation
============
a. Make neo directory available for python to import (for example, by
adding its container directory to the PYTHONPATH environment variable).
a. Make neo directory available for python to import (for example, by
adding its container directory to the PYTHONPATH environment variable).
b. Choose a cluster name and setup a MySQL database
b. Choose a cluster name and setup a MySQL database
c. Start all required nodes
:
c. Start all required nodes:
:
neomaster --cluster=<cluster name>
neostorage --cluster=<cluster name> --database=user:passwd@host
neoadmin --cluster=<cluster name>
neomaster --cluster=<cluster name>
neostorage --cluster=<cluster name> --database=user:passwd@host
neoadmin --cluster=<cluster name>
d. Tell the cluster it can provide service.
d. Tell the cluster it can provide service::
neoctl start
neoctl start
How to use
==========
1. In zope:
In zope
-------
a. Copy neo directory to /path/to/your/zope/lib/python
a. Copy neo directory to /path/to/your/zope/lib/python
b. Edit your zope.conf, add a neo import and edit the `zodb_db` section by
replacing its filestorage subsection by a NEOStorage one.
It should look like
:
b. Edit your zope.conf, add a neo import and edit the `zodb_db` section by
replacing its filestorage subsection by a NEOStorage one.
It should look like:
:
%import neo.client
<zodb_db main>
# Main FileStorage database
<NEOStorage>
master_nodes 127.0.0.1:10000
name <cluster name>
</NEOStorage>
mount-point /
</zodb_db>
%import neo.client
<zodb_db main>
# Main FileStorage database
<NEOStorage>
master_nodes 127.0.0.1:10000
name <cluster name>
</NEOStorage>
mount-point /
</zodb_db>
c. Start zope
c. Start zope
2. In a python script:
In a Python script
------------------
a. Set your PYTHONPATH in order to be able to import Zope lib
:
a. Set your PYTHONPATH in order to be able to import Zope lib:
:
$ export PYTHONPATH=/path/to/your/zope/lib/python:$PYTHONPATH
$ export PYTHONPATH=/path/to/your/zope/lib/python:$PYTHONPATH
b. Just create the storage object and play with it
:
b. Just create the storage object and play with it:
:
from neo.client.Storage import Storage
s = Storage(master_nodes="127.0.0.1:10010", name="main")
...
from neo.client.Storage import Storage
s = Storage(master_nodes="127.0.0.1:10010", name="main")
...
"name" and "master_nodes" parameters have the same meaning as in
configuration file.
"name" and "master_nodes" parameters have the same meaning as in
configuration file.
Deployment:
Deployment
==========
NEO has no built-in deployment features such as process daemonization. We use
supervisor with configuration like below:
[group:neo]
programs=master_01,storage_01,admin
supervisor with configuration like below::
[program:master_01]
priority=1
command=neomaster -c neo -s master_01 -f /neo/neo.conf
user=neo
[group:neo]
programs=master_01,storage_01,admin
[program:storage
_01]
priority=2
command=neostorage -c neo -s storage
_01 -f /neo/neo.conf
user=neo
[program:master
_01]
priority=1
command=neomaster -c neo -s master
_01 -f /neo/neo.conf
user=neo
[program:admin
]
priority=3
command=neoadmin -c neo -s admin
-f /neo/neo.conf
user=neo
[program:storage_01
]
priority=2
command=neostorage -c neo -s storage_01
-f /neo/neo.conf
user=neo
[program:admin]
priority=3
command=neoadmin -c neo -s admin -f /neo/neo.conf
user=neo
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment