Skip to content
Snippets Groups Projects
Commit 3a0e2872 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Updte the front page (attempt #2).

parent c411ff66
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="favicon.ico" />
{% if not docs %}
<link rel="stylesheet" type="text/css" href="/global.css" />
<link rel="stylesheet" type="text/css" href="global.css" />
{% endif %}
<link rel="stylesheet" type="text/css" href="styles/default.css" />
{% include "script" ignore missing %}
</head>
<body id="tarantool" class ="{{ page_name }}">
......
......@@ -21,3 +21,5 @@
<img src="http://dd.cd.b2.a2.top.mail.ru/counter?id=2284916;js=na" style="border:0;position:absolute;left:-10000px;" height="1" width="1" alt="" />
</noscript>
<script src="highlight.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
......@@ -2,39 +2,50 @@ index:
main: |
# Introduction
Tarantool is a NoSQL database running inside a Lua program. It's
created to store and process the most volatile and highly accessible
Web data. Tarantool has been extensively used in production since 2009.
It's **open source**, BSD licensed.
Tarantool is a NoSQL database running inside a Lua program. It
combines the network programming power of Node.JS with data
persistency capabilities of Redis. It's **open source**, BSD licensed.
The latest release is Tarantool 1.6.3, published on July 20, 2014.
# Features
- a drop-in replacement for Lua 5.1, based on LuaJIT 2.0;
simply use *#!/usr/bin/tarantool* instead of *#!/usr/bin/lua* in your script,
- Lua packages for non-blocking I/O, fibers and HTTP,
- [MsgPack](http://msgpack.org) data format and MsgPack based client-server
protocol,
- two data engines: 100% in-memory with optional persistence and a
[2-level disk-based B-tree](http://sphia.org), to use with large data
sets,
- secondary key and index iterators support,
- *secondary key* and index iterators support,
- asynchronous master-master replication,
- authentication and access control,
- [lowest CPU overhead](benchmark.html) to store or serve a
piece of content.
# Get started
``` bash
# apt-get install tarantool
# tarantool
# tarantool> box.cfg{{admin_port=3313}}
# tarantool> myspace = box.schema.create_space('myspace')
# tarantool> myspace:create_index('primary')
# tarantool> tuple = {{ name = 'Tarantool', release = box.info.version,
# type = {{ 'NoSQL database', 'Lua interpreter'}}}}
# tarantool> myspace:auto_increment{{tuple}}
# - [1, {{'release': '1.6.1-445-ge8d3201', 'name': 'Tarantool'
# 'type': ['NoSQL database', 'Lua interpreter']}}]
- authentication and access control.
# Example
``` lua
#!/usr/bin/env tarantool
box.cfg{{}}
hosts = box.space.hosts
if not hosts then
hosts = box.schema.create_space('hosts')
hosts:create_index('primary', {{ parts = {{1, 'STR'}} }})
end
local function handler(self)
local host = self.req.peer.host
local response = {{
host = host;
counter = space:inc(host);
}}
self:render({{ json = response }})
end
httpd = require('http.server')
server = httpd.new('127.0.0.1', 8080)
server:route({{ path = '/' }}, handler)
server:start()
```
# Learn more
......
......@@ -103,7 +103,7 @@ blockquote {
pre, code, kbd, samp {
font-family: monospace, serif;
_font-family: 'courier new', monospace;
font-size: 80%;
font-size: 100%;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment