EnglishFrenchSpanish

OnWorks favicon

4s-adminJ - Online in the Cloud

Run 4s-adminJ in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command 4s-adminJ that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


4s-admin — 4store cluster management tool

SYNOPSIS


4s-admin [--verbose] command [args]

4s-admin list-nodes
4s-admin list-stores
4s-admin start-stores [-a | --all] [store_name ...]
4s-admin stop-stores [-a | --all] [store_name ...]
4s-admin delete-stores store_name ...
4s-admin create-store [create_options ...] store_name
4s-admin [--version] [--help]

DESCRIPTION


The 4s-admin utility enables a 4store cluster (or single host) to be managed through a
number of supported commands. Commands available are list-nodes, list-stores, start-stores,
stop-stores, delete-stores. Details on individual commands are below:

Command: list-nodes
Prints a list of all nodes in their cluster, and their status. Output contains:
node_number - starting at 0, the numbered index of a node in a cluster
hostname - name of the cluster node
port - the port that 4s-boss is running on
status - whether 4s-boss on that node is reachable or not
ip_address - IPv4 or IPv6 address of the node

Command: list-stores
Prints a list of all stores found on the cluster, along with their status. The output will
contain:
store_name - name of the store
store_status - whether the store is usable or not
backend_status - status of the 4s-backend processes the store uses

options:

--verbose
Will show status of each backend on each node separately, rather than by store.

The store_status will either be 'available' or 'unavailable'. If a store is available, then
it means that all necessary backend processes are running on the cluster, and the store can
be used with 4s-httpd, 4s-query, and 4s-import. If a store is not available, the
'backend_status' will list the reason why.

If a backend is listed as 'stopped', it means that the 4s-backend process for a store is
definitely stopped on one or more nodes of a cluster. If it is listed as 'unknown', this
means that 4s-admin was unable to determine the state of the backend process.

Command: start-stores, stop-stores
Starts or stops one or more stores on the cluster.

options:

-a, --all
Starts or stops all stores on the cluster.

If the -a or --all option isn't present, then a space separated list of store names to start
or stop should be given.

Each node is asked in turn to start or stop the 4s-backend process stores given.

For each node, this command will print:
node_number - starting at 0, the numbered index of a node in a cluster
hostname - name of the cluster node

For each 4s-backend process on the node, it will print:
store_name - name of the store
backend_status - whether 4s-backend is now stopped or running

The backend_status will be one of 'stopped', 'running', or 'unknown'.

If start-stores is called for an already running store, or a stop-stores for an already
stopped store, then each node will take no action, but the status of the backend will be
printed.

Command: delete-stores
Deletes one or more stores from a cluster.

Accepts a space separated list of stores to delete as arguments.

Establishes a connection to all nodes of the cluster, stops a store if it is running, then
deletes that store.

Command: create-store
Creates a new store on one or more cluster nodes.

options:

--nodes node_id_list
Comma separated list of numerical node numbers to create the store on. Default is
all nodes. Use 4s-admin list-nodes for a list of available nodes.

--segments num_segments
Total number of segments to be split across all nodes, must be a power of 2.
Default is 2 per node (rounded to nearest power of 2).

-m, --mirror
Enable mirroring of segments.

--password password
Set a password for authentication.

--model-files
Use a file per model, useful for large models.

--force
If a store with the same name already exists, delete it and recreate.

All of the above are optional, and the only required argument is the name of the store to
create.

Each node is asked in turn to create the store. If any of the nodes fail to create a store,
store creation is aborted, and any segments already created will be deleted.

Existing stores won't be deleted unless the Fl -force option is given.

Configuration file options
nodes = <node_list>
Semicolon separated list of hosts in the cluster.

Options for 4s-admin in /etc/4store.conf should all be within the [4s-boss] section, or will
be ignored.

See 4store.conf(5) for details on how to specify a cluster.

General Usage
When any 4s-admin command is called, it first reads /etc/4store.conf to determine the
hostnames of nodes in the cluster. It will then attempt to communicate with the 4s-boss(8)
daemon running on that node (running on port 6733 by default).

Running the list-nodes command is the simplest way of checking that all nodes are reachable
over the network, and the 4s-boss on each is responding.

Use 4s-adminJ online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 2
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 3
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • 4
    Apache OpenOffice Extensions
    Apache OpenOffice Extensions
    The official catalog of Apache
    OpenOffice extensions. You'll find
    extensions ranging from dictionaries to
    tools to import PDF files and to connect
    with ext...
    Download Apache OpenOffice Extensions
  • 5
    MantisBT
    MantisBT
    Mantis is an easily deployable, web
    based bugtracker to aid product bug
    tracking. It requires PHP, MySQL and a
    web server. Checkout our demo and hosted
    offerin...
    Download MantisBT
  • 6
    LAN Messenger
    LAN Messenger
    LAN Messenger is a p2p chat application
    for intranet communication and does not
    require a server. A variety of handy
    features are supported including
    notificat...
    Download LAN Messenger
  • More »

Linux commands

  • 1
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 2
    abilint
    abilint
    abilint - validate an abigail ABI
    representation abilint parses the native
    XML representation of an ABI as emitted
    by abidw. Once it has parsed the XML
    represe...
    Run abilint
  • 3
    coresendmsg
    coresendmsg
    coresendmsg - send a CORE API message
    to the core-daemon daemon ...
    Run coresendmsg
  • 4
    core_server
    core_server
    core_server - The primary server for
    SpamBayes. DESCRIPTION: Currently serves
    the web interface only. Plugging in
    listeners for various protocols is TBD.
    This ...
    Run core_server
  • 5
    fwflash
    fwflash
    fwflash - program to flash image file
    to a connected NXT device ...
    Run fwflash
  • 6
    fwts-collect
    fwts-collect
    fwts-collect - collect logs for fwts
    bug reporting. ...
    Run fwts-collect
  • More »

Ad