From 1da93e203e3bf5a183b1ef64c5195decd5b23e35 Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja@tarantool.org>
Date: Tue, 26 Apr 2016 21:43:00 +0300
Subject: [PATCH] sophia: rename sophia -> phia

---
 debian/copyright                              |   14 +-
 debian/rules                                  |    1 -
 debian/source/options                         |    1 -
 doc/sphinx/book/administration.rst            |   12 +-
 doc/sphinx/book/app/b-internals.rst           |   12 +-
 .../book/app/{e-sophia => e-phia}/i1.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i10.png     |  Bin
 .../book/app/{e-sophia => e-phia}/i12.png     |  Bin
 .../book/app/{e-sophia => e-phia}/i13.png     |  Bin
 .../book/app/{e-sophia => e-phia}/i14.png     |  Bin
 .../book/app/{e-sophia => e-phia}/i2.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i3.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i4.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i5.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i6.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i7.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i8.png      |  Bin
 .../book/app/{e-sophia => e-phia}/i9.png      |  Bin
 .../book/app/{e-sophia => e-phia}/index.rst   |   42 +-
 doc/sphinx/book/box/atomic.rst                |    4 +-
 doc/sphinx/book/box/box_index.rst             |   14 +-
 doc/sphinx/book/box/box_schema.rst            |    4 +-
 doc/sphinx/book/box/box_space.rst             |   18 +-
 doc/sphinx/book/box/index.rst                 |   28 +-
 doc/sphinx/book/box/limitations.rst           |   10 +-
 .../box/{sophia_diff.rst => phia_diff.rst}    |   34 +-
 doc/sphinx/book/configuration/cfg-basic.rst   |    4 +-
 doc/sphinx/book/configuration/cfg-storage.rst |    8 +-
 doc/sphinx/book/index.rst                     |    2 +-
 doc/www/content/newsite/index.yml             |    4 +-
 extra/dist/default/tarantool.in               |    2 +-
 extra/dist/example.lua                        |    4 +-
 extra/dist/tarantoolctl.in                    |   10 +-
 rpm/tarantool.spec                            |    2 +-
 src/box/CMakeLists.txt                        |   13 +-
 src/box/box.cc                                |   12 +-
 src/box/engine.cc                             |    2 +-
 src/box/errcode.h                             |    2 +-
 src/box/index.cc                              |    4 +-
 src/box/key_def.h                             |    2 +-
 src/box/lua/init.c                            |    4 +-
 src/box/lua/load_cfg.lua                      |   12 +-
 src/box/lua/misc.cc                           |    2 +-
 src/box/lua/{sophia.c => phia.c}              |   60 +-
 src/box/lua/{sophia.h => phia.h}              |    8 +-
 src/box/lua/schema.lua                        |    6 +-
 src/box/{sophia.c => phia.c}                  |   38 +-
 src/box/{sophia.h => phia.h}                  |    6 +-
 src/box/{sophia_engine.cc => phia_engine.cc}  |  202 +--
 src/box/{sophia_engine.h => phia_engine.h}    |   24 +-
 src/box/{sophia_index.cc => phia_index.cc}    |  182 +-
 src/box/{sophia_index.h => phia_index.h}      |   12 +-
 src/box/{sophia_space.cc => phia_space.cc}    |   84 +-
 src/box/{sophia_space.h => phia_space.h}      |   12 +-
 src/box/space.h                               |    4 +-
 src/box/txn.cc                                |    2 +-
 src/ffisyms.cc                                |    2 +-
 test/.tarantoolctl                            |    2 +-
 test/app-tap/init_script.result               |   24 +-
 test/box-py/iproto.result                     |    2 +-
 test/box-py/iproto.test.py                    |    2 +-
 test/box-tap/cfg.result                       |    4 +-
 test/box-tap/cfg.test.lua                     |   10 +-
 test/box-tap/trigger_atexit.test.lua          |    2 +-
 test/box/admin.result                         |   48 +-
 test/box/box.lua                              |    2 +-
 test/box/cfg.result                           |  112 +-
 test/box/cfg.test.lua                         |   12 +-
 test/box/lua/cfg_test2.lua                    |    2 +-
 test/box/lua/cfg_test3.lua                    |    2 +-
 test/box/lua/cfg_test4.lua                    |    2 +-
 test/box/misc.result                          |   56 +-
 test/box/rtree_misc.result                    |   10 +-
 test/box/rtree_misc.test.lua                  |    6 +-
 test/box/transaction.result                   |    2 +-
 test/box/transaction.test.lua                 |    2 +-
 test/engine/box.lua                           |    2 +-
 test/engine/engine.cfg                        |    2 +-
 test/engine/params.result                     |    2 +-
 test/engine/params.test.lua                   |    2 +-
 test/long_run-py/box.lua                      |   10 +-
 test/long_run/box.lua                         |   10 +-
 ...nsert.result => phia_delete_insert.result} |    2 +-
 ...t.test.lua => phia_delete_insert.test.lua} |    2 +-
 ...sult => phia_delete_replace_update.result} |    2 +-
 ...ua => phia_delete_replace_update.test.lua} |    2 +-
 test/long_run/suite.ini                       |    2 +-
 test/{sophia => phia}/constraint.result       |   15 +-
 test/{sophia => phia}/constraint.test.lua     |   10 +-
 test/{sophia => phia}/ddl.result              |   22 +-
 test/{sophia => phia}/ddl.test.lua            |   10 +-
 test/{sophia => phia}/gh.result               |   38 +-
 test/{sophia => phia}/gh.test.lua             |   32 +-
 test/{sophia => phia}/hermitage.lua           |   12 +-
 test/{sophia => phia}/hermitage.result        |    0
 test/{sophia => phia}/hermitage.test.lua      |    0
 test/{sophia => phia}/index_random_test.lua   |    0
 test/{sophia => phia}/monitoring.result       |    4 +-
 test/phia/monitoring.test.lua                 |    5 +
 test/{sophia => phia}/options.result          |   10 +-
 test/phia/options.test.lua                    |    9 +
 test/{sophia/sophia.lua => phia/phia.lua}     |   12 +-
 test/{sophia => phia}/suite.ini               |    4 +-
 test/{sophia => phia}/suite.lua               |    8 +-
 test/{sophia => phia}/truncate.test.lua       |    4 +-
 test/replication-py/swap.result               | 1602 ++++++++---------
 test/replication-py/swap.test.py              |    4 +-
 test/sophia/monitoring.test.lua               |    5 -
 test/sophia/options.test.lua                  |    9 -
 109 files changed, 1527 insertions(+), 1553 deletions(-)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i1.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i10.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i12.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i13.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i14.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i2.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i3.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i4.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i5.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i6.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i7.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i8.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/i9.png (100%)
 rename doc/sphinx/book/app/{e-sophia => e-phia}/index.rst (88%)
 rename doc/sphinx/book/box/{sophia_diff.rst => phia_diff.rst} (71%)
 rename src/box/lua/{sophia.c => phia.c} (71%)
 rename src/box/lua/{sophia.h => phia.h} (90%)
 rename src/box/{sophia.c => phia.c} (99%)
 rename src/box/{sophia.h => phia.h} (94%)
 rename src/box/{sophia_engine.cc => phia_engine.cc} (71%)
 rename src/box/{sophia_engine.h => phia_engine.h} (82%)
 rename src/box/{sophia_index.cc => phia_index.cc} (67%)
 rename src/box/{sophia_index.h => phia_index.h} (89%)
 rename src/box/{sophia_space.cc => phia_space.cc} (85%)
 rename src/box/{sophia_space.h => phia_space.h} (90%)
 rename test/long_run/{sophia_delete_insert.result => phia_delete_insert.result} (85%)
 rename test/long_run/{sophia_delete_insert.test.lua => phia_delete_insert.test.lua} (75%)
 rename test/long_run/{sophia_delete_replace_update.result => phia_delete_replace_update.result} (96%)
 rename test/long_run/{sophia_delete_replace_update.test.lua => phia_delete_replace_update.test.lua} (92%)
 rename test/{sophia => phia}/constraint.result (88%)
 rename test/{sophia => phia}/constraint.test.lua (80%)
 rename test/{sophia => phia}/ddl.result (66%)
 rename test/{sophia => phia}/ddl.test.lua (66%)
 rename test/{sophia => phia}/gh.result (83%)
 rename test/{sophia => phia}/gh.test.lua (80%)
 rename test/{sophia => phia}/hermitage.lua (96%)
 rename test/{sophia => phia}/hermitage.result (100%)
 rename test/{sophia => phia}/hermitage.test.lua (100%)
 rename test/{sophia => phia}/index_random_test.lua (100%)
 rename test/{sophia => phia}/monitoring.result (58%)
 create mode 100644 test/phia/monitoring.test.lua
 rename test/{sophia => phia}/options.result (65%)
 create mode 100644 test/phia/options.test.lua
 rename test/{sophia/sophia.lua => phia/phia.lua} (61%)
 rename test/{sophia => phia}/suite.ini (73%)
 rename test/{sophia => phia}/suite.lua (57%)
 rename test/{sophia => phia}/truncate.test.lua (74%)
 delete mode 100644 test/sophia/monitoring.test.lua
 delete mode 100644 test/sophia/options.test.lua

diff --git a/debian/copyright b/debian/copyright
index ead472bec3..3d210ee30f 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -255,22 +255,12 @@ Copyright: 2013 Advanced Computing Technologies LLC,
  Written by: John H. Baldwin <jhb@FreeBSD.org>
 License: BSD-2-Clause
 
-Files: third_party/sophia/sophia/std/ss_crc.c
-Copyright: Dmitry Simonenko <pmwkaa@gmail.com>
-           2008-2010 Massachusetts Institute of Technology
+Files: src/box/phia.c
+Copyright: 2008-2010 Massachusetts Institute of Technology
            2004-2006 Intel Corporation
-License: BSD-2-Clause
-
-Files: third_party/sophia/sophia/std/ss_lz4filter.c
-       third_party/sophia/sophia/std/ss_zstdfilter.c
-Copyright: Dmitry Simonenko <pmwkaa@gmail.com>
            2014-2015, Yann Collet
 License: BSD-2-Clause
 
-Files: third_party/sophia/*
-Copyright: Dmitry Simonenko <pmwkaa@gmail.com>
-License: BSD-2-Clause
-
 Files: src/proc_title.c
 Copyright: 2000-2010, PostgreSQL Global Development Group
 License: BSD-2-Clause
diff --git a/debian/rules b/debian/rules
index c36272fa3e..b9cfa269a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -38,7 +38,6 @@ tarball: clean
 		--exclude=src/lib/small/debian		\
 		--exclude=src/lib/msgpuck/debian    \
 		--exclude=test-run/lib/tarantool-python/debian \
-		--exclude=third_party/sophia/debian \
 		--exclude=third_party/luafun/debian \
 		--exclude=FreeBSD \
 		--transform='s,^\.,tarantool_$(UVERSION),S' \
diff --git a/debian/source/options b/debian/source/options
index c6a2153bf6..e51c9cb059 100644
--- a/debian/source/options
+++ b/debian/source/options
@@ -9,6 +9,5 @@ extend-diff-ignore = "src/lib/.*/debian/"
 extend-diff-ignore = "src/lib/.*/test.sh"
 extend-diff-ignore = "src/lib/small/test"
 extend-diff-ignore = "third_party/.*/debian/"
-extend-diff-ignore = "third_party/sophia/sophia/build$"
 extend-diff-ignore = "third_party/luajit/doc"
 extend-diff-ignore = "third_party/luafun/(tests|doc)"
diff --git a/doc/sphinx/book/administration.rst b/doc/sphinx/book/administration.rst
index 56c7487d1c..0e2b51325b 100644
--- a/doc/sphinx/book/administration.rst
+++ b/doc/sphinx/book/administration.rst
@@ -269,7 +269,7 @@ would look like this:
         pid_file   = "/var/run/tarantool",
         wal_dir    = "/var/lib/tarantool",
         snap_dir   = "/var/lib/tarantool",
-        sophia_dir = "/var/lib/tarantool",
+        phia_dir = "/var/lib/tarantool",
         logger     = "/var/log/tarantool",
         username   = "tarantool",
     }
@@ -289,9 +289,9 @@ The settings in the above script are:
     The directory for the snapshot :file:`*.snap` files. The script
     will add ":samp:`/{instance-name}`" to the directory-name.
 
-``sophia_dir``
-    The directory for the sophia-storage-engine files. The script
-    will add ":samp:`/sophia/{instance-name}`" to the directory-name.
+``phia_dir``
+    The directory for the phia-storage-engine files. The script
+    will add ":samp:`/phia/{instance-name}`" to the directory-name.
 
 ``logger``
     The place where the application log will go. The script will
@@ -432,7 +432,7 @@ Edit /etc/sysconfig/tarantool. It might be necessary to say sudo mkdir /etc/sysc
         pid_file = "/tarantool_test/my_app.pid",
         wal_dir = "/tarantool_test",
         snap_dir = "/tarantool_test",
-        sophia_dir = "/tarantool_test",
+        phia_dir = "/tarantool_test",
         logger = "/tarantool_test/log",
         username = "tarantool",
     }
@@ -469,7 +469,7 @@ Tell tarantoolctl to start the application ...
 
     $ ls -l /tarantool_test/my_app
 
-... expect to see the .snap file, .xlog file, and sophia directory. Then ...
+... expect to see the .snap file, .xlog file, and phia directory. Then ...
 
 .. code-block:: console
 
diff --git a/doc/sphinx/book/app/b-internals.rst b/doc/sphinx/book/app/b-internals.rst
index c104a76d03..6252ec5dd3 100644
--- a/doc/sphinx/book/app/b-internals.rst
+++ b/doc/sphinx/book/app/b-internals.rst
@@ -133,22 +133,22 @@ as of the moment when the server was last shut down. For this it may
 use the latest snapshot file and any WAL files that were written
 after the snapshot. One complicating factor is that Tarantool
 has two engines -- the memtx data must be reconstructed entirely
-from the snapshot and the WAL files, while the sophia data will
+from the snapshot and the WAL files, while the phia data will
 be on disk but might require updating around the time of a checkpoint.
-(When a snapshot happens, Tarantool tells the sophia engine to
+(When a snapshot happens, Tarantool tells the phia engine to
 make a checkpoint, and the snapshot operation is rolled back if
-anything goes wrong, so sophia's checkpoint is at least as fresh
+anything goes wrong, so phia's checkpoint is at least as fresh
 as the snapshot file.)
 
 Step 1
     Read the configuration parameters in the ``box.cfg{}`` request.
     Parameters which affect recovery may include :confval:`work_dir`,
-    :confval:`wal_dir`, :confval:`snap_dir`, :confval:`sophia_dir`,
+    :confval:`wal_dir`, :confval:`snap_dir`, :confval:`phia_dir`,
     :confval:`panic_on_snap_error`, and :confval:`panic_on_wal_error`.
 
 Step 2
     Find the latest snapshot file. Use its data to reconstruct the in-memory
-    databases. Instruct the sophia engine to recover to the latest checkpoint.
+    databases. Instruct the phia engine to recover to the latest checkpoint.
 
 There are actually two variations of the reconstruction procedure for the memtx
 databases, depending whether the recovery process is "default".
@@ -169,7 +169,7 @@ are only made if an error has occurred.
 Step 2
     Find the WAL file that was made at the time of, or after, the snapshot file.
     Read its log entries until the log-entry LSN is greater than the LSN of the
-    snapshot, or greater than the LSN of the sophia checkpoint. This is the
+    snapshot, or greater than the LSN of the phia checkpoint. This is the
     recovery process's "start position"; it matches the current state of the engines.
 
 Step 3
diff --git a/doc/sphinx/book/app/e-sophia/i1.png b/doc/sphinx/book/app/e-phia/i1.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i1.png
rename to doc/sphinx/book/app/e-phia/i1.png
diff --git a/doc/sphinx/book/app/e-sophia/i10.png b/doc/sphinx/book/app/e-phia/i10.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i10.png
rename to doc/sphinx/book/app/e-phia/i10.png
diff --git a/doc/sphinx/book/app/e-sophia/i12.png b/doc/sphinx/book/app/e-phia/i12.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i12.png
rename to doc/sphinx/book/app/e-phia/i12.png
diff --git a/doc/sphinx/book/app/e-sophia/i13.png b/doc/sphinx/book/app/e-phia/i13.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i13.png
rename to doc/sphinx/book/app/e-phia/i13.png
diff --git a/doc/sphinx/book/app/e-sophia/i14.png b/doc/sphinx/book/app/e-phia/i14.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i14.png
rename to doc/sphinx/book/app/e-phia/i14.png
diff --git a/doc/sphinx/book/app/e-sophia/i2.png b/doc/sphinx/book/app/e-phia/i2.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i2.png
rename to doc/sphinx/book/app/e-phia/i2.png
diff --git a/doc/sphinx/book/app/e-sophia/i3.png b/doc/sphinx/book/app/e-phia/i3.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i3.png
rename to doc/sphinx/book/app/e-phia/i3.png
diff --git a/doc/sphinx/book/app/e-sophia/i4.png b/doc/sphinx/book/app/e-phia/i4.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i4.png
rename to doc/sphinx/book/app/e-phia/i4.png
diff --git a/doc/sphinx/book/app/e-sophia/i5.png b/doc/sphinx/book/app/e-phia/i5.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i5.png
rename to doc/sphinx/book/app/e-phia/i5.png
diff --git a/doc/sphinx/book/app/e-sophia/i6.png b/doc/sphinx/book/app/e-phia/i6.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i6.png
rename to doc/sphinx/book/app/e-phia/i6.png
diff --git a/doc/sphinx/book/app/e-sophia/i7.png b/doc/sphinx/book/app/e-phia/i7.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i7.png
rename to doc/sphinx/book/app/e-phia/i7.png
diff --git a/doc/sphinx/book/app/e-sophia/i8.png b/doc/sphinx/book/app/e-phia/i8.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i8.png
rename to doc/sphinx/book/app/e-phia/i8.png
diff --git a/doc/sphinx/book/app/e-sophia/i9.png b/doc/sphinx/book/app/e-phia/i9.png
similarity index 100%
rename from doc/sphinx/book/app/e-sophia/i9.png
rename to doc/sphinx/book/app/e-phia/i9.png
diff --git a/doc/sphinx/book/app/e-sophia/index.rst b/doc/sphinx/book/app/e-phia/index.rst
similarity index 88%
rename from doc/sphinx/book/app/e-sophia/index.rst
rename to doc/sphinx/book/app/e-phia/index.rst
index ca169e158f..ae38f6dfd5 100644
--- a/doc/sphinx/book/app/e-sophia/index.rst
+++ b/doc/sphinx/book/app/e-phia/index.rst
@@ -1,14 +1,14 @@
-.. _sophia:
+.. _phia:
 
 -------------------------------------------------------------------------------
-                        Appendix E. Sophia
+                        Appendix E. Phia
 -------------------------------------------------------------------------------
 
 ==================================
            Introduction
 ==================================
 
-Sophia's features are:
+Phia's features are:
 
 * Full ACID compliance
 * Multi-Version Concurrency Control (MVCC)
@@ -38,22 +38,22 @@ Sophia's features are:
 
 It is appropriate for databases that cannot fit in memory, where access via secondary keys is not required.
 
-In sophia terminology:
+In phia terminology:
 
 * There is one **Environment**.
-* An Environment has N **Databases** - a sophia database is like a Tarantool `space`.
+* An Environment has N **Databases** - a phia database is like a Tarantool `space`.
 * A Database has N **Nodes**.
 * A Node has one **Node File**.
 * A Node File has N **Branches**.
-* A Branch has N **Regions** - a sophia Region is like a B-tree `page`.
-* A Region has **keys** and **values** - a sophia key-value is like a Tarantool `tuple`.
+* A Branch has N **Regions** - a phia Region is like a B-tree `page`.
+* A Region has **keys** and **values** - a phia key-value is like a Tarantool `tuple`.
 
 A key and its associated value are together, so when one accesses a key one gets
-the whole tuple. In other words, in sophia the data is stored in the index. There
+the whole tuple. In other words, in phia the data is stored in the index. There
 are up to two in-memory copies of an index, as well as the copy in the Node File.
 
-For operations that insert or update tuples - called Set operations in sophia -
-sophia makes changes to in-memory copies of the index, and writes to Tarantool's
+For operations that insert or update tuples - called Set operations in phia -
+phia makes changes to in-memory copies of the index, and writes to Tarantool's
 Write-ahead Log. A scheduler assigns tasks to multiple background threads for
 transferring index data from memory to disk, and for reorganizing Branches. To
 support transactions, Set operations can be delayed until an explicit commit. If
@@ -63,7 +63,7 @@ method is `MVCC`_ and the isolation level is `Snapshot`_.
 .. _MVCC: https://en.wikipedia.org/wiki/Multiversion_concurrency_control
 .. _Snapshot: https://en.wikipedia.org/wiki/Snapshot_isolation
 
-Formally, in terms of disk accesses, sophia has the following algorithmic complexity:
+Formally, in terms of disk accesses, phia has the following algorithmic complexity:
 
 * **Set** - the worst case is O(*1*) append-only key writes to the Write-Ahead
   Log + in-memory node index searches + in-memory index inserts
@@ -141,7 +141,7 @@ end of db file. The number of created Branches becomes large.
     :alt: i4.png
 
 There is a user-settable maximum number of Branches per Node. When the number of
-Branches reaches this maximum, the sophia scheduler wakes a **Compaction Thread**
+Branches reaches this maximum, the phia scheduler wakes a **Compaction Thread**
 for the db file. The Compaction Thread merges the keys in all the Branches, and
 creates one or more new db files.
 
@@ -174,7 +174,7 @@ a. an in-memory index with some keys in it,
 b. a Node File with several Branches,
 c. a Write-Ahead Log file recording the Set operations, in the order they happened.
 
-The number of branches became too big, so the sophia scheduler starts the
+The number of branches became too big, so the phia scheduler starts the
 Compaction Thread and creates two new Nodes.
 
 .. image:: i7.png
@@ -184,7 +184,7 @@ Compaction Thread and creates two new Nodes.
 So, each of the two new Node Files contains half of the keys that were in the
 original Node. The Node's in-memory indexes are split in the same way.
 
-After the splitting, sophia must take into account that: while the Compaction
+After the splitting, phia must take into account that: while the Compaction
 was going on in the background, there might have been more Set operations taking
 place in parallel. These Set operations would have changed one of the in-memory
 indexes, and these changes too will be merged.
@@ -217,20 +217,20 @@ Database has four Nodes.
     :alt: i10.png
 
 The inserting is done. Now, because the words "memory" and "disk" have appeared
-in this explanation several times, here are a few words about how sophia is
+in this explanation several times, here are a few words about how phia is
 designed to use these resources most efficiently:
 
 * If there is more memory available, then Branch Creation and Compaction will be
   less frequent, and there will be fewer disk accesses.
-* The best sophia performance will occur if there is no setting of a memory limit,
+* The best phia performance will occur if there is no setting of a memory limit,
   but this must be balanced against other considerations, such as requirements
   for the memtx storage engine. If there is a setting of a memory limit, the
-  sophia scheduler will give priority to the Nodes that have the largest
+  phia scheduler will give priority to the Nodes that have the largest
   in-memory indexes, so that the largest memory blocks are freed first.
-* To make the most of hard drives and Flash, sophia will delay operations that
+* To make the most of hard drives and Flash, phia will delay operations that
   require disk access (except the writing of the Write-ahead Log which is
   specially tunable), so that the accesses are done in large sequential blocks.
-* Overwriting does not occur; sophia is an "append-only" engine.
+* Overwriting does not occur; phia is an "append-only" engine.
 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Reading million keys
@@ -243,7 +243,7 @@ which was random.
     :align: center
     :alt: i12.png
 
-During the Get (search), sophia first finds the correct Node by looking in the
+During the Get (search), phia first finds the correct Node by looking in the
 Node Index. Then it searches the Node's first in-memory index, and/or the Node's
 second in-memory index, and/or each Branch of the Node, starting from the end of
 the Node File.
@@ -270,7 +270,7 @@ Compaction process can run.
     :align: center
     :alt: i14.png
 
-Sophia is read optimized. It is very likely that the most recently created
+Phia is read optimized. It is very likely that the most recently created
 Branches (hot data) will be in the file system cache. The scheduler will give
 priority to the Nodes which have the largest in-memory indexes and the most
 Branches.
diff --git a/doc/sphinx/book/box/atomic.rst b/doc/sphinx/book/box/atomic.rst
index 0fd0152ddf..a97113424f 100644
--- a/doc/sphinx/book/box/atomic.rst
+++ b/doc/sphinx/book/box/atomic.rst
@@ -41,7 +41,7 @@ most of the box calls, including the data-change requests
 :func:`box.space...delete <space_object.delete>`, are yield points;
 however, :func:`box.space...select <space_object.select>` is not.
 
-Note re storage engine: sophia has different rules: insert or update or delete
+Note re storage engine: phia has different rules: insert or update or delete
 will very rarely cause a yield, but select can cause a yield.
 
 In the absence of transactions, any function that contains yield points may see
@@ -82,7 +82,7 @@ To ensure they are sent as a single block: put them in a function, or put them a
 on one line, or use a delimiter so that multi-line requests are handled together.
 
 **All database operations in a transaction should use the same storage engine**.
-It is not safe to access tuple sets that are defined with ``{engine='sophia'}``
+It is not safe to access tuple sets that are defined with ``{engine='phia'}``
 and also access tuple sets that are defined with ``{engine='memtx'}``,
 in the same transaction.
 
diff --git a/doc/sphinx/book/box/box_index.rst b/doc/sphinx/book/box/box_index.rst
index 03701ec2f9..2ba47e2a5e 100644
--- a/doc/sphinx/book/box/box_index.rst
+++ b/doc/sphinx/book/box/box_index.rst
@@ -113,7 +113,7 @@ API is a direct binding to corresponding methods of index objects of type
             the comparison-result for equality is always true when a search-value-part is ``nil``
             or is missing. This behavior of searches with nil is subject to change.
 
-            Note re storage engine: sophia does not allow search-value-parts to be ``nil`` or missing.
+            Note re storage engine: phia does not allow search-value-parts to be ``nil`` or missing.
 
             .. rst-class:: left-align-column-1
             .. rst-class:: left-align-column-2
@@ -132,7 +132,7 @@ API is a direct binding to corresponding methods of index objects of type
             | or 'REQ'      | value     | ``box.index.EQ``.                           |
             |               |           | Tuples are returned in descending order by  |
             |               |           | index key.                                  |
-            |               |           | Note re storage engine: sophia does not     |
+            |               |           | Note re storage engine: phia does not     |
             |               |           | REQ.                                        |
             +---------------+-----------+---------------------------------------------+
             | box.index.GT  | search    | The comparison operator is '>' (greater     |
@@ -495,7 +495,7 @@ API is a direct binding to corresponding methods of index objects of type
 
         Complexity Factors: Index size, Index type.
 
-        Note re storage engine: sophia does not support ``min()``.
+        Note re storage engine: phia does not support ``min()``.
 
         **Example:**
 
@@ -526,7 +526,7 @@ API is a direct binding to corresponding methods of index objects of type
 
         Complexity Factors: Index size, Index type.
 
-        Note re storage engine: sophia does not support ``max()``.
+        Note re storage engine: phia does not support ``max()``.
 
         **Example:**
 
@@ -555,7 +555,7 @@ API is a direct binding to corresponding methods of index objects of type
 
         Complexity Factors: Index size, Index type.
 
-        Note re storage engine: sophia does not support ``random()``.
+        Note re storage engine: phia does not support ``random()``.
 
         **Example:**
 
@@ -584,7 +584,7 @@ API is a direct binding to corresponding methods of index objects of type
         :return: the number of matching index keys.
         :rtype:  number
 
-        Note re storage engine: sophia does not support :codenormal:`count(...)`.
+        Note re storage engine: phia does not support :codenormal:`count(...)`.
         One possible workaround is to say :codenormal:`#select(...)`.
 
 
@@ -655,7 +655,7 @@ API is a direct binding to corresponding methods of index objects of type
         the first index cannot be changed to {unique = false}, or
         the alter function is only applicable for the memtx storage engine.
 
-        Note re storage engine: sophia does not support ``alter()``.
+        Note re storage engine: phia does not support ``alter()``.
 
         **Example:**
 
diff --git a/doc/sphinx/book/box/box_schema.rst b/doc/sphinx/book/box/box_schema.rst
index 73ae8be55b..3771454f8a 100644
--- a/doc/sphinx/book/box/box_schema.rst
+++ b/doc/sphinx/book/box/box_schema.rst
@@ -44,7 +44,7 @@ for spaces, users, roles, and function tuples.
         |               | duplicate name                 |         |                     |
         +---------------+--------------------------------+---------+---------------------+
         | engine        | storage engine =               | string  | 'memtx'             |
-        |               | :ref:`'memtx' or 'sophia'      |         |                     |
+        |               | :ref:`'memtx' or 'phia'      |         |                     |
         |               | <two-storage-engines>`         |         |                     |
         +---------------+--------------------------------+---------+---------------------+
         | user          | user name                      | string  | current user's name |
@@ -60,7 +60,7 @@ for spaces, users, roles, and function tuples.
     attached to the space objects, for example
     :func:`space_object:drop() <space_object.drop>`.
 
-    Note re storage engine: sophia does not support temporary spaces.
+    Note re storage engine: phia does not support temporary spaces.
 
 =================================================
                     Example
diff --git a/doc/sphinx/book/box/box_space.rst b/doc/sphinx/book/box/box_space.rst
index c0bc81241a..b8bb7bdf9d 100644
--- a/doc/sphinx/book/box/box_space.rst
+++ b/doc/sphinx/book/box/box_space.rst
@@ -152,7 +152,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
 
         Possible errors: too many parts. Index '...' already exists. Primary key must be unique.
 
-        Note re storage engine: sophia supports only the TREE index type,
+        Note re storage engine: phia supports only the TREE index type,
         and supports only one index per space,
         and supports only the unique = true option,
         and requires that field numbers be in order starting with 1.
@@ -179,7 +179,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
         Possible errors: If a tuple with the same unique-key value already exists,
         returns :errcode:`ER_TUPLE_FOUND`.
 
-        Note re storage engine: sophia will return nil, rather than the inserted tuple.
+        Note re storage engine: phia will return nil, rather than the inserted tuple.
 
         **Example:**
 
@@ -355,7 +355,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
         **Complexity Factors:** Index size, Index type,
         Number of indexes accessed, WAL settings.
 
-        Note re storage engine: sophia will return nil, rather than the inserted tuple.
+        Note re storage engine: phia will return nil, rather than the inserted tuple.
 
         **Example:**
 
@@ -411,7 +411,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
         **Complexity Factors:** Index size, Index type, number of indexes accessed, WAL
         settings.
 
-        Note re storage engine: sophia will return nil, rather than the updated tuple.
+        Note re storage engine: phia will return nil, rather than the updated tuple.
 
         Thus, in the instruction:
 
@@ -577,7 +577,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
 
         **Complexity Factors:** Index size, Index type
 
-        Note re storage engine: sophia will return nil, rather than the deleted tuple.
+        Note re storage engine: phia will return nil, rather than the deleted tuple.
 
         **Example:**
 
@@ -690,7 +690,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
             - 1
             ...
 
-    Note re storage engine: sophia does not support :codenormal:`count(...)`.
+    Note re storage engine: phia does not support :codenormal:`count(...)`.
     One possible workaround is to say :codenormal:`#select(...)`.
 
 
@@ -721,7 +721,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
 
         :return: nil
 
-        Note re storage engine: sophia does not support ``truncate``.
+        Note re storage engine: phia does not support ``truncate``.
 
         **Example:**
 
@@ -823,7 +823,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
         Insert a new tuple using an auto-increment primary key. The space specified
         by space_object must have a ``NUM`` primary key index of type ``TREE``. The
         primary-key field will be incremented before the insert.
-        Note re storage engine: sophia does not support auto_increment.
+        Note re storage engine: phia does not support auto_increment.
 
         Parameters: :samp:`{space_object}` = an :ref:`object reference <object-reference>`;
         :codeitalic:`field-value(s)` (type = Lua table or scalar) = tuple's fields, other than the primary-key field.
@@ -970,7 +970,7 @@ A list of all ``box.space`` functions follows, then comes a list of all
           - '313 1 _vpriv sysview 0  '
           - '320 1 _cluster memtx 0  '
           - '512 1 tester memtx 0  '
-          - '513 1 origin sophia 0  '
+          - '513 1 origin phia 0  '
           - '514 1 archive memtx 0  '
         ...
 
diff --git a/doc/sphinx/book/box/index.rst b/doc/sphinx/book/box/index.rst
index ba9e737b14..ef17c4d16f 100644
--- a/doc/sphinx/book/box/index.rst
+++ b/doc/sphinx/book/box/index.rst
@@ -323,8 +323,8 @@ the function holds a consistent view of the database until the UPDATE ends.
 For the combination “UPDATE plus SELECT” the view is not consistent,
 because after the UPDATE the transaction processor thread can switch
 to another fiber, and delete the tuple that was just updated.
-Note re storage engine: sophia handles yields differently, see
-:ref:`differences between memtx and sophia <sophia_diff>`.
+Note re storage engine: phia handles yields differently, see
+:ref:`differences between memtx and phia <phia_diff>`.
 Note re multi-request transactions: there is a way to delay yields,
 see :ref:`Atomic execution <atomic_execution>`.
 
@@ -520,7 +520,7 @@ This type of search may return more than one tuple;
 if so, the tuples will be in descending order by key
 when the comparison operator is LT or LE or REQ,
 otherwise in ascending order. |br|
-Note re storage engines: sophia does not allow REQ. |br|
+Note re storage engines: phia does not allow REQ. |br|
 (2) The search can use a secondary index. |br|
 :samp:`box.space.{space-name}.index.{index-name}:select('value')` |br|
 For a primary-key search, it is optional to specify
@@ -536,7 +536,7 @@ in the second case, the result will be two tuples:
 {1, 'A'} and {1, 'B'}. It's even possible to specify zero
 fields, causing all three tuples to be
 returned.
-Note re storage engines: sophia requires that all fields, or none, be specified.
+Note re storage engines: phia requires that all fields, or none, be specified.
 
 (1) BITSET example: |br|
 :codenormal:`box.schema.space.create('bitset_example')` |br|
@@ -639,25 +639,23 @@ which Complexity Factors might affect the function's resource usage.
 .. _two-storage-engines:
 
 =====================================================================
-            The two storage engines: memtx and sophia
+            The two storage engines: memtx and phia
 =====================================================================
 
 A storage engine is a set of very-low-level routines which actually store and
 retrieve tuple values. Tarantool offers a choice of two storage engines: memtx
-(the in-memory storage engine) and sophia (the on-disk storage engine).
-To specify that the engine should be sophia, add a clause: ``engine = 'sophia'``.
+(the in-memory storage engine) and phia (the on-disk storage engine).
+To specify that the engine should be phia, add a clause: ``engine = 'phia'``.
 The manual concentrates on memtx because it is the default and has been around
-longer. But sophia is a working key-value engine and will especially appeal to
+longer. But phia is a working key-value engine and will especially appeal to
 users who like to see data go directly to disk, so that recovery time might be
 shorter and database size might be larger. For architectural explanations and
-benchmarks, see `sphia.org`_ and Appendix E: :ref:`sophia <sophia>`.
-On the other hand, sophia lacks some functions and
+benchmarks, see Appendix E: :ref:`phia <phia>`.
+On the other hand, phia lacks some functions and
 options that are available with memtx. Where that is the case, the relevant
 description will contain a note beginning with the words
-"Note re storage engine: sophia". The end of this chapter has coverage
-for all :ref:`the differences between memtx and sophia <sophia_diff>`.
-
-.. _sphia.org: http://sphia.org
+"Note re storage engine: phia". The end of this chapter has coverage
+for all :ref:`the differences between memtx and phia <phia_diff>`.
 
 =====================================================================
                         Library Reference
@@ -677,6 +675,6 @@ for all :ref:`the differences between memtx and sophia <sophia_diff>`.
     authentication
     triggers
     limitations
-    sophia_diff
+    phia_diff
 
 
diff --git a/doc/sphinx/book/box/limitations.rst b/doc/sphinx/book/box/limitations.rst
index 8b3070ea88..860a3d9015 100644
--- a/doc/sphinx/book/box/limitations.rst
+++ b/doc/sphinx/book/box/limitations.rst
@@ -11,7 +11,7 @@
     maximum is 1 but the field is an ARRAY.
     For BITSET indexes, the maximum is 1. 
 
-    Note re storage engine: sophia allows 8 parts in an index.
+    Note re storage engine: phia allows 8 parts in an index.
 
 .. _lim_indexes_in_space:
 
@@ -19,7 +19,7 @@
 
     128 (``box.schema.INDEX_MAX``).
 
-    Note re storage engine: sophia allows 1 index in a space.
+    Note re storage engine: phia allows 1 index in a space.
 
 .. _lim_fields_in_tuple:
 
@@ -86,9 +86,9 @@
 
     32 (``box.schema.REPLICA_MAX``).
 
-.. _lim_sophia:
+.. _lim_phia:
 
-For additional limitations which apply only to the sophia
+For additional limitations which apply only to the phia
 storage engine, see section
-:ref:`Differences between memtx and sophia <sophia_diff>`.
+:ref:`Differences between memtx and phia <phia_diff>`.
 
diff --git a/doc/sphinx/book/box/sophia_diff.rst b/doc/sphinx/book/box/phia_diff.rst
similarity index 71%
rename from doc/sphinx/book/box/sophia_diff.rst
rename to doc/sphinx/book/box/phia_diff.rst
index f6f22ed92d..4fb8c4c0dc 100644
--- a/doc/sphinx/book/box/sophia_diff.rst
+++ b/doc/sphinx/book/box/phia_diff.rst
@@ -1,15 +1,15 @@
-.. _sophia_diff:
+.. _phia_diff:
 
 -------------------------------------------------------------------------------
-        Differences between memtx and sophia storage engines
+        Differences between memtx and phia storage engines
 -------------------------------------------------------------------------------
 
-    The primary difference between memtx and sophia is that
-    memtx is an "in-memory" engine while sophia is an "on-disk"
+    The primary difference between memtx and phia is that
+    memtx is an "in-memory" engine while phia is an "on-disk"
     engine. An in-memory storage engine is generally fastr,
     and the memtx engine is justifiably the default for Tarantool,
     but there are two situations where an on-disk engine such as
-    sophia would be preferable:
+    phia would be preferable:
 
     (1) when the database is larger than the available memory and
     adding more memory is not a realistic option;
@@ -19,44 +19,44 @@
 
     Here are behavior differences which affect programmers.
     All of these differences have been noted elsewhere in
-    sentences that begin with the words "Note re storage engine: sophia".
+    sentences that begin with the words "Note re storage engine: phia".
 
     With memtx, the maximum number of indexes per space is 128. |br|
-    With sophia, the maximum is 1, that is, only primary indexes are supported.
-    Since primary indexes are always unique, it follows that sophia indexes must be unique.
+    With phia, the maximum is 1, that is, only primary indexes are supported.
+    Since primary indexes are always unique, it follows that phia indexes must be unique.
 
     With memtx, the maximum number of (TREE) index-key parts is 255. |br|
-    With sophia, the maximum is 8.
+    With phia, the maximum is 8.
 
     With memtx, the index type can be TREE or HASH or RTREE or BITSET. |br|
-    With sophia, the only index type is TREE.
+    With phia, the only index type is TREE.
 
     With memtx, field numbers for index parts may be in any order. |br|
-    With sophia, they must be in order, with no gaps, starting with field number 1.
+    With phia, they must be in order, with no gaps, starting with field number 1.
 
     With memtx, for index searches, ``nil`` is considered to be equal to any scalar key-part. |br|
     With memtx, ``nil`` or missing parts are not allowed.
 
     With memtx, temporary spaces are supported. |br|
-    With sophia, they are not.
+    With phia, they are not.
 
     With memtx, the :ref:`alter() <index_alter>` and :ref:`count() <index_count>`
     and :ref:`min() <index_min>` and :ref:`max() <index_max>` and
     :ref:`random() <index_random>` and :ref:`auto_increment() <space_auto_increment>`
     and :ref:`truncate() <space_truncate>` functions are supported. |br|
-    With sophia, they are not.
+    With phia, they are not.
 
     With memtx, insert and replace and update will return a tuple, if successful. |br|
-    With sophia, insert and replace and update will return nil.
+    With phia, insert and replace and update will return nil.
 
     With memtx, the REQ (reverse equality) comparison-operator is supported. |br|
-    With sophia, it is not.
+    With phia, it is not.
     (This is a minor matter because on a unique index EQ and REQ do the same thing.)
 
     It was explained :ref:`earlier <yields_must_happen>` that memtx does not "yield" on a select request,
-    it yields only on data-change requests. However, sophia does yield on a select
+    it yields only on data-change requests. However, phia does yield on a select
     request, or on an equivalent such as get() or pairs(). This has significance
     for :ref:`cooperative multitasking <cooperative_multitasking>`.
 
-    For more about sophia, see Appendix E :ref:`sophia <sophia>`.
+    For more about phia, see Appendix E :ref:`phia <phia>`.
 
diff --git a/doc/sphinx/book/configuration/cfg-basic.rst b/doc/sphinx/book/configuration/cfg-basic.rst
index 933f3197e4..1e4f720f4b 100644
--- a/doc/sphinx/book/configuration/cfg-basic.rst
+++ b/doc/sphinx/book/configuration/cfg-basic.rst
@@ -93,9 +93,9 @@
     Default: "." |br|
     Dynamic: no |br|
 
-.. confval:: sophia_dir
+.. confval:: phia_dir
 
-    A directory where sophia files or sub-directories will be stored. Can be relative to
+    A directory where phia files or sub-directories will be stored. Can be relative to
     :ref:`work_dir <box-cfg-work-dir>`. If not specified, defaults to work_dir.
 
     Type: string |br|
diff --git a/doc/sphinx/book/configuration/cfg-storage.rst b/doc/sphinx/book/configuration/cfg-storage.rst
index 3951943ebf..7808da90d2 100644
--- a/doc/sphinx/book/configuration/cfg-storage.rst
+++ b/doc/sphinx/book/configuration/cfg-storage.rst
@@ -40,14 +40,14 @@
     Default: 16 |br|
     Dynamic: no |br|
 
-.. confval:: sophia
+.. confval:: phia
 
-    The default sophia configuration can be changed with
+    The default phia configuration can be changed with
 
     .. cssclass:: highlight
     .. parsed-literal::
 
-        sophia = {
+        phia = {
           page_size = *number*,
           memory_limit = *number*,
           compression_key = *number*,
@@ -71,7 +71,7 @@
         .. cssclass:: highlight
         .. parsed-literal::
 
-            sophia = {
+            phia = {
                 page_size = 131072,
                 memory_limit = 0,
                 compression_key = 0,
diff --git a/doc/sphinx/book/index.rst b/doc/sphinx/book/index.rst
index 0639684761..52971edbd1 100644
--- a/doc/sphinx/book/index.rst
+++ b/doc/sphinx/book/index.rst
@@ -18,4 +18,4 @@
     app/b-internals
     app/c-lua_tutorial
     app/d-plugins
-    app/e-sophia/index
+    app/e-phia/index
diff --git a/doc/www/content/newsite/index.yml b/doc/www/content/newsite/index.yml
index 30c3e253d0..34633c693a 100644
--- a/doc/www/content/newsite/index.yml
+++ b/doc/www/content/newsite/index.yml
@@ -25,8 +25,8 @@ blocks  :
     - format: rst
       content: >
         a built-in database with 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
+        with optional persistence and a 2-level disk-based B-tree
+        to use with large data sets
     - "secondary key and index iterators support"
     - "asynchronous master-master replication"
     - "authentication and access control"
diff --git a/extra/dist/default/tarantool.in b/extra/dist/default/tarantool.in
index 2fa8ff9253..1a8fb54114 100644
--- a/extra/dist/default/tarantool.in
+++ b/extra/dist/default/tarantool.in
@@ -17,7 +17,7 @@ default_cfg = {
     pid_file   = "@TARANTOOL_RUNDIR@", -- @TARANTOOL_RUNDIR@/${INSTANCE}.pid
     wal_dir    = "@TARANTOOL_DATADIR@", -- @TARANTOOL_DATADIR@/${INSTANCE}/
     snap_dir   = "@TARANTOOL_DATADIR@", -- @TARANTOOL_DATADIR@/${INSTANCE}
-    sophia_dir = "@TARANTOOL_DATADIR@", -- @TARANTOOL_DATADIR@/${INSTANCE}
+    phia_dir = "@TARANTOOL_DATADIR@", -- @TARANTOOL_DATADIR@/${INSTANCE}
     logger     = "@TARANTOOL_LOGDIR@", -- @TARANTOOL_LOGDIR@/${INSTANCE}.log
     username   = "@TARANTOOL_USER@",
 }
diff --git a/extra/dist/example.lua b/extra/dist/example.lua
index a02f2e429b..11288cf494 100644
--- a/extra/dist/example.lua
+++ b/extra/dist/example.lua
@@ -30,9 +30,9 @@ box.cfg {
     -- If not specified, defaults to /var/lib/tarantool/INSTANCE
     -- snap_dir = nil;
 
-    -- An absolute path to directory where sophia files are stored.
+    -- An absolute path to directory where phia files are stored.
     -- If not specified, defaults to /var/lib/tarantool/INSTANCE
-    -- sophia_dir = nil;
+    -- phia_dir = nil;
 
     -- The read/write data port number or URI
     -- Has no default value, so must be specified if
diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in
index 594c8810c7..6f9990b922 100755
--- a/extra/dist/tarantoolctl.in
+++ b/extra/dist/tarantoolctl.in
@@ -32,8 +32,8 @@ The file contains common default instances options:
         -- snap_dir/instance/
         snap_dir    =   "/var/lib/tarantool",
 
-        -- sophia_dir/instance/
-        sophia_dir  =   "/var/lib/tarantool/sophia",
+        -- phia_dir/instance/
+        phia_dir  =   "/var/lib/tarantool/phia",
 
         -- logger/instance .. '.log'
         logger      =   "/var/log/tarantool",
@@ -251,12 +251,12 @@ local function load_default_file(default_file)
     d.wal_dir    = d.wal_dir     or "/var/lib/tarantool"
     d.snap_dir   = d.snap_dir    or "/var/lib/tarantool"
     d.logger     = d.logger      or "/var/log/tarantool"
-    d.sophia_dir = d.sophia_dir  or "/var/lib/tarantool"
+    d.phia_dir = d.phia_dir  or "/var/lib/tarantool"
 
     d.pid_file   = fio.pathjoin(d.pid_file,   instance_name .. '.pid')
     d.wal_dir    = fio.pathjoin(d.wal_dir,    instance_name)
     d.snap_dir   = fio.pathjoin(d.snap_dir,   instance_name)
-    d.sophia_dir = fio.pathjoin(d.sophia_dir, instance_name)
+    d.phia_dir = fio.pathjoin(d.phia_dir, instance_name)
     d.logger     = fio.pathjoin(d.logger,     instance_name .. '.log')
 
     default_cfg = d
@@ -348,7 +348,7 @@ local function mk_default_dirs(cfg)
         fio.dirname(cfg.pid_file),
         cfg.wal_dir,
         cfg.snap_dir,
-        cfg.sophia_dir,
+        cfg.phia_dir,
     }
     local log_dir = fio.dirname(cfg.logger)
     if log_dir:find('|') == nil then
diff --git a/rpm/tarantool.spec b/rpm/tarantool.spec
index 2af0acd2e9..61a0ae3783 100644
--- a/rpm/tarantool.spec
+++ b/rpm/tarantool.spec
@@ -124,7 +124,7 @@ echo "self.skip = True" > ./test/app/socket.skipcond
 # https://github.com/tarantool/tarantool/issues/1322
 echo "self.skip = True" > ./test/app/digest.skipcond
 # run a safe subset of the test suite
-cd test && ./test-run.py unit/ app/ app-tap/ box/ box-tap/ engine/ sophia/
+cd test && ./test-run.py unit/ app/ app-tap/ box/ box-tap/ engine/ phia/
 %endif
 
 %pre
diff --git a/src/box/CMakeLists.txt b/src/box/CMakeLists.txt
index ded48249b6..fdbefc76fc 100644
--- a/src/box/CMakeLists.txt
+++ b/src/box/CMakeLists.txt
@@ -1,7 +1,5 @@
 file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/src/box/lua)
 
-include_directories(${SOPHIA_INCLUDE_DIRS})
-
 set(lua_sources)
 lua_source(lua_sources lua/load_cfg.lua)
 lua_source(lua_sources lua/schema.lua)
@@ -43,10 +41,10 @@ add_library(box STATIC
     memtx_engine.cc
     sysview_engine.cc
     sysview_index.cc
-    sophia_engine.cc
-    sophia_space.cc
-    sophia_index.cc
-    sophia.c
+    phia_engine.cc
+    phia_space.cc
+    phia_index.cc
+    phia.c
     space.cc
     func.cc
     alter.cc
@@ -76,11 +74,10 @@ add_library(box STATIC
     lua/misc.cc
     lua/info.c
     lua/stat.c
-    lua/sophia.c
+    lua/phia.c
     lua/error.cc
     lua/session.c
     lua/net_box.c
     ${bin_sources})
 
 add_dependencies(box build_bundled_libs)
-target_link_libraries(box ${SOPHIA_LIBRARIES})
diff --git a/src/box/box.cc b/src/box/box.cc
index d630f20540..cfd60acbe6 100644
--- a/src/box/box.cc
+++ b/src/box/box.cc
@@ -48,7 +48,7 @@
 #include "memtx_engine.h"
 #include "memtx_index.h"
 #include "sysview_engine.h"
-#include "sophia_engine.h"
+#include "phia_engine.h"
 #include "space.h"
 #include "port.h"
 #include "request.h"
@@ -989,7 +989,7 @@ box_process_join(struct ev_io *io, struct xrow_header *header)
 	 * <= INSERT
 	 *    ...
 	 *    Initial data: a stream of engine-specifc rows, e.g. snapshot
-	 *    rows for memtx or dirty cursor data for Sophia. Engine can
+	 *    rows for memtx or dirty cursor data for Phia. Engine can
 	 *    use SERVER_ID, LSN and other fields for internal purposes.
 	 *    ...
 	 * <= INSERT
@@ -1216,9 +1216,9 @@ engine_init()
 	SysviewEngine *sysview = new SysviewEngine();
 	engine_register(sysview);
 
-	SophiaEngine *sophia = new SophiaEngine();
-	sophia->init();
-	engine_register(sophia);
+	PhiaEngine *phia = new PhiaEngine();
+	phia->init();
+	engine_register(phia);
 }
 
 /**
@@ -1362,7 +1362,7 @@ box_init(void)
 		recovery = recovery_new(cfg_gets("wal_dir"),
 					cfg_geti("panic_on_wal_error"),
 					&checkpoint_vclock);
-		/* Tell Sophia engine LSN it must recover to. */
+		/* Tell Phia engine LSN it must recover to. */
 		engine_recover_to_checkpoint(lsn);
 		/* Replace server vclock using the data from snapshot */
 		vclock_copy(&recovery->vclock, &checkpoint_vclock);
diff --git a/src/box/engine.cc b/src/box/engine.cc
index 6d68993ab1..8fa9abce54 100644
--- a/src/box/engine.cc
+++ b/src/box/engine.cc
@@ -214,7 +214,7 @@ Handler::executeSelect(struct txn *, struct space *space,
 	struct tuple *tuple;
 	while ((tuple = it->next(it)) != NULL) {
 		/*
-		 * This is for Sophia, which returns a tuple
+		 * This is for Phia, which returns a tuple
 		 * with zero refs from the iterator, expecting
 		 * the caller to GC it after use.
 		 */
diff --git a/src/box/errcode.h b/src/box/errcode.h
index f5499f035b..8c6147d3bf 100644
--- a/src/box/errcode.h
+++ b/src/box/errcode.h
@@ -113,7 +113,7 @@ struct errcode_record {
 	/* 57 */_(ER_NO_SUCH_ENGINE,		2, "Space engine '%s' does not exist") \
 	/* 58 */_(ER_RELOAD_CFG,		2, "Can't set option '%s' dynamically") \
 	/* 59 */_(ER_CFG,			2, "Incorrect value for option '%s': %s") \
-	/* 60 */_(ER_SOPHIA,			2, "%s") \
+	/* 60 */_(ER_PHIA,			2, "%s") \
 	/* 61 */_(ER_LOCAL_SERVER_IS_NOT_ACTIVE,2, "Local server is not active") \
 	/* 62 */_(ER_UNKNOWN_SERVER,		2, "Server %s is not registered with the cluster") \
 	/* 63 */_(ER_CLUSTER_ID_MISMATCH,	2, "Cluster id of the replica %s doesn't match cluster id of the master %s") \
diff --git a/src/box/index.cc b/src/box/index.cc
index 4bc504a029..500d6c3361 100644
--- a/src/box/index.cc
+++ b/src/box/index.cc
@@ -294,7 +294,7 @@ box_index_len(uint32_t space_id, uint32_t index_id)
 {
 	try {
 		struct space *space;
-		/* no tx management, len is approximate in sophia anyway. */
+		/* no tx management, len is approximate in phia anyway. */
 		return check_index(space_id, index_id, &space)->size();
 	} catch (Exception *) {
 		return (size_t) -1; /* handled by box.error() in Lua */
@@ -460,7 +460,7 @@ box_index_iterator(uint32_t space_id, uint32_t index_id, int type,
 		/*
 		 * No transaction management: iterators are
 		 * "dirty" in tarantool now, they exist in
-		 * their own read view in sophia or access dirty
+		 * their own read view in phia or access dirty
 		 * data in memtx.
 		 */
 		return it;
diff --git a/src/box/key_def.h b/src/box/key_def.h
index 05aae93329..e5cd8d725a 100644
--- a/src/box/key_def.h
+++ b/src/box/key_def.h
@@ -163,7 +163,7 @@ struct key_opts {
 	char distancebuf[16];
 	enum rtree_index_distance_type distance;
 	/**
-	 * Sophia index options.
+	 * Phia index options.
 	 */
 	char path[PATH_MAX];
 	char compression[16];
diff --git a/src/box/lua/init.c b/src/box/lua/init.c
index 2103fa4992..702da93f18 100644
--- a/src/box/lua/init.c
+++ b/src/box/lua/init.c
@@ -47,7 +47,7 @@
 #include "box/lua/space.h"
 #include "box/lua/misc.h"
 #include "box/lua/stat.h"
-#include "box/lua/sophia.h"
+#include "box/lua/phia.h"
 #include "box/lua/info.h"
 #include "box/lua/session.h"
 #include "box/lua/net_box.h"
@@ -119,7 +119,7 @@ box_lua_init(struct lua_State *L)
 	box_lua_misc_init(L);
 	box_lua_info_init(L);
 	box_lua_stat_init(L);
-	box_lua_sophia_init(L);
+	box_lua_phia_init(L);
 	box_lua_session_init(L);
 	luaopen_net_box(L);
 	lua_pop(L, 1);
diff --git a/src/box/lua/load_cfg.lua b/src/box/lua/load_cfg.lua
index 143fe7afff..6ef8a8518a 100644
--- a/src/box/lua/load_cfg.lua
+++ b/src/box/lua/load_cfg.lua
@@ -5,7 +5,7 @@ local json = require('json')
 local private = require('box.internal')
 
 -- see default_cfg below
-local default_sophia_cfg = {
+local default_phia_cfg = {
     memory_limit      = 0,
     threads           = 5,
     compact_wm        = 2,
@@ -31,8 +31,8 @@ local default_cfg = {
     work_dir            = nil,
     snap_dir            = ".",
     wal_dir             = ".",
-    sophia_dir          = '.',
-    sophia              = default_sophia_cfg,
+    phia_dir          = '.',
+    phia              = default_phia_cfg,
     logger              = nil,
     logger_nonblock     = true,
     log_level           = 5,
@@ -59,7 +59,7 @@ local default_cfg = {
 }
 
 -- see template_cfg below
-local sophia_template_cfg = {
+local phia_template_cfg = {
     memory_limit      = 'number',
     threads           = 'number',
     compact_wm        = 'number',
@@ -86,8 +86,8 @@ local template_cfg = {
     work_dir            = 'string',
     snap_dir            = 'string',
     wal_dir             = 'string',
-    sophia_dir          = 'string',
-    sophia              = sophia_template_cfg,
+    phia_dir          = 'string',
+    phia              = phia_template_cfg,
     logger              = 'string',
     logger_nonblock     = 'boolean',
     log_level           = 'number',
diff --git a/src/box/lua/misc.cc b/src/box/lua/misc.cc
index e08d3942ff..e3531cc631 100644
--- a/src/box/lua/misc.cc
+++ b/src/box/lua/misc.cc
@@ -57,7 +57,7 @@ lbox_encode_tuple_on_gc(lua_State *L, int idx, size_t *p_len)
 
 /* }}} */
 
-/** {{{ Lua/C implementation of index:select(): used only by Sophia **/
+/** {{{ Lua/C implementation of index:select(): used only by Phia **/
 
 static inline void
 lbox_port_to_table(lua_State *L, struct port *port)
diff --git a/src/box/lua/sophia.c b/src/box/lua/phia.c
similarity index 71%
rename from src/box/lua/sophia.c
rename to src/box/lua/phia.c
index 714a5297b6..d99a100ddf 100644
--- a/src/box/lua/sophia.c
+++ b/src/box/lua/phia.c
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-#include "sophia.h"
+#include "phia.h"
 
 #include <lua.h>
 #include <lauxlib.h>
@@ -39,52 +39,52 @@
 
 #if 0
 /**
- * When user invokes box.sophia(), return a table of key/value
+ * When user invokes box.phia(), return a table of key/value
  * pairs containing the current info.
  */
 static int
-lbox_sophia_call(struct lua_State *L)
+lbox_phia_call(struct lua_State *L)
 {
 	lua_newtable(L);
-	sophia_info(lbox_sophia_cb, (void*)L);
+	phia_info(lbox_phia_cb, (void*)L);
 	return 1;
 }
 
 #if 0
 static int
-lbox_sophia_index(struct lua_State *L)
+lbox_phia_index(struct lua_State *L)
 {
-	lbox_sophia_call(L);
+	lbox_phia_call(L);
 	//lua_pushvalue(L, -2);
 	lua_gettable(L, -2);
 	return 1;
 }
 #endif
 
-/** Initialize box.sophia package. */
+/** Initialize box.phia package. */
 void
-box_lua_sophia_init(struct lua_State *L)
+box_lua_phia_init(struct lua_State *L)
 {
 	/*
-	static const struct luaL_reg sophialib [] = {
+	static const struct luaL_reg phialib [] = {
 		{NULL, NULL}
 	};
 	*/
 
-	//luaL_register_module(L, "box.sophia", sophialib);
-	lua_register(L, "box.sophia", lbox_sophia_call);
+	//luaL_register_module(L, "box.phia", phialib);
+	lua_register(L, "box.phia", lbox_phia_call);
 
-	//lbox_sophia_call(L);
+	//lbox_phia_call(L);
 
 	/*
 	lua_newtable(L);
 
 	lua_pushstring(L, "__index");
-	lua_pushcfunction(L, lbox_sophia_index);
+	lua_pushcfunction(L, lbox_phia_index);
 	lua_settable(L, -3);
 
 	lua_pushstring(L, "__serialize");
-	lua_pushcfunction(L, lbox_sophia_call);
+	lua_pushcfunction(L, lbox_phia_call);
 	lua_settable(L, -3);
 	*/
 
@@ -139,12 +139,12 @@ seek_stat_item(const char *name, int rps, int64_t total, void *cb_ctx)
 }
 #endif
 
-typedef void (*sophia_info_f)(const char*, const char*, void *);
+typedef void (*phia_info_f)(const char*, const char*, void *);
 
-extern int sophia_info(const char *name, sophia_info_f, void *);
+extern int phia_info(const char *name, phia_info_f, void *);
 
 static void
-lbox_sophia_cb_index(const char *key, const char *value, void *arg)
+lbox_phia_cb_index(const char *key, const char *value, void *arg)
 {
 	(void) key;
 	struct lua_State *L;
@@ -157,15 +157,15 @@ lbox_sophia_cb_index(const char *key, const char *value, void *arg)
 }
 
 static int
-lbox_sophia_index(struct lua_State *L)
+lbox_phia_index(struct lua_State *L)
 {
 	luaL_checkstring(L, -1);
 	const char *name = lua_tostring(L, -1);
-	return sophia_info(name, lbox_sophia_cb_index, (void*)L);
+	return phia_info(name, lbox_phia_cb_index, (void*)L);
 }
 
 static void
-lbox_sophia_cb(const char *key, const char *value, void *arg)
+lbox_phia_cb(const char *key, const char *value, void *arg)
 {
 	struct lua_State *L;
 	L = (struct lua_State*)arg;
@@ -177,31 +177,31 @@ lbox_sophia_cb(const char *key, const char *value, void *arg)
 }
 
 static int
-lbox_sophia_call(struct lua_State *L)
+lbox_phia_call(struct lua_State *L)
 {
 	lua_newtable(L);
-	sophia_info(NULL, lbox_sophia_cb, (void*)L);
+	phia_info(NULL, lbox_phia_cb, (void*)L);
 	return 1;
 }
 
-static const struct luaL_reg lbox_sophia_meta [] = {
-	{"__index", lbox_sophia_index},
-	{"__call",  lbox_sophia_call},
+static const struct luaL_reg lbox_phia_meta [] = {
+	{"__index", lbox_phia_index},
+	{"__call",  lbox_phia_call},
 	{NULL, NULL}
 };
 
 void
-box_lua_sophia_init(struct lua_State *L)
+box_lua_phia_init(struct lua_State *L)
 {
-	static const struct luaL_reg sophialib [] = {
+	static const struct luaL_reg phialib [] = {
 		{NULL, NULL}
 	};
 
-	luaL_register_module(L, "box.sophia", sophialib);
+	luaL_register_module(L, "box.phia", phialib);
 
 	lua_newtable(L);
-	luaL_register(L, NULL, lbox_sophia_meta);
+	luaL_register(L, NULL, lbox_phia_meta);
 	lua_setmetatable(L, -2);
 
-	lua_pop(L, 1); /* sophia module */
+	lua_pop(L, 1); /* phia module */
 }
diff --git a/src/box/lua/sophia.h b/src/box/lua/phia.h
similarity index 90%
rename from src/box/lua/sophia.h
rename to src/box/lua/phia.h
index bad5430a66..ce05001251 100644
--- a/src/box/lua/sophia.h
+++ b/src/box/lua/phia.h
@@ -1,5 +1,5 @@
-#ifndef INCLUDES_TARANTOOL_LUA_SOPHIA_H
-#define INCLUDES_TARANTOOL_LUA_SOPHIA_H
+#ifndef INCLUDES_TARANTOOL_LUA_PHIA_H
+#define INCLUDES_TARANTOOL_LUA_PHIA_H
 /*
  * Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file.
  *
@@ -35,10 +35,10 @@ extern "C" {
 #endif /* defined(__cplusplus) */
 
 struct lua_State;
-void box_lua_sophia_init(struct lua_State *L);
+void box_lua_phia_init(struct lua_State *L);
 
 #if defined(__cplusplus)
 } /* extern "C" */
 #endif /* defined(__cplusplus) */
 
-#endif /* INCLUDES_TARANTOOL_LUA_SOPHIA_H */
+#endif /* INCLUDES_TARANTOOL_LUA_PHIA_H */
diff --git a/src/box/lua/schema.lua b/src/box/lua/schema.lua
index 5cbe02e7bb..c2d35dbdb1 100644
--- a/src/box/lua/schema.lua
+++ b/src/box/lua/schema.lua
@@ -468,8 +468,8 @@ box.schema.index.alter = function(space_id, index_id, options)
     if box.space[space_id] == nil then
         box.error(box.error.NO_SUCH_SPACE, '#'..tostring(space_id))
     end
-    if box.space[space_id].engine == 'sophia' then
-        box.error(box.error.SOPHIA, 'alter is not supported for a Sophia index')
+    if box.space[space_id].engine == 'phia' then
+        box.error(box.error.PHIA, 'alter is not supported for a Phia index')
     end
     if box.space[space_id].index[index_id] == nil then
         box.error(box.error.NO_SUCH_INDEX, index_id, box.space[space_id].name)
@@ -873,7 +873,7 @@ function box.schema.space.bless(space)
     end
 
     -- true if reading operations may yield
-    local read_yields = space.engine == 'sophia'
+    local read_yields = space.engine == 'phia'
     local read_ops = {'select', 'get', 'min', 'max', 'count', 'random', 'pairs'}
     for _, op in ipairs(read_ops) do
         if read_yields then
diff --git a/src/box/sophia.c b/src/box/phia.c
similarity index 99%
rename from src/box/sophia.c
rename to src/box/phia.c
index bb049a042e..4aab907567 100644
--- a/src/box/sophia.c
+++ b/src/box/phia.c
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  */
 
-#define SOPHIA_BUILD "8d25e8d"
+#define PHIA_BUILD "8d25e8d"
 
 #define _GNU_SOURCE 1
 
@@ -1297,14 +1297,6 @@ void ss_qfrecover(ssqf*, int, int, uint32_t, uint64_t*);
 void ss_qfadd(ssqf*, uint64_t);
 int  ss_qfhas(ssqf*, uint64_t);
 
-/*
- * sophia database
- * sphia.org
- *
- * Copyright (c) Dmitry Simonenko
- * BSD License
-*/
-
 static inline unsigned int
 ss_fnv(char *key, int len)
 {
@@ -13883,8 +13875,8 @@ sf_schemefind(sfscheme *s, char *name)
 #define SR_VERSION_STORAGE_B '1'
 #define SR_VERSION_STORAGE_C '1'
 
-#if defined(SOPHIA_BUILD)
-# define SR_VERSION_COMMIT SOPHIA_BUILD
+#if defined(PHIA_BUILD)
+# define SR_VERSION_COMMIT PHIA_BUILD
 #else
 # define SR_VERSION_COMMIT "unknown"
 #endif
@@ -28313,7 +28305,7 @@ typedef struct {
 } serecovercb;
 
 struct seconfrt {
-	/* sophia */
+	/* phia */
 	char      version[16];
 	char      version_storage[16];
 	char      build[32];
@@ -28352,7 +28344,7 @@ struct seconfrt {
 };
 
 struct seconf {
-	/* sophia */
+	/* phia */
 	char         *path;
 	uint32_t      path_create;
 	int           recover;
@@ -28952,7 +28944,7 @@ se_confv_offline(srconf *c, srconfstmt *s)
 }
 
 static inline int
-se_confsophia_error(srconf *c, srconfstmt *s)
+se_confphia_error(srconf *c, srconfstmt *s)
 {
 	se *e = s->ptr;
 	char *errorp;
@@ -28976,18 +28968,18 @@ se_confsophia_error(srconf *c, srconfstmt *s)
 }
 
 static inline srconf*
-se_confsophia(se *e, seconfrt *rt, srconf **pc)
+se_confphia(se *e, seconfrt *rt, srconf **pc)
 {
-	srconf *sophia = *pc;
+	srconf *phia = *pc;
 	srconf *p = NULL;
 	sr_C(&p, pc, se_confv, "version", SS_STRING, rt->version, SR_RO, NULL);
 	sr_C(&p, pc, se_confv, "version_storage", SS_STRING, rt->version_storage, SR_RO, NULL);
 	sr_C(&p, pc, se_confv, "build", SS_STRING, rt->build, SR_RO, NULL);
-	sr_C(&p, pc, se_confsophia_error, "error", SS_STRING, NULL, SR_RO, NULL);
+	sr_C(&p, pc, se_confphia_error, "error", SS_STRING, NULL, SR_RO, NULL);
 	sr_c(&p, pc, se_confv_offline, "path", SS_STRINGPTR, &e->conf.path);
 	sr_c(&p, pc, se_confv_offline, "path_create", SS_U32, &e->conf.path_create);
 	sr_c(&p, pc, se_confv_offline, "recover", SS_U32, &e->conf.recover);
-	return sr_C(NULL, pc, NULL, "sophia", SS_UNDEF, sophia, SR_NS, NULL);
+	return sr_C(NULL, pc, NULL, "phia", SS_UNDEF, phia, SR_NS, NULL);
 }
 
 static inline srconf*
@@ -29787,9 +29779,9 @@ se_confdebug(se *e, seconfrt *rt ssunused, srconf **pc)
 static srconf*
 se_confprepare(se *e, seconfrt *rt, srconf *c, int serialize)
 {
-	/* sophia */
+	/* phia */
 	srconf *pc = c;
-	srconf *sophia     = se_confsophia(e, rt, &pc);
+	srconf *phia     = se_confphia(e, rt, &pc);
 	srconf *memory     = se_confmemory(e, rt, &pc);
 	srconf *compaction = se_confcompaction(e, rt, &pc);
 	srconf *scheduler  = se_confscheduler(e, rt, &pc);
@@ -29801,7 +29793,7 @@ se_confprepare(se *e, seconfrt *rt, srconf *c, int serialize)
 	srconf *db         = se_confdb(e, rt, &pc);
 	srconf *debug      = se_confdebug(e, rt, &pc);
 
-	sophia->next     = memory;
+	phia->next     = memory;
 	memory->next     = compaction;
 	compaction->next = scheduler;
 	scheduler->next  = perf;
@@ -29812,13 +29804,13 @@ se_confprepare(se *e, seconfrt *rt, srconf *c, int serialize)
 	backup->next     = db;
 	if (! serialize)
 		db->next = debug;
-	return sophia;
+	return phia;
 }
 
 static int
 se_confrt(se *e, seconfrt *rt)
 {
-	/* sophia */
+	/* phia */
 	snprintf(rt->version, sizeof(rt->version),
 	         "%d.%d.%d",
 	         SR_VERSION_A - '0',
diff --git a/src/box/sophia.h b/src/box/phia.h
similarity index 94%
rename from src/box/sophia.h
rename to src/box/phia.h
index b33bf19635..17bdbdc406 100644
--- a/src/box/sophia.h
+++ b/src/box/phia.h
@@ -1,5 +1,5 @@
-#ifndef INCLUDES_TARANTOOL_BOX_SOPHIA_H
-#define INCLUDES_TARANTOOL_BOX_SOPHIA_H
+#ifndef INCLUDES_TARANTOOL_BOX_PHIA_H
+#define INCLUDES_TARANTOOL_BOX_PHIA_H
 /*
  * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file.
  *
@@ -65,4 +65,4 @@ int      sp_commit(void*);
 }
 #endif
 
-#endif /* INCLUDES_TARANTOOL_BOX_SOPHIA_H */
+#endif /* INCLUDES_TARANTOOL_BOX_PHIA_H */
diff --git a/src/box/sophia_engine.cc b/src/box/phia_engine.cc
similarity index 71%
rename from src/box/sophia_engine.cc
rename to src/box/phia_engine.cc
index 5ea5c7418c..39d5c9ed8c 100644
--- a/src/box/sophia_engine.cc
+++ b/src/box/phia_engine.cc
@@ -28,9 +28,9 @@
  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-#include "sophia_engine.h"
-#include "sophia_index.h"
-#include "sophia_space.h"
+#include "phia_engine.h"
+#include "phia_index.h"
+#include "phia_space.h"
 #include "coeio.h"
 #include "coio.h"
 #include "cfg.h"
@@ -46,7 +46,7 @@
 #include "request.h"
 #include "iproto_constants.h"
 #include "small/pmatomic.h"
-#include "sophia.h"
+#include "phia.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -56,7 +56,7 @@ static int worker_pool_size;
 static volatile int worker_pool_run;
 
 static inline uint32_t
-sophia_get_parts(struct key_def *key_def, void *obj, void *value, int valuesize,
+phia_get_parts(struct key_def *key_def, void *obj, void *value, int valuesize,
 		 struct iovec *parts, uint32_t *field_count)
 {
 	/* prepare keys */
@@ -95,7 +95,7 @@ sophia_get_parts(struct key_def *key_def, void *obj, void *value, int valuesize,
 }
 
 static inline char *
-sophia_write_parts(struct key_def *key_def, void *value, int valuesize,
+phia_write_parts(struct key_def *key_def, void *value, int valuesize,
 		   struct iovec *parts, char *p)
 {
 	for (uint32_t i = 0; i < key_def->part_count; i++) {
@@ -116,7 +116,7 @@ sophia_write_parts(struct key_def *key_def, void *value, int valuesize,
 }
 
 struct tuple *
-sophia_tuple_new(void *obj, struct key_def *key_def,
+phia_tuple_new(void *obj, struct key_def *key_def,
 		 struct tuple_format *format)
 {
 	assert(format);
@@ -125,12 +125,12 @@ sophia_tuple_new(void *obj, struct key_def *key_def,
 	int valuesize = 0;
 	void *value = sp_getstring(obj, "value", &valuesize);
 	uint32_t field_count = 0;
-	size_t size = sophia_get_parts(key_def, obj, value, valuesize, parts,
+	size_t size = phia_get_parts(key_def, obj, value, valuesize, parts,
 				       &field_count);
 	struct tuple *tuple = tuple_alloc(format, size);
 	char *d = tuple->data;
 	d = mp_encode_array(d, field_count);
-	d = sophia_write_parts(key_def, value, valuesize, parts, d);
+	d = phia_write_parts(key_def, value, valuesize, parts, d);
 	assert(tuple->data + size == d);
 	try {
 		tuple_init_field_map(format, tuple);
@@ -142,28 +142,28 @@ sophia_tuple_new(void *obj, struct key_def *key_def,
 }
 
 static char *
-sophia_tuple_data_new(void *obj, struct key_def *key_def, uint32_t *bsize)
+phia_tuple_data_new(void *obj, struct key_def *key_def, uint32_t *bsize)
 {
 	assert(key_def->part_count <= 8);
 	struct iovec parts[8];
 	int valuesize = 0;
 	void *value = sp_getstring(obj, "value", &valuesize);
 	uint32_t field_count = 0;
-	size_t size = sophia_get_parts(key_def, obj, value, valuesize, parts,
+	size_t size = phia_get_parts(key_def, obj, value, valuesize, parts,
 				       &field_count);
 	char *tuple_data = (char *) malloc(size);
 	if (tuple_data == NULL)
 		tnt_raise(OutOfMemory, size, "malloc", "tuple");
 	char *d = tuple_data;
 	d = mp_encode_array(d, field_count);
-	d = sophia_write_parts(key_def, value, valuesize, parts, d);
+	d = phia_write_parts(key_def, value, valuesize, parts, d);
 	assert(tuple_data + size == d);
 	*bsize = size;
 	return tuple_data;
 }
 
 static void*
-sophia_worker(void *env)
+phia_worker(void *env)
 {
 	while (pm_atomic_load_explicit(&worker_pool_run,
 				       pm_memory_order_relaxed)) {
@@ -177,25 +177,25 @@ sophia_worker(void *env)
 }
 
 void
-sophia_workers_start(void *env)
+phia_workers_start(void *env)
 {
 	if (worker_pool_run)
 		return;
 	/* prepare worker pool */
 	worker_pool = NULL;
-	worker_pool_size = cfg_geti("sophia.threads");
+	worker_pool_size = cfg_geti("phia.threads");
 	if (worker_pool_size > 0) {
 		worker_pool = (struct cord *)calloc(worker_pool_size, sizeof(struct cord));
 		if (worker_pool == NULL)
-			panic("failed to allocate sophia worker pool");
+			panic("failed to allocate phia worker pool");
 	}
 	worker_pool_run = 1;
 	for (int i = 0; i < worker_pool_size; i++)
-		cord_start(&worker_pool[i], "sophia", sophia_worker, env);
+		cord_start(&worker_pool[i], "phia", phia_worker, env);
 }
 
 static void
-sophia_workers_stop(void)
+phia_workers_stop(void)
 {
 	if (! worker_pool_run)
 		return;
@@ -205,17 +205,17 @@ sophia_workers_stop(void)
 	free(worker_pool);
 }
 
-void sophia_error(void *env)
+void phia_error(void *env)
 {
-	char *error = (char *)sp_getstring(env, "sophia.error", NULL);
+	char *error = (char *)sp_getstring(env, "phia.error", NULL);
 	char msg[512];
 	snprintf(msg, sizeof(msg), "%s", error);
-	tnt_raise(ClientError, ER_SOPHIA, msg);
+	tnt_raise(ClientError, ER_PHIA, msg);
 }
 
-int sophia_info(const char *name, sophia_info_f cb, void *arg)
+int phia_info(const char *name, phia_info_f cb, void *arg)
 {
-	SophiaEngine *e = (SophiaEngine *)engine_find("sophia");
+	PhiaEngine *e = (PhiaEngine *)engine_find("phia");
 	void *cursor = sp_getobject(e->env, NULL);
 	void *o = NULL;
 	if (name) {
@@ -239,9 +239,9 @@ int sophia_info(const char *name, sophia_info_f cb, void *arg)
 	return 0;
 }
 
-static struct mempool sophia_read_pool;
+static struct mempool phia_read_pool;
 
-struct sophia_read_task {
+struct phia_read_task {
 	struct coio_task base;
 	void *dest;
 	void *key;
@@ -249,46 +249,46 @@ struct sophia_read_task {
 };
 
 static ssize_t
-sophia_read_cb(struct coio_task *ptr)
+phia_read_cb(struct coio_task *ptr)
 {
-	struct sophia_read_task *task =
-		(struct sophia_read_task *) ptr;
+	struct phia_read_task *task =
+		(struct phia_read_task *) ptr;
 	task->result = sp_get(task->dest, task->key);
 	return 0;
 }
 
 static ssize_t
-sophia_read_free_cb(struct coio_task *ptr)
+phia_read_free_cb(struct coio_task *ptr)
 {
-	struct sophia_read_task *task =
-		(struct sophia_read_task *) ptr;
+	struct phia_read_task *task =
+		(struct phia_read_task *) ptr;
 	if (task->result != NULL)
 		sp_destroy(task->result);
-	mempool_free(&sophia_read_pool, task);
+	mempool_free(&phia_read_pool, task);
 	return 0;
 }
 
 void *
-sophia_read(void *dest, void *key)
+phia_read(void *dest, void *key)
 {
-	struct sophia_read_task *task =
-		(struct sophia_read_task *) mempool_alloc(&sophia_read_pool);
+	struct phia_read_task *task =
+		(struct phia_read_task *) mempool_alloc(&phia_read_pool);
 	if (task == NULL)
 		return NULL;
 	task->dest = dest;
 	task->key = key;
 	task->result = NULL;
-	if (coio_task(&task->base, sophia_read_cb, sophia_read_free_cb,
+	if (coio_task(&task->base, phia_read_cb, phia_read_free_cb,
 	              TIMEOUT_INFINITY) == -1) {
 		return NULL;
 	}
 	void *result = task->result;
-	mempool_free(&sophia_read_pool, task);
+	mempool_free(&phia_read_pool, task);
 	return result;
 }
 
-SophiaEngine::SophiaEngine()
-	:Engine("sophia")
+PhiaEngine::PhiaEngine()
+	:Engine("phia")
 	 ,m_prev_commit_lsn(-1)
 	 ,recovery_complete(0)
 {
@@ -296,68 +296,68 @@ SophiaEngine::SophiaEngine()
 	env = NULL;
 }
 
-SophiaEngine::~SophiaEngine()
+PhiaEngine::~PhiaEngine()
 {
-	sophia_workers_stop();
+	phia_workers_stop();
 	if (env)
 		sp_destroy(env);
 }
 
 void
-SophiaEngine::init()
+PhiaEngine::init()
 {
 	worker_pool_run = 0;
 	worker_pool_size = 0;
 	worker_pool = NULL;
 	/* destroyed with cord() */
-	mempool_create(&sophia_read_pool, &cord()->slabc,
-	               sizeof(struct sophia_read_task));
+	mempool_create(&phia_read_pool, &cord()->slabc,
+	               sizeof(struct phia_read_task));
 	/* prepare worker pool */
 	env = sp_env();
 	if (env == NULL)
-		panic("failed to create sophia environment");
-	worker_pool_size = cfg_geti("sophia.threads");
-	sp_setint(env, "sophia.path_create", 0);
-	sp_setint(env, "sophia.recover", 2);
-	sp_setstring(env, "sophia.path", cfg_gets("sophia_dir"), 0);
+		panic("failed to create phia environment");
+	worker_pool_size = cfg_geti("phia.threads");
+	sp_setint(env, "phia.path_create", 0);
+	sp_setint(env, "phia.recover", 2);
+	sp_setstring(env, "phia.path", cfg_gets("phia_dir"), 0);
 	sp_setint(env, "scheduler.threads", 0);
-	sp_setint(env, "memory.limit", cfg_geti64("sophia.memory_limit"));
+	sp_setint(env, "memory.limit", cfg_geti64("phia.memory_limit"));
 	sp_setint(env, "compaction.0.async", 1);
-	sp_setint(env, "compaction.0.compact_wm", cfg_geti("sophia.compact_wm"));
-	sp_setint(env, "compaction.0.branch_prio", cfg_geti("sophia.branch_prio"));
-	sp_setint(env, "compaction.0.branch_age", cfg_geti("sophia.branch_age"));
-	sp_setint(env, "compaction.0.branch_age_wm", cfg_geti("sophia.branch_age_wm"));
-	sp_setint(env, "compaction.0.branch_age_period", cfg_geti("sophia.branch_age_period"));
-	sp_setint(env, "compaction.0.snapshot_period", cfg_geti("sophia.snapshot_period"));
-	sp_setint(env, "compaction.0.expire_period", cfg_geti("sophia.expire_period"));
-	sp_setint(env, "compaction.0.expire_prio", cfg_geti("sophia.expire_prio"));
+	sp_setint(env, "compaction.0.compact_wm", cfg_geti("phia.compact_wm"));
+	sp_setint(env, "compaction.0.branch_prio", cfg_geti("phia.branch_prio"));
+	sp_setint(env, "compaction.0.branch_age", cfg_geti("phia.branch_age"));
+	sp_setint(env, "compaction.0.branch_age_wm", cfg_geti("phia.branch_age_wm"));
+	sp_setint(env, "compaction.0.branch_age_period", cfg_geti("phia.branch_age_period"));
+	sp_setint(env, "compaction.0.snapshot_period", cfg_geti("phia.snapshot_period"));
+	sp_setint(env, "compaction.0.expire_period", cfg_geti("phia.expire_period"));
+	sp_setint(env, "compaction.0.expire_prio", cfg_geti("phia.expire_prio"));
 	sp_setint(env, "log.enable", 0);
-	sp_setint(env, "sophia.recover", 3);
+	sp_setint(env, "phia.recover", 3);
 	int rc = sp_open(env);
 	if (rc == -1)
-		sophia_error(env);
+		phia_error(env);
 }
 
 void
-SophiaEngine::endRecovery()
+PhiaEngine::endRecovery()
 {
 	if (recovery_complete)
 		return;
 	/* complete two-phase recovery */
 	int rc = sp_open(env);
 	if (rc == -1)
-		sophia_error(env);
+		phia_error(env);
 	recovery_complete = 1;
 }
 
 Handler *
-SophiaEngine::open()
+PhiaEngine::open()
 {
-	return new SophiaSpace(this);
+	return new PhiaSpace(this);
 }
 
 static inline void
-sophia_send_row(struct xstream *stream, uint32_t space_id, char *tuple,
+phia_send_row(struct xstream *stream, uint32_t space_id, char *tuple,
                 uint32_t tuple_size, int64_t lsn)
 {
 	struct request_replace_body body;
@@ -379,13 +379,13 @@ sophia_send_row(struct xstream *stream, uint32_t space_id, char *tuple,
 }
 
 static inline struct key_def *
-sophia_join_key_def(void *env, void *db)
+phia_join_key_def(void *env, void *db)
 {
 	uint32_t id = sp_getint(db, "id");
 	uint32_t count = sp_getint(db, "key-count");
 	struct key_def *key_def;
 	struct key_opts key_opts = key_opts_default;
-	key_def = key_def_new(id, 0, "sophia_join", TREE, &key_opts, count);
+	key_def = key_def_new(id, 0, "phia_join", TREE, &key_opts, count);
 	unsigned i = 0;
 	while (i < count) {
 		char path[64];
@@ -405,24 +405,24 @@ sophia_join_key_def(void *env, void *db)
 }
 
 /**
- * Relay all data currently stored in Sophia engine
+ * Relay all data currently stored in Phia engine
  * to the replica.
  */
 void
-SophiaEngine::join(struct xstream *stream)
+PhiaEngine::join(struct xstream *stream)
 {
 	/* iterate through a list of databases currently used
-	 * in Sophia engine */
+	 * in Phia engine */
 	void *db;
 	void *db_cursor = sp_getobject(env, "db");
 	if (db_cursor == NULL)
-		sophia_error(env);
+		phia_error(env);
 	while ((db = sp_get(db_cursor, NULL)))
 	{
 		/* prepare space schema */
 		struct key_def *key_def;
 		try {
-			key_def = sophia_join_key_def(env, db);
+			key_def = phia_join_key_def(env, db);
 		} catch (Exception *e) {
 			sp_destroy(db_cursor);
 			throw;
@@ -432,7 +432,7 @@ SophiaEngine::join(struct xstream *stream)
 		if (cursor == NULL) {
 			sp_destroy(db_cursor);
 			key_def_delete(key_def);
-			sophia_error(env);
+			phia_error(env);
 		}
 		/* tell cursor not to hold a transaction, which
 		 * in result enables compaction process
@@ -444,10 +444,10 @@ SophiaEngine::join(struct xstream *stream)
 		{
 			int64_t lsn = sp_getint(obj, "lsn");
 			uint32_t tuple_size;
-			char *tuple = sophia_tuple_data_new(obj, key_def,
+			char *tuple = phia_tuple_data_new(obj, key_def,
 								 &tuple_size);
 			try {
-				sophia_send_row(stream, key_def->space_id,
+				phia_send_row(stream, key_def->space_id,
 						tuple, tuple_size, lsn);
 			} catch (Exception *e) {
 				key_def_delete(key_def);
@@ -466,10 +466,10 @@ SophiaEngine::join(struct xstream *stream)
 }
 
 Index*
-SophiaEngine::createIndex(struct key_def *key_def)
+PhiaEngine::createIndex(struct key_def *key_def)
 {
 	switch (key_def->type) {
-	case TREE: return new SophiaIndex(key_def);
+	case TREE: return new PhiaIndex(key_def);
 	default:
 		assert(false);
 		return NULL;
@@ -477,23 +477,23 @@ SophiaEngine::createIndex(struct key_def *key_def)
 }
 
 void
-SophiaEngine::dropIndex(Index *index)
+PhiaEngine::dropIndex(Index *index)
 {
-	SophiaIndex *i = (SophiaIndex *)index;
+	PhiaIndex *i = (PhiaIndex *)index;
 	/* schedule asynchronous drop */
 	int rc = sp_drop(i->db);
 	if (rc == -1)
-		sophia_error(env);
+		phia_error(env);
 	/* unref db object */
 	rc = sp_destroy(i->db);
 	if (rc == -1)
-		sophia_error(env);
+		phia_error(env);
 	i->db  = NULL;
 	i->env = NULL;
 }
 
 void
-SophiaEngine::keydefCheck(struct space *space, struct key_def *key_def)
+PhiaEngine::keydefCheck(struct space *space, struct key_def *key_def)
 {
 	if (key_def->type != TREE) {
 		tnt_raise(ClientError, ER_INDEX_TYPE,
@@ -504,20 +504,20 @@ SophiaEngine::keydefCheck(struct space *space, struct key_def *key_def)
 		tnt_raise(ClientError, ER_MODIFY_INDEX,
 			  key_def->name,
 			  space_name(space),
-			  "Sophia index must be unique");
+			  "Phia index must be unique");
 	}
 	if (key_def->iid != 0) {
 		tnt_raise(ClientError, ER_MODIFY_INDEX,
 			  key_def->name,
 			  space_name(space),
-			  "Sophia secondary indexes are not supported");
+			  "Phia secondary indexes are not supported");
 	}
 	const uint32_t keypart_limit = 8;
 	if (key_def->part_count > keypart_limit) {
 		tnt_raise(ClientError, ER_MODIFY_INDEX,
 				  key_def->name,
 				  space_name(space),
-				  "Sophia index key has too many parts (8 max)");
+				  "Phia index key has too many parts (8 max)");
 	}
 	unsigned i = 0;
 	while (i < key_def->part_count) {
@@ -526,29 +526,29 @@ SophiaEngine::keydefCheck(struct space *space, struct key_def *key_def)
 			tnt_raise(ClientError, ER_MODIFY_INDEX,
 					  key_def->name,
 					  space_name(space),
-					  "Sophia index field type must be STR or NUM");
+					  "Phia index field type must be STR or NUM");
 		}
 		if (part->fieldno != i) {
 			tnt_raise(ClientError, ER_MODIFY_INDEX,
 					  key_def->name,
 					  space_name(space),
-					  "Sophia key parts must follow first and cannot be sparse");
+					  "Phia key parts must follow first and cannot be sparse");
 		}
 		i++;
 	}
 }
 
 void
-SophiaEngine::begin(struct txn *txn)
+PhiaEngine::begin(struct txn *txn)
 {
 	assert(txn->engine_tx == NULL);
 	txn->engine_tx = sp_begin(env);
 	if (txn->engine_tx == NULL)
-		sophia_error(env);
+		phia_error(env);
 }
 
 void
-SophiaEngine::prepare(struct txn *txn)
+PhiaEngine::prepare(struct txn *txn)
 {
 	/* A half committed transaction is no longer
 	 * being part of concurrent index, but still can be
@@ -571,13 +571,13 @@ SophiaEngine::prepare(struct txn *txn)
 		tnt_raise(ClientError, ER_TRANSACTION_CONFLICT);
 		break;
 	case -1:
-		sophia_error(env);
+		phia_error(env);
 		break;
 	}
 }
 
 void
-SophiaEngine::commit(struct txn *txn, int64_t signature)
+PhiaEngine::commit(struct txn *txn, int64_t signature)
 {
 	if (txn->engine_tx == NULL)
 		return;
@@ -587,24 +587,24 @@ SophiaEngine::commit(struct txn *txn, int64_t signature)
 		assert(signature >= 0);
 
 		if (m_prev_commit_lsn == signature) {
-			panic("sophia commit panic: m_prev_commit_lsn == signature = %"
+			panic("phia commit panic: m_prev_commit_lsn == signature = %"
 			      PRIu64, signature);
 		}
-		/* Set tx id in Sophia only if tx has WRITE requests */
+		/* Set tx id in Phia only if tx has WRITE requests */
 		sp_setint(txn->engine_tx, "lsn", signature);
 		m_prev_commit_lsn = signature;
 	}
 
 	int rc = sp_commit(txn->engine_tx);
 	if (rc == -1) {
-		panic("sophia commit failed: txn->signature = %"
+		panic("phia commit failed: txn->signature = %"
 		      PRIu64, signature);
 	}
 	txn->engine_tx = NULL;
 }
 
 void
-SophiaEngine::rollback(struct txn *txn)
+PhiaEngine::rollback(struct txn *txn)
 {
 	if (txn->engine_tx) {
 		sp_destroy(txn->engine_tx);
@@ -613,15 +613,15 @@ SophiaEngine::rollback(struct txn *txn)
 }
 
 void
-SophiaEngine::beginWalRecovery()
+PhiaEngine::beginWalRecovery()
 {
 	int rc = sp_open(env);
 	if (rc == -1)
-		sophia_error(env);
+		phia_error(env);
 }
 
 int
-SophiaEngine::beginCheckpoint()
+PhiaEngine::beginCheckpoint()
 {
 	/* do not initiate checkpoint during bootstrap,
 	 * thread pool is not up yet */
@@ -630,12 +630,12 @@ SophiaEngine::beginCheckpoint()
 
 	int rc = sp_setint(env, "scheduler.checkpoint", 0);
 	if (rc == -1)
-		sophia_error(env);
+		phia_error(env);
 	return 0;
 }
 
 int
-SophiaEngine::waitCheckpoint(struct vclock*)
+PhiaEngine::waitCheckpoint(struct vclock*)
 {
 	if (! worker_pool_run)
 		return 0;
diff --git a/src/box/sophia_engine.h b/src/box/phia_engine.h
similarity index 82%
rename from src/box/sophia_engine.h
rename to src/box/phia_engine.h
index 5beea79d1a..4c7f0cd6df 100644
--- a/src/box/sophia_engine.h
+++ b/src/box/phia_engine.h
@@ -1,5 +1,5 @@
-#ifndef TARANTOOL_BOX_SOPHIA_ENGINE_H_INCLUDED
-#define TARANTOOL_BOX_SOPHIA_ENGINE_H_INCLUDED
+#ifndef TARANTOOL_BOX_PHIA_ENGINE_H_INCLUDED
+#define TARANTOOL_BOX_PHIA_ENGINE_H_INCLUDED
 /*
  * Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file.
  *
@@ -35,9 +35,9 @@
 #include "small/mempool.h"
 #include "small/region.h"
 
-struct SophiaEngine: public Engine {
-	SophiaEngine();
-	~SophiaEngine();
+struct PhiaEngine: public Engine {
+	PhiaEngine();
+	~PhiaEngine();
 	virtual void init() override;
 	virtual Handler *open() override;
 	virtual Index *createIndex(struct key_def *) override;
@@ -60,15 +60,15 @@ struct SophiaEngine: public Engine {
 };
 
 extern "C" {
-typedef void (*sophia_info_f)(const char*, const char*, void*);
-int sophia_info(const char*, sophia_info_f, void*);
+typedef void (*phia_info_f)(const char*, const char*, void*);
+int phia_info(const char*, phia_info_f, void*);
 }
-void  sophia_error(void*);
-void *sophia_read(void*, void*);
-void  sophia_workers_start(void*);
+void  phia_error(void*);
+void *phia_read(void*, void*);
+void  phia_workers_start(void*);
 
 struct tuple *
-sophia_tuple_new(void *obj, struct key_def *key_def,
+phia_tuple_new(void *obj, struct key_def *key_def,
                  struct tuple_format *format);
 
-#endif /* TARANTOOL_BOX_SOPHIA_ENGINE_H_INCLUDED */
+#endif /* TARANTOOL_BOX_PHIA_ENGINE_H_INCLUDED */
diff --git a/src/box/sophia_index.cc b/src/box/phia_index.cc
similarity index 67%
rename from src/box/sophia_index.cc
rename to src/box/phia_index.cc
index a2474441ac..8d2b392791 100644
--- a/src/box/sophia_index.cc
+++ b/src/box/phia_index.cc
@@ -28,9 +28,9 @@
  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-#include "sophia_engine.h"
-#include "sophia_space.h"
-#include "sophia_index.h"
+#include "phia_engine.h"
+#include "phia_space.h"
+#include "phia_index.h"
 #include "say.h"
 #include "tuple.h"
 #include "tuple_update.h"
@@ -39,7 +39,7 @@
 #include "space.h"
 #include "txn.h"
 #include "cfg.h"
-#include "sophia.h"
+#include "phia.h"
 #include <stdio.h>
 #include <inttypes.h>
 #include <bit/bit.h> /* load/store */
@@ -47,12 +47,12 @@
 static uint64_t num_parts[8];
 
 void*
-SophiaIndex::createDocument(const char *key, const char **keyend)
+PhiaIndex::createDocument(const char *key, const char **keyend)
 {
 	assert(key_def->part_count <= 8);
 	void *obj = sp_document(db);
 	if (obj == NULL)
-		sophia_error(env);
+		phia_error(env);
 	sp_setstring(obj, "arg", fiber(), 0);
 	if (key == NULL)
 		return obj;
@@ -72,7 +72,7 @@ SophiaIndex::createDocument(const char *key, const char **keyend)
 		if (partsize == 0)
 			part = "";
 		if (sp_setstring(obj, partname, part, partsize) == -1)
-			sophia_error(env);
+			phia_error(env);
 		i++;
 	}
 	if (keyend) {
@@ -82,10 +82,10 @@ SophiaIndex::createDocument(const char *key, const char **keyend)
 }
 
 static inline void*
-sophia_configure_storage(struct space *space, struct key_def *key_def)
+phia_configure_storage(struct space *space, struct key_def *key_def)
 {
-	SophiaEngine *engine =
-		(SophiaEngine *)space->handler->engine;
+	PhiaEngine *engine =
+		(PhiaEngine *)space->handler->engine;
 	void *env = engine->env;
 	/* create database */
 	char c[128];
@@ -121,104 +121,104 @@ sophia_configure_storage(struct space *space, struct key_def *key_def)
 	         key_def->space_id, key_def->iid);
 	void *db = sp_getobject(env, c);
 	if (db == NULL)
-		sophia_error(env);
+		phia_error(env);
 	return db;
 }
 
 static inline void
-sophia_ctl(char *path, int size, struct key_def *key_def, const char *name)
+phia_ctl(char *path, int size, struct key_def *key_def, const char *name)
 {
 	snprintf(path, size, "db.%" PRIu32 ":%" PRIu32 ".%s",
 	         key_def->space_id, key_def->iid, name);
 }
 
 static inline void
-sophia_configure(struct space *space, struct key_def *key_def)
+phia_configure(struct space *space, struct key_def *key_def)
 {
-	SophiaEngine *engine =
-		(SophiaEngine *)space->handler->engine;
+	PhiaEngine *engine =
+		(PhiaEngine *)space->handler->engine;
 	void *env = engine->env;
 	char c[128];
 	/* db.id */
-	sophia_ctl(c, sizeof(c), key_def, "id");
+	phia_ctl(c, sizeof(c), key_def, "id");
 	sp_setint(env, c, key_def->space_id);
 	/* db.path */
 	if (key_def->opts.path[0] != '\0') {
-		sophia_ctl(c, sizeof(c), key_def, "path");
+		phia_ctl(c, sizeof(c), key_def, "path");
 		sp_setstring(env, c, key_def->opts.path, 0);
 	}
 	/* db.upsert */
-	sophia_ctl(c, sizeof(c), key_def, "upsert");
-	sp_setstring(env, c, (const void *)(uintptr_t)sophia_upsert_cb, 0);
-	sophia_ctl(c, sizeof(c), key_def, "upsert_arg");
+	phia_ctl(c, sizeof(c), key_def, "upsert");
+	sp_setstring(env, c, (const void *)(uintptr_t)phia_upsert_cb, 0);
+	phia_ctl(c, sizeof(c), key_def, "upsert_arg");
 	sp_setstring(env, c, (const void *)key_def, 0);
 	/* db.compression */
 	if (key_def->opts.compression[0] != '\0') {
-		sophia_ctl(c, sizeof(c), key_def, "compression");
+		phia_ctl(c, sizeof(c), key_def, "compression");
 		sp_setstring(env, c, key_def->opts.compression, 0);
 	}
 	/* db.compression_branch */
 	if (key_def->opts.compression_branch[0] != '\0') {
-		sophia_ctl(c, sizeof(c), key_def, "compression_branch");
+		phia_ctl(c, sizeof(c), key_def, "compression_branch");
 		sp_setstring(env, c, key_def->opts.compression_branch, 0);
 	}
 	/* db.compression_key */
-	sophia_ctl(c, sizeof(c), key_def, "compression_key");
+	phia_ctl(c, sizeof(c), key_def, "compression_key");
 	sp_setint(env, c, key_def->opts.compression_key);
 	/* db.node_preload */
-	sophia_ctl(c, sizeof(c), key_def, "node_preload");
-	sp_setint(env, c, cfg_geti("sophia.node_preload"));
+	phia_ctl(c, sizeof(c), key_def, "node_preload");
+	sp_setint(env, c, cfg_geti("phia.node_preload"));
 	/* db.node_size */
-	sophia_ctl(c, sizeof(c), key_def, "node_size");
+	phia_ctl(c, sizeof(c), key_def, "node_size");
 	sp_setint(env, c, key_def->opts.node_size);
 	/* db.page_size */
-	sophia_ctl(c, sizeof(c), key_def, "page_size");
+	phia_ctl(c, sizeof(c), key_def, "page_size");
 	sp_setint(env, c, key_def->opts.page_size);
 	/* db.mmap */
-	sophia_ctl(c, sizeof(c), key_def, "mmap");
-	sp_setint(env, c, cfg_geti("sophia.mmap"));
+	phia_ctl(c, sizeof(c), key_def, "mmap");
+	sp_setint(env, c, cfg_geti("phia.mmap"));
 	/* db.sync */
-	sophia_ctl(c, sizeof(c), key_def, "sync");
-	sp_setint(env, c, cfg_geti("sophia.sync"));
+	phia_ctl(c, sizeof(c), key_def, "sync");
+	sp_setint(env, c, cfg_geti("phia.sync"));
 	/* db.amqf */
-	sophia_ctl(c, sizeof(c), key_def, "amqf");
+	phia_ctl(c, sizeof(c), key_def, "amqf");
 	sp_setint(env, c, key_def->opts.amqf);
 	/* db.read_oldest */
-	sophia_ctl(c, sizeof(c), key_def, "read_oldest");
+	phia_ctl(c, sizeof(c), key_def, "read_oldest");
 	sp_setint(env, c, key_def->opts.read_oldest);
 	/* db.expire */
-	sophia_ctl(c, sizeof(c), key_def, "expire");
+	phia_ctl(c, sizeof(c), key_def, "expire");
 	sp_setint(env, c, key_def->opts.expire);
 	/* db.path_fail_on_drop */
-	sophia_ctl(c, sizeof(c), key_def, "path_fail_on_drop");
+	phia_ctl(c, sizeof(c), key_def, "path_fail_on_drop");
 	sp_setint(env, c, 0);
 }
 
-SophiaIndex::SophiaIndex(struct key_def *key_def_arg)
+PhiaIndex::PhiaIndex(struct key_def *key_def_arg)
 	: Index(key_def_arg)
 {
 	struct space *space = space_cache_find(key_def->space_id);
-	SophiaEngine *engine =
-		(SophiaEngine *)space->handler->engine;
+	PhiaEngine *engine =
+		(PhiaEngine *)space->handler->engine;
 	env = engine->env;
 	int rc;
-	sophia_workers_start(env);
-	db = sophia_configure_storage(space, key_def);
+	phia_workers_start(env);
+	db = phia_configure_storage(space, key_def);
 	if (db == NULL)
-		sophia_error(env);
-	sophia_configure(space, key_def);
+		phia_error(env);
+	phia_configure(space, key_def);
 	/* start two-phase recovery for a space:
 	 * a. created after snapshot recovery
 	 * b. created during log recovery
 	*/
 	rc = sp_open(db);
 	if (rc == -1)
-		sophia_error(env);
+		phia_error(env);
 	format = space->format;
 	tuple_format_ref(format, 1);
 }
 
-SophiaIndex::~SophiaIndex()
+PhiaIndex::~PhiaIndex()
 {
 	if (db == NULL)
 		return;
@@ -231,33 +231,33 @@ SophiaIndex::~SophiaIndex()
 	if (rc == -1)
 		goto error;
 error:;
-	char *error = (char *)sp_getstring(env, "sophia.error", 0);
-	say_info("sophia space %" PRIu32 " close error: %s",
+	char *error = (char *)sp_getstring(env, "phia.error", 0);
+	say_info("phia space %" PRIu32 " close error: %s",
 			 key_def->space_id, error);
 	free(error);
 }
 
 size_t
-SophiaIndex::size() const
+PhiaIndex::size() const
 {
 	char c[128];
-	sophia_ctl(c, sizeof(c), key_def, "index.count");
+	phia_ctl(c, sizeof(c), key_def, "index.count");
 	return sp_getint(env, c);
 }
 
 size_t
-SophiaIndex::bsize() const
+PhiaIndex::bsize() const
 {
 	char c[128];
-	sophia_ctl(c, sizeof(c), key_def, "index.memory_used");
+	phia_ctl(c, sizeof(c), key_def, "index.memory_used");
 	return sp_getint(env, c);
 }
 
 struct tuple *
-SophiaIndex::findByKey(const char *key, uint32_t part_count = 0) const
+PhiaIndex::findByKey(const char *key, uint32_t part_count = 0) const
 {
 	(void)part_count;
-	void *obj = ((SophiaIndex *)this)->createDocument(key, NULL);
+	void *obj = ((PhiaIndex *)this)->createDocument(key, NULL);
 	void *transaction = db;
 	/* engine_tx might be empty, even if we are in txn context.
 	 *
@@ -271,35 +271,35 @@ SophiaIndex::findByKey(const char *key, uint32_t part_count = 0) const
 	rc = sp_open(obj);
 	if (rc == -1) {
 		sp_destroy(obj);
-		sophia_error(env);
+		phia_error(env);
 	}
 	void *result = sp_get(transaction, obj);
 	if (result == NULL) {
 		sp_setint(obj, "cache_only", 0);
-		result = sophia_read(transaction, obj);
+		result = phia_read(transaction, obj);
 		sp_destroy(obj);
 		if (result == NULL)
 			return NULL;
 	} else {
 		sp_destroy(obj);
 	}
-	struct tuple *tuple = sophia_tuple_new(result, key_def, format);
+	struct tuple *tuple = phia_tuple_new(result, key_def, format);
 	sp_destroy(result);
 	return tuple;
 }
 
 struct tuple *
-SophiaIndex::replace(struct tuple*, struct tuple*, enum dup_replace_mode)
+PhiaIndex::replace(struct tuple*, struct tuple*, enum dup_replace_mode)
 {
-	/* This method is unused by sophia index.
+	/* This method is unused by phia index.
 	 *
-	 * see: sophia_space.cc
+	 * see: phia_space.cc
 	*/
 	assert(0);
 	return NULL;
 }
 
-struct sophia_iterator {
+struct phia_iterator {
 	struct iterator base;
 	const char *key;
 	const char *keyend;
@@ -312,10 +312,10 @@ struct sophia_iterator {
 };
 
 void
-sophia_iterator_free(struct iterator *ptr)
+phia_iterator_free(struct iterator *ptr)
 {
-	assert(ptr->free == sophia_iterator_free);
-	struct sophia_iterator *it = (struct sophia_iterator *) ptr;
+	assert(ptr->free == phia_iterator_free);
+	struct phia_iterator *it = (struct phia_iterator *) ptr;
 	if (it->current) {
 		sp_destroy(it->current);
 		it->current = NULL;
@@ -328,15 +328,15 @@ sophia_iterator_free(struct iterator *ptr)
 }
 
 struct tuple *
-sophia_iterator_last(struct iterator *ptr __attribute__((unused)))
+phia_iterator_last(struct iterator *ptr __attribute__((unused)))
 {
 	return NULL;
 }
 
 struct tuple *
-sophia_iterator_next(struct iterator *ptr)
+phia_iterator_next(struct iterator *ptr)
 {
-	struct sophia_iterator *it = (struct sophia_iterator *) ptr;
+	struct phia_iterator *it = (struct phia_iterator *) ptr;
 	assert(it->cursor != NULL);
 
 	/* read from cache */
@@ -345,15 +345,15 @@ sophia_iterator_next(struct iterator *ptr)
 	if (likely(obj != NULL)) {
 		sp_destroy(it->current);
 		it->current = obj;
-		return sophia_tuple_new(obj, it->key_def, it->space->format);
+		return phia_tuple_new(obj, it->key_def, it->space->format);
 
 	}
 	/* switch to asynchronous mode (read from disk) */
 	sp_setint(it->current, "cache_only", 0);
 
-	obj = sophia_read(it->cursor, it->current);
+	obj = phia_read(it->cursor, it->current);
 	if (obj == NULL) {
-		ptr->next = sophia_iterator_last;
+		ptr->next = phia_iterator_last;
 		/* immediately close the cursor */
 		sp_destroy(it->cursor);
 		sp_destroy(it->current);
@@ -366,46 +366,46 @@ sophia_iterator_next(struct iterator *ptr)
 
 	/* switch back to synchronous mode */
 	sp_setint(obj, "cache_only", 1);
-	return sophia_tuple_new(obj, it->key_def, it->space->format);
+	return phia_tuple_new(obj, it->key_def, it->space->format);
 }
 
 struct tuple *
-sophia_iterator_first(struct iterator *ptr)
+phia_iterator_first(struct iterator *ptr)
 {
-	struct sophia_iterator *it = (struct sophia_iterator *) ptr;
-	ptr->next = sophia_iterator_next;
-	return sophia_tuple_new(it->current, it->key_def, it->space->format);
+	struct phia_iterator *it = (struct phia_iterator *) ptr;
+	ptr->next = phia_iterator_next;
+	return phia_tuple_new(it->current, it->key_def, it->space->format);
 }
 
 struct tuple *
-sophia_iterator_eq(struct iterator *ptr)
+phia_iterator_eq(struct iterator *ptr)
 {
-	struct sophia_iterator *it = (struct sophia_iterator *) ptr;
-	ptr->next = sophia_iterator_last;
-	SophiaIndex *index = (SophiaIndex *)index_find(it->space, 0);
+	struct phia_iterator *it = (struct phia_iterator *) ptr;
+	ptr->next = phia_iterator_last;
+	PhiaIndex *index = (PhiaIndex *)index_find(it->space, 0);
 	return index->findByKey(it->key);
 }
 
 struct iterator *
-SophiaIndex::allocIterator() const
+PhiaIndex::allocIterator() const
 {
-	struct sophia_iterator *it =
-		(struct sophia_iterator *) calloc(1, sizeof(*it));
+	struct phia_iterator *it =
+		(struct phia_iterator *) calloc(1, sizeof(*it));
 	if (it == NULL) {
-		tnt_raise(OutOfMemory, sizeof(struct sophia_iterator),
-			  "Sophia Index", "iterator");
+		tnt_raise(OutOfMemory, sizeof(struct phia_iterator),
+			  "Phia Index", "iterator");
 	}
-	it->base.next = sophia_iterator_last;
-	it->base.free = sophia_iterator_free;
+	it->base.next = phia_iterator_last;
+	it->base.free = phia_iterator_free;
 	return (struct iterator *) it;
 }
 
 void
-SophiaIndex::initIterator(struct iterator *ptr,
+PhiaIndex::initIterator(struct iterator *ptr,
                           enum iterator_type type,
                           const char *key, uint32_t part_count) const
 {
-	struct sophia_iterator *it = (struct sophia_iterator *) ptr;
+	struct phia_iterator *it = (struct phia_iterator *) ptr;
 	assert(it->cursor == NULL);
 	if (part_count > 0) {
 		if (part_count != key_def->part_count) {
@@ -423,7 +423,7 @@ SophiaIndex::initIterator(struct iterator *ptr,
 	const char *compare;
 	/* point-lookup iterator */
 	if (type == ITER_EQ) {
-		ptr->next = sophia_iterator_eq;
+		ptr->next = phia_iterator_eq;
 		return;
 	}
 	/* prepare for the range scan */
@@ -442,16 +442,16 @@ SophiaIndex::initIterator(struct iterator *ptr,
 	}
 	it->cursor = sp_cursor(env);
 	if (it->cursor == NULL)
-		sophia_error(env);
+		phia_error(env);
 	/* Position first key here, since key pointer might be
 	 * unavailable from lua.
 	 *
 	 * Read from disk and fill cursor cache.
 	 */
-	SophiaIndex *index = (SophiaIndex *)this;
+	PhiaIndex *index = (PhiaIndex *)this;
 	void *obj = index->createDocument(key, &it->keyend);
 	sp_setstring(obj, "order", compare, 0);
-	obj = sophia_read(it->cursor, obj);
+	obj = phia_read(it->cursor, obj);
 	if (obj == NULL) {
 		sp_destroy(it->cursor);
 		it->cursor = NULL;
@@ -460,5 +460,5 @@ SophiaIndex::initIterator(struct iterator *ptr,
 	it->current = obj;
 	/* switch to sync mode (cache read) */
 	sp_setint(obj, "cache_only", 1);
-	ptr->next = sophia_iterator_first;
+	ptr->next = phia_iterator_first;
 }
diff --git a/src/box/sophia_index.h b/src/box/phia_index.h
similarity index 89%
rename from src/box/sophia_index.h
rename to src/box/phia_index.h
index 4fa8ca250a..5ffe1b6439 100644
--- a/src/box/sophia_index.h
+++ b/src/box/phia_index.h
@@ -1,5 +1,5 @@
-#ifndef TARANTOOL_BOX_SOPHIA_INDEX_H_INCLUDED
-#define TARANTOOL_BOX_SOPHIA_INDEX_H_INCLUDED
+#ifndef TARANTOOL_BOX_PHIA_INDEX_H_INCLUDED
+#define TARANTOOL_BOX_PHIA_INDEX_H_INCLUDED
 /*
  * Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file.
  *
@@ -33,10 +33,10 @@
 
 #include "index.h"
 
-class SophiaIndex: public Index {
+class PhiaIndex: public Index {
 public:
-	SophiaIndex(struct key_def *key_def);
-	virtual ~SophiaIndex() override;
+	PhiaIndex(struct key_def *key_def);
+	virtual ~PhiaIndex() override;
 
 	virtual struct tuple*
 	replace(struct tuple*,
@@ -65,4 +65,4 @@ class SophiaIndex: public Index {
 	struct tuple_format *format;
 };
 
-#endif /* TARANTOOL_BOX_SOPHIA_INDEX_H_INCLUDED */
+#endif /* TARANTOOL_BOX_PHIA_INDEX_H_INCLUDED */
diff --git a/src/box/sophia_space.cc b/src/box/phia_space.cc
similarity index 85%
rename from src/box/sophia_space.cc
rename to src/box/phia_space.cc
index 5583f5fbd8..808d0724c3 100644
--- a/src/box/sophia_space.cc
+++ b/src/box/phia_space.cc
@@ -28,9 +28,9 @@
  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  */
-#include "sophia_engine.h"
-#include "sophia_index.h"
-#include "sophia_space.h"
+#include "phia_engine.h"
+#include "phia_index.h"
+#include "phia_space.h"
 #include "xrow.h"
 #include "tuple.h"
 #include "scoped_guard.h"
@@ -41,20 +41,20 @@
 #include "port.h"
 #include "request.h"
 #include "iproto_constants.h"
-#include "sophia.h"
+#include "phia.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
 
-SophiaSpace::SophiaSpace(Engine *e)
+PhiaSpace::PhiaSpace(Engine *e)
 	:Handler(e)
 { }
 
 void
-SophiaSpace::applySnapshotRow(struct space *space, struct request *request)
+PhiaSpace::applySnapshotRow(struct space *space, struct request *request)
 {
 	assert(request->type == IPROTO_INSERT);
-	SophiaIndex *index = (SophiaIndex *)index_find(space, 0);
+	PhiaIndex *index = (PhiaIndex *)index_find(space, 0);
 
 	space_validate_tuple_raw(space, request->tuple);
 	int size = request->tuple_end - request->tuple;
@@ -73,14 +73,14 @@ SophiaSpace::applySnapshotRow(struct space *space, struct request *request)
 	void *tx = sp_begin(index->env);
 	if (tx == NULL) {
 		sp_destroy(obj);
-		sophia_error(index->env);
+		phia_error(index->env);
 	}
 
 	int64_t signature = request->header->lsn;
 	sp_setint(tx, "lsn", signature);
 
 	if (sp_set(tx, obj) != 0)
-		sophia_error(index->env); /* obj destroyed by sp_set() */
+		phia_error(index->env); /* obj destroyed by sp_set() */
 
 	int rc = sp_commit(tx);
 	switch (rc) {
@@ -94,7 +94,7 @@ SophiaSpace::applySnapshotRow(struct space *space, struct request *request)
 		tnt_raise(ClientError, ER_TRANSACTION_CONFLICT);
 		return;
 	case -1:
-		sophia_error(index->env);
+		phia_error(index->env);
 		return;
 	default:
 		assert(0);
@@ -102,11 +102,11 @@ SophiaSpace::applySnapshotRow(struct space *space, struct request *request)
 }
 
 struct tuple *
-SophiaSpace::executeReplace(struct txn*,
+PhiaSpace::executeReplace(struct txn*,
                             struct space *space,
                             struct request *request)
 {
-	SophiaIndex *index = (SophiaIndex *)index_find(space, 0);
+	PhiaIndex *index = (PhiaIndex *)index_find(space, 0);
 
 	space_validate_tuple_raw(space, request->tuple);
 
@@ -119,8 +119,8 @@ SophiaSpace::executeReplace(struct txn*,
 	/* unique constraint */
 	if (request->type == IPROTO_INSERT) {
 		enum dup_replace_mode mode = DUP_REPLACE_OR_INSERT;
-		SophiaEngine *engine =
-			(SophiaEngine *)space->handler->engine;
+		PhiaEngine *engine =
+			(PhiaEngine *)space->handler->engine;
 		if (engine->recovery_complete)
 			mode = DUP_INSERT;
 		if (mode == DUP_INSERT) {
@@ -143,16 +143,16 @@ SophiaSpace::executeReplace(struct txn*,
 	int rc;
 	rc = sp_set(transaction, obj);
 	if (rc == -1)
-		sophia_error(index->env);
+		phia_error(index->env);
 
 	return NULL;
 }
 
 struct tuple *
-SophiaSpace::executeDelete(struct txn*, struct space *space,
+PhiaSpace::executeDelete(struct txn*, struct space *space,
                            struct request *request)
 {
-	SophiaIndex *index = (SophiaIndex *)index_find(space, request->index_id);
+	PhiaIndex *index = (PhiaIndex *)index_find(space, request->index_id);
 	const char *key = request->key;
 	uint32_t part_count = mp_decode_array(&key);
 	primary_key_validate(index->key_def, key, part_count);
@@ -162,16 +162,16 @@ SophiaSpace::executeDelete(struct txn*, struct space *space,
 	void *transaction = in_txn()->engine_tx;
 	int rc = sp_delete(transaction, obj);
 	if (rc == -1)
-		sophia_error(index->env);
+		phia_error(index->env);
 	return NULL;
 }
 
 struct tuple *
-SophiaSpace::executeUpdate(struct txn*, struct space *space,
+PhiaSpace::executeUpdate(struct txn*, struct space *space,
                            struct request *request)
 {
 	/* Try to find the tuple by unique key */
-	SophiaIndex *index = (SophiaIndex *)index_find(space, request->index_id);
+	PhiaIndex *index = (PhiaIndex *)index_find(space, request->index_id);
 	const char *key = request->key;
 	uint32_t part_count = mp_decode_array(&key);
 	primary_key_validate(index->key_def, key, part_count);
@@ -180,7 +180,7 @@ SophiaSpace::executeUpdate(struct txn*, struct space *space,
 	if (old_tuple == NULL)
 		return NULL;
 
-	/* Sophia always yields a zero-ref tuple, GC it here. */
+	/* Phia always yields a zero-ref tuple, GC it here. */
 	TupleRef old_ref(old_tuple);
 
 	/* Do tuple update */
@@ -208,12 +208,12 @@ SophiaSpace::executeUpdate(struct txn*, struct space *space,
 	int rc;
 	rc = sp_set(transaction, obj);
 	if (rc == -1)
-		sophia_error(index->env);
+		phia_error(index->env);
 	return NULL;
 }
 
 static inline int
-sophia_upsert_prepare(char **src, uint32_t *src_size,
+phia_upsert_prepare(char **src, uint32_t *src_size,
                       char **mp, uint32_t *mp_size, uint32_t *mp_size_key,
                       struct key_def *key_def)
 {
@@ -258,19 +258,19 @@ sophia_upsert_prepare(char **src, uint32_t *src_size,
 	return 0;
 }
 
-struct sophia_mempool {
+struct phia_mempool {
 	void *chunks[128];
 	int count;
 };
 
 static inline void
-sophia_mempool_init(sophia_mempool *p)
+phia_mempool_init(phia_mempool *p)
 {
 	p->count = 0;
 }
 
 static inline void
-sophia_mempool_free(sophia_mempool *p)
+phia_mempool_free(phia_mempool *p)
 {
 	int i = 0;
 	while (i < p->count) {
@@ -280,11 +280,11 @@ sophia_mempool_free(sophia_mempool *p)
 }
 
 static void *
-sophia_update_alloc(void *arg, size_t size)
+phia_update_alloc(void *arg, size_t size)
 {
 	/* simulate region allocator for use with
 	 * tuple_upsert_execute() */
-	struct sophia_mempool *p = (struct sophia_mempool*)arg;
+	struct phia_mempool *p = (struct phia_mempool*)arg;
 	assert(p->count < 128);
 	void *ptr = malloc(size);
 	p->chunks[p->count++] = ptr;
@@ -292,7 +292,7 @@ sophia_update_alloc(void *arg, size_t size)
 }
 
 static inline int
-sophia_upsert(char **result, uint32_t *result_size,
+phia_upsert(char **result, uint32_t *result_size,
               char *tuple, uint32_t tuple_size, uint32_t tuple_size_key,
               char *upsert, int upsert_size)
 {
@@ -308,17 +308,17 @@ sophia_upsert(char **result, uint32_t *result_size,
 	uint32_t up_size;
 
 	/* emit upsert */
-	struct sophia_mempool alloc;
-	sophia_mempool_init(&alloc);
+	struct phia_mempool alloc;
+	phia_mempool_init(&alloc);
 	try {
-		up = tuple_upsert_execute(sophia_update_alloc, &alloc,
+		up = tuple_upsert_execute(phia_update_alloc, &alloc,
 		                          expr,
 		                          expr_end,
 		                          tuple,
 		                          tuple + tuple_size,
 		                          &up_size, index_base);
 	} catch (Exception *e) {
-		sophia_mempool_free(&alloc);
+		phia_mempool_free(&alloc);
 		return -1;
 	}
 
@@ -331,16 +331,16 @@ sophia_upsert(char **result, uint32_t *result_size,
 	*result_size = (uint32_t)((up + up_size) -  ptr);
 	*result = (char *)malloc(*result_size);
 	if (! *result) {
-		sophia_mempool_free(&alloc);
+		phia_mempool_free(&alloc);
 		return -1;
 	}
 	memcpy(*result, ptr, *result_size);
-	sophia_mempool_free(&alloc);
+	phia_mempool_free(&alloc);
 	return 0;
 }
 
 int
-sophia_upsert_cb(int count,
+phia_upsert_cb(int count,
                  char **src,    uint32_t *src_size,
                  char **upsert, uint32_t *upsert_size,
                  char **result, uint32_t *result_size,
@@ -374,14 +374,14 @@ sophia_upsert_cb(int count,
 	uint32_t tuple_size_key;
 	uint32_t tuple_size;
 	int rc;
-	rc = sophia_upsert_prepare(src, src_size,
+	rc = phia_upsert_prepare(src, src_size,
 	                           &tuple, &tuple_size, &tuple_size_key,
 	                           key_def);
 	if (rc == -1)
 		return -1;
 
 	/* execute upsert */
-	rc = sophia_upsert(&result[value_field],
+	rc = phia_upsert(&result[value_field],
 	                   &result_size[value_field],
 	                   tuple, tuple_size, tuple_size_key,
 	                   upsert[value_field],
@@ -394,10 +394,10 @@ sophia_upsert_cb(int count,
 }
 
 void
-SophiaSpace::executeUpsert(struct txn*, struct space *space,
+PhiaSpace::executeUpsert(struct txn*, struct space *space,
                            struct request *request)
 {
-	SophiaIndex *index = (SophiaIndex *)index_find(space, request->index_id);
+	PhiaIndex *index = (PhiaIndex *)index_find(space, request->index_id);
 
 	/* Check field count in tuple */
 	space_validate_tuple_raw(space, request->tuple);
@@ -424,7 +424,7 @@ SophiaSpace::executeUpsert(struct txn*, struct space *space,
 	char *value = (char *)malloc(value_size);
 	if (value == NULL) {
 		sp_destroy(obj);
-		tnt_raise(OutOfMemory, sizeof(value_size), "Sophia Space",
+		tnt_raise(OutOfMemory, sizeof(value_size), "Phia Space",
 		          "executeUpsert");
 	}
 	char *p = value;
@@ -440,5 +440,5 @@ SophiaSpace::executeUpsert(struct txn*, struct space *space,
 	int rc = sp_upsert(transaction, obj);
 	free(value);
 	if (rc == -1)
-		sophia_error(index->env);
+		phia_error(index->env);
 }
diff --git a/src/box/sophia_space.h b/src/box/phia_space.h
similarity index 90%
rename from src/box/sophia_space.h
rename to src/box/phia_space.h
index 7dc68ba374..154517abe1 100644
--- a/src/box/sophia_space.h
+++ b/src/box/phia_space.h
@@ -1,5 +1,5 @@
-#ifndef TARANTOOL_BOX_SOPHIA_SPACE_H_INCLUDED
-#define TARANTOOL_BOX_SOPHIA_SPACE_H_INCLUDED
+#ifndef TARANTOOL_BOX_PHIA_SPACE_H_INCLUDED
+#define TARANTOOL_BOX_PHIA_SPACE_H_INCLUDED
 /*
  * Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file.
  *
@@ -31,8 +31,8 @@
  * SUCH DAMAGE.
  */
 
-struct SophiaSpace: public Handler {
-	SophiaSpace(Engine*);
+struct PhiaSpace: public Handler {
+	PhiaSpace(Engine*);
 	virtual void
 	applySnapshotRow(struct space *space, struct request *request);
 	virtual struct tuple *
@@ -50,10 +50,10 @@ struct SophiaSpace: public Handler {
 };
 
 int
-sophia_upsert_cb(int count,
+phia_upsert_cb(int count,
                  char **src,    uint32_t *src_size,
                  char **upsert, uint32_t *upsert_size,
                  char **result, uint32_t *result_size,
                  void *arg);
 
-#endif /* TARANTOOL_BOX_SOPHIA_SPACE_H_INCLUDED */
+#endif /* TARANTOOL_BOX_PHIA_SPACE_H_INCLUDED */
diff --git a/src/box/space.h b/src/box/space.h
index 8b71bdc4f2..81c28702f5 100644
--- a/src/box/space.h
+++ b/src/box/space.h
@@ -110,9 +110,9 @@ space_is_temporary(struct space *space) { return space->def.opts.temporary; }
 static inline bool
 space_is_memtx(struct space *space) { return space->handler->engine->id == 0; }
 
-/** Return true if space is run under sophia engine. */
+/** Return true if space is run under phia engine. */
 static inline bool
-space_is_sophia(struct space *space) { return strcmp(space->handler->engine->name, "sophia") == 0; }
+space_is_phia(struct space *space) { return strcmp(space->handler->engine->name, "phia") == 0; }
 
 void space_noop(struct space *space);
 
diff --git a/src/box/txn.cc b/src/box/txn.cc
index 15f692ff7f..d9cc09b272 100644
--- a/src/box/txn.cc
+++ b/src/box/txn.cc
@@ -160,7 +160,7 @@ txn_commit_stmt(struct txn *txn, struct request *request)
 	 * If there are triggers, and they are not disabled, and
 	 * the statement found any rows, run triggers.
 	 * XXX:
-	 * - sophia doesn't set old/new tuple, so triggers don't
+	 * - phia doesn't set old/new tuple, so triggers don't
 	 *   work for it
 	 * - perhaps we should run triggers even for deletes which
 	 *   doesn't find any rows
diff --git a/src/ffisyms.cc b/src/ffisyms.cc
index 4b75e9de5c..4c6a7490eb 100644
--- a/src/ffisyms.cc
+++ b/src/ffisyms.cc
@@ -36,7 +36,7 @@
 #include <box/tuple.h>
 #include <box/index.h>
 #include <box/func.h>
-#include <box/sophia_engine.h>
+#include <box/phia_engine.h>
 #include <box/request.h>
 #include <box/port.h>
 #include <box/xrow.h>
diff --git a/test/.tarantoolctl b/test/.tarantoolctl
index 94bb001839..85b9f54ab6 100644
--- a/test/.tarantoolctl
+++ b/test/.tarantoolctl
@@ -5,7 +5,7 @@ default_cfg = {
     pid_file   = workdir,
     wal_dir    = workdir,
     snap_dir   = workdir,
-    sophia_dir = workdir,
+    phia_dir   = workdir,
     logger     = workdir,
     background = false,
 }
diff --git a/test/app-tap/init_script.result b/test/app-tap/init_script.result
index c016e79dde..0cd0ebe0b9 100644
--- a/test/app-tap/init_script.result
+++ b/test/app-tap/init_script.result
@@ -11,18 +11,18 @@ box.cfg
 6	logger_nonblock:true
 7	panic_on_snap_error:true
 8	panic_on_wal_error:true
-9	pid_file:box.pid
-10	read_only:false
-11	readahead:16320
-12	rows_per_wal:500000
-13	slab_alloc_arena:0.1
-14	slab_alloc_factor:1.1
-15	slab_alloc_maximal:1048576
-16	slab_alloc_minimal:16
-17	snap_dir:.
-18	snapshot_count:6
-19	snapshot_period:0
-20	sophia_dir:.
+9	phia_dir:.
+10	pid_file:box.pid
+11	read_only:false
+12	readahead:16320
+13	rows_per_wal:500000
+14	slab_alloc_arena:0.1
+15	slab_alloc_factor:1.1
+16	slab_alloc_maximal:1048576
+17	slab_alloc_minimal:16
+18	snap_dir:.
+19	snapshot_count:6
+20	snapshot_period:0
 21	too_long_threshold:0.5
 22	wal_dir:.
 23	wal_dir_rescan_delay:2
diff --git a/test/box-py/iproto.result b/test/box-py/iproto.result
index cb3f6f1e4c..2c243332f8 100644
--- a/test/box-py/iproto.result
+++ b/test/box-py/iproto.result
@@ -143,7 +143,7 @@ space:drop()
 space2:drop()
 ---
 ...
-space = box.schema.create_space('gh1280', { engine = 'sophia' })
+space = box.schema.create_space('gh1280', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary')
diff --git a/test/box-py/iproto.test.py b/test/box-py/iproto.test.py
index b60d6afcf4..6291ca96e3 100644
--- a/test/box-py/iproto.test.py
+++ b/test/box-py/iproto.test.py
@@ -285,7 +285,7 @@ admin("space2:drop()")
 #
 # gh-1280 Segmentation fault on space.select(tuple()) or space.select([2])
 #
-admin("space = box.schema.create_space('gh1280', { engine = 'sophia' })")
+admin("space = box.schema.create_space('gh1280', { engine = 'phia' })")
 admin("index = space:create_index('primary')")
 admin("space:insert({1})")
 admin("space:insert({2, 'Music'})")
diff --git a/test/box-tap/cfg.result b/test/box-tap/cfg.result
index f83baff72e..62b89442c6 100644
--- a/test/box-tap/cfg.result
+++ b/test/box-tap/cfg.result
@@ -9,7 +9,7 @@ ok - invalid logger
 ok - invalid logger
 ok - box is not started
 ok - exception on unconfigured box
-ok - sophia_dir is not auto-created
+ok - phia_dir is not auto-created
 ok - configured box
 ok - wal_mode default value
 ok - panic_on_wal_mode default value
@@ -27,7 +27,7 @@ ok - wal_mode fsync -> fsync
 ok - wal_mode fsync -> write is not supported
 ok - wal_mode write -> fsync is not supported
 ok - work_dir is invalid
-ok - sophia_dir is invalid
+ok - phia_dir is invalid
 ok - snap_dir is invalid
 ok - wal_dir is invalid
 ok - logger_nonblock default value
diff --git a/test/box-tap/cfg.test.lua b/test/box-tap/cfg.test.lua
index b6be775ed0..fc7e55bf27 100755
--- a/test/box-tap/cfg.test.lua
+++ b/test/box-tap/cfg.test.lua
@@ -40,15 +40,15 @@ local status, result = pcall(testfun)
 test:ok(not status and result:match('Please call box.cfg{}'),
     'exception on unconfigured box')
 
-os.execute("rm -rf sophia")
+os.execute("rm -rf phia")
 box.cfg{
     logger="tarantool.log",
     slab_alloc_arena=0.1,
     wal_mode = "", -- "" means default value
 }
 
--- gh-678: sophia engine creates sophia dir with empty 'snapshot' file
-test:isnil(io.open("sophia", 'r'), 'sophia_dir is not auto-created')
+-- gh-678: phia engine creates phia dir with empty 'snapshot' file
+test:isnil(io.open("phia", 'r'), 'phia_dir is not auto-created')
 
 status, result = pcall(testfun)
 test:ok(status and result == 'table', 'configured box')
@@ -134,8 +134,8 @@ local code;
 code = [[ box.cfg{ work_dir='invalid' } ]]
 test:is(run_script(code), PANIC, 'work_dir is invalid')
 
-code = [[ box.cfg{ sophia_dir='invalid' } ]]
-test:is(run_script(code), PANIC, 'sophia_dir is invalid')
+code = [[ box.cfg{ phia_dir='invalid' } ]]
+test:is(run_script(code), PANIC, 'phia_dir is invalid')
 
 code = [[ box.cfg{ snap_dir='invalid' } ]]
 test:is(run_script(code), PANIC, 'snap_dir is invalid')
diff --git a/test/box-tap/trigger_atexit.test.lua b/test/box-tap/trigger_atexit.test.lua
index 46d06f0f0f..2493dae13e 100755
--- a/test/box-tap/trigger_atexit.test.lua
+++ b/test/box-tap/trigger_atexit.test.lua
@@ -12,7 +12,7 @@ tempdir = fio.tempdir()
 box.cfg {
     wal_dir = tempdir,
     snap_dir = tempdir,
-    sophia_dir = tempdir,
+    phia_dir = tempdir,
     logger      = fio.pathjoin(tempdir, 'tarantool.log'),
     slab_alloc_arena=0.1 -- for small systems
 }
diff --git a/test/box/admin.result b/test/box/admin.result
index e5323c1a98..594d2c4054 100644
--- a/test/box/admin.result
+++ b/test/box/admin.result
@@ -34,29 +34,7 @@ cfg_filter(box.cfg)
     - true
   - - panic_on_wal_error
     - true
-  - - pid_file
-    - <hidden>
-  - - read_only
-    - false
-  - - readahead
-    - 16320
-  - - rows_per_wal
-    - 500000
-  - - slab_alloc_arena
-    - 0.1
-  - - slab_alloc_factor
-    - 1.1
-  - - slab_alloc_maximal
-    - <hidden>
-  - - slab_alloc_minimal
-    - <hidden>
-  - - snap_dir
-    - <hidden>
-  - - snapshot_count
-    - 6
-  - - snapshot_period
-    - 0
-  - - sophia
+  - - phia
     - - - branch_age
         - 0
       - - branch_age_period
@@ -83,8 +61,30 @@ cfg_filter(box.cfg)
         - 2
       - - threads
         - 5
-  - - sophia_dir
+  - - phia_dir
     - <hidden>
+  - - pid_file
+    - <hidden>
+  - - read_only
+    - false
+  - - readahead
+    - 16320
+  - - rows_per_wal
+    - 500000
+  - - slab_alloc_arena
+    - 0.1
+  - - slab_alloc_factor
+    - 1.1
+  - - slab_alloc_maximal
+    - <hidden>
+  - - slab_alloc_minimal
+    - <hidden>
+  - - snap_dir
+    - <hidden>
+  - - snapshot_count
+    - 6
+  - - snapshot_period
+    - 0
   - - too_long_threshold
     - 0.5
   - - wal_dir
diff --git a/test/box/box.lua b/test/box/box.lua
index c141d742d0..d79c64eb0f 100644
--- a/test/box/box.lua
+++ b/test/box/box.lua
@@ -10,7 +10,7 @@ box.cfg{
 require('console').listen(os.getenv('ADMIN'))
 
 local _hide = {
-    pid_file=1, logger=1, listen=1, sophia_dir=1,
+    pid_file=1, logger=1, listen=1, phia_dir=1,
     snap_dir=1, wal_dir=1,
     slab_alloc_maximal=1, slab_alloc_minimal=1
 }
diff --git a/test/box/cfg.result b/test/box/cfg.result
index d1d84e6757..9b4d6a8fd7 100644
--- a/test/box/cfg.result
+++ b/test/box/cfg.result
@@ -30,29 +30,7 @@ cfg_filter(box.cfg)
     - true
   - - panic_on_wal_error
     - true
-  - - pid_file
-    - <hidden>
-  - - read_only
-    - false
-  - - readahead
-    - 16320
-  - - rows_per_wal
-    - 500000
-  - - slab_alloc_arena
-    - 0.1
-  - - slab_alloc_factor
-    - 1.1
-  - - slab_alloc_maximal
-    - <hidden>
-  - - slab_alloc_minimal
-    - <hidden>
-  - - snap_dir
-    - <hidden>
-  - - snapshot_count
-    - 6
-  - - snapshot_period
-    - 0
-  - - sophia
+  - - phia
     - - - branch_age
         - 0
       - - branch_age_period
@@ -79,8 +57,30 @@ cfg_filter(box.cfg)
         - 2
       - - threads
         - 5
-  - - sophia_dir
+  - - phia_dir
     - <hidden>
+  - - pid_file
+    - <hidden>
+  - - read_only
+    - false
+  - - readahead
+    - 16320
+  - - rows_per_wal
+    - 500000
+  - - slab_alloc_arena
+    - 0.1
+  - - slab_alloc_factor
+    - 1.1
+  - - slab_alloc_maximal
+    - <hidden>
+  - - slab_alloc_minimal
+    - <hidden>
+  - - snap_dir
+    - <hidden>
+  - - snapshot_count
+    - 6
+  - - snapshot_period
+    - 0
   - - too_long_threshold
     - 0.5
   - - wal_dir
@@ -114,29 +114,7 @@ cfg_filter(box.cfg)
     - true
   - - panic_on_wal_error
     - true
-  - - pid_file
-    - <hidden>
-  - - read_only
-    - false
-  - - readahead
-    - 16320
-  - - rows_per_wal
-    - 500000
-  - - slab_alloc_arena
-    - 0.1
-  - - slab_alloc_factor
-    - 1.1
-  - - slab_alloc_maximal
-    - <hidden>
-  - - slab_alloc_minimal
-    - <hidden>
-  - - snap_dir
-    - <hidden>
-  - - snapshot_count
-    - 6
-  - - snapshot_period
-    - 0
-  - - sophia
+  - - phia
     - - - branch_age
         - 0
       - - branch_age_period
@@ -163,8 +141,30 @@ cfg_filter(box.cfg)
         - 2
       - - threads
         - 5
-  - - sophia_dir
+  - - phia_dir
     - <hidden>
+  - - pid_file
+    - <hidden>
+  - - read_only
+    - false
+  - - readahead
+    - 16320
+  - - rows_per_wal
+    - 500000
+  - - slab_alloc_arena
+    - 0.1
+  - - slab_alloc_factor
+    - 1.1
+  - - slab_alloc_maximal
+    - <hidden>
+  - - slab_alloc_minimal
+    - <hidden>
+  - - snap_dir
+    - <hidden>
+  - - snapshot_count
+    - 6
+  - - snapshot_period
+    - 0
   - - too_long_threshold
     - 0.5
   - - wal_dir
@@ -199,13 +199,13 @@ box.cfg{slab_alloc_arena = "100500"}
 ---
 - error: 'Incorrect value for option ''slab_alloc_arena'': should be of type number'
 ...
-box.cfg{sophia = "sophia"}
+box.cfg{phia = "phia"}
 ---
-- error: 'Incorrect value for option ''sophia'': should be a table'
+- error: 'Incorrect value for option ''phia'': should be a table'
 ...
-box.cfg{sophia = {threads = "threads"}}
+box.cfg{phia = {threads = "threads"}}
 ---
-- error: 'Incorrect value for option ''sophia.threads'': should be of type number'
+- error: 'Incorrect value for option ''phia.threads'': should be of type number'
 ...
 --------------------------------------------------------------------------------
 -- Test of default cfg options
@@ -222,7 +222,7 @@ test_run:cmd('switch cfg_tester1')
 ---
 - true
 ...
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 ---
 - 1
 - 1.1
@@ -252,7 +252,7 @@ test_run:cmd('switch cfg_tester2')
 ---
 - true
 ...
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 ---
 - 0.2
 - 1.1
@@ -282,7 +282,7 @@ test_run:cmd('switch cfg_tester3')
 ---
 - true
 ...
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 ---
 - 0.2
 - 1.1
@@ -312,7 +312,7 @@ test_run:cmd('switch cfg_tester4')
 ---
 - true
 ...
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 ---
 - 1
 - 3.14
diff --git a/test/box/cfg.test.lua b/test/box/cfg.test.lua
index 4942c7f58a..e06a6a53af 100644
--- a/test/box/cfg.test.lua
+++ b/test/box/cfg.test.lua
@@ -21,8 +21,8 @@ box.cfg{coredump = 'true'}
 --------------------------------------------------------------------------------
 
 box.cfg{slab_alloc_arena = "100500"}
-box.cfg{sophia = "sophia"}
-box.cfg{sophia = {threads = "threads"}}
+box.cfg{phia = "phia"}
+box.cfg{phia = {threads = "threads"}}
 
 
 --------------------------------------------------------------------------------
@@ -32,7 +32,7 @@ box.cfg{sophia = {threads = "threads"}}
 test_run:cmd('create server cfg_tester1 with script = "box/lua/cfg_test1.lua"')
 test_run:cmd("start server cfg_tester1")
 test_run:cmd('switch cfg_tester1')
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 test_run:cmd("switch default")
 test_run:cmd("stop server cfg_tester1")
 test_run:cmd("cleanup server cfg_tester1")
@@ -40,7 +40,7 @@ test_run:cmd("cleanup server cfg_tester1")
 test_run:cmd('create server cfg_tester2 with script = "box/lua/cfg_test2.lua"')
 test_run:cmd("start server cfg_tester2")
 test_run:cmd('switch cfg_tester2')
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 test_run:cmd("switch default")
 test_run:cmd("stop server cfg_tester2")
 test_run:cmd("cleanup server cfg_tester2")
@@ -48,7 +48,7 @@ test_run:cmd("cleanup server cfg_tester2")
 test_run:cmd('create server cfg_tester3 with script = "box/lua/cfg_test3.lua"')
 test_run:cmd("start server cfg_tester3")
 test_run:cmd('switch cfg_tester3')
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 test_run:cmd("switch default")
 test_run:cmd("stop server cfg_tester3")
 test_run:cmd("cleanup server cfg_tester3")
@@ -56,7 +56,7 @@ test_run:cmd("cleanup server cfg_tester3")
 test_run:cmd('create server cfg_tester4 with script = "box/lua/cfg_test4.lua"')
 test_run:cmd("start server cfg_tester4")
 test_run:cmd('switch cfg_tester4')
-box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.sophia.threads
+box.cfg.slab_alloc_arena, box.cfg.slab_alloc_factor, box.cfg.phia.threads
 test_run:cmd("switch default")
 test_run:cmd("stop server cfg_tester4")
 test_run:cmd("cleanup server cfg_tester4")
diff --git a/test/box/lua/cfg_test2.lua b/test/box/lua/cfg_test2.lua
index 6c77909d64..935609ab54 100644
--- a/test/box/lua/cfg_test2.lua
+++ b/test/box/lua/cfg_test2.lua
@@ -4,7 +4,7 @@ os = require('os')
 box.cfg{
     listen              = os.getenv("LISTEN"),
     slab_alloc_arena = 0.2,
-    sophia = {},
+    phia = {},
 }
 
 require('console').listen(os.getenv('ADMIN'))
diff --git a/test/box/lua/cfg_test3.lua b/test/box/lua/cfg_test3.lua
index b97a015a9b..09258bd6f5 100644
--- a/test/box/lua/cfg_test3.lua
+++ b/test/box/lua/cfg_test3.lua
@@ -4,7 +4,7 @@ os = require('os')
 box.cfg{
     listen              = os.getenv("LISTEN"),
     slab_alloc_arena = 0.2,
-    sophia = {threads = 10},
+    phia = {threads = 10},
 }
 
 require('console').listen(os.getenv('ADMIN'))
diff --git a/test/box/lua/cfg_test4.lua b/test/box/lua/cfg_test4.lua
index e1134baf7a..cd3ae8a1e1 100644
--- a/test/box/lua/cfg_test4.lua
+++ b/test/box/lua/cfg_test4.lua
@@ -4,7 +4,7 @@ os = require('os')
 box.cfg{
     listen              = os.getenv("LISTEN"),
     slab_alloc_factor = 3.14,
-    sophia = {memory_limit = 1024 * 1024},
+    phia = {memory_limit = 1024 * 1024},
 }
 
 require('console').listen(os.getenv('ADMIN'))
diff --git a/test/box/misc.result b/test/box/misc.result
index 157c8623e7..4c6a32b652 100644
--- a/test/box/misc.result
+++ b/test/box/misc.result
@@ -63,13 +63,13 @@ t
   - info
   - internal
   - once
+  - phia
   - rollback
   - runtime
   - schema
   - session
   - slab
   - snapshot
-  - sophia
   - space
   - stat
   - tuple
@@ -283,7 +283,7 @@ end;
 ...
 t;
 ---
-- - 'box.error.CANT_UPDATE_PRIMARY_KEY : 94'
+- - 'box.error.PHIA : 60'
   - 'box.error.EXACT_MATCH : 19'
   - 'box.error.NO_SUCH_TRIGGER : 34'
   - 'box.error.CLUSTER_ID_IS_RO : 65'
@@ -292,7 +292,7 @@ t;
   - 'box.error.MEMORY_ISSUE : 2'
   - 'box.error.KEY_PART_TYPE : 18'
   - 'box.error.CREATE_FUNCTION : 50'
-  - 'box.error.SOPHIA : 60'
+  - 'box.error.UNKNOWN_UPDATE_OP : 28'
   - 'box.error.injection : table: <address>
   - 'box.error.CONNECTION_TO_SELF : 117'
   - 'box.error.NO_SUCH_INDEX : 35'
@@ -300,55 +300,55 @@ t;
   - 'box.error.TUPLE_IS_TOO_LONG : 27'
   - 'box.error.VIEW_IS_RO : 113'
   - 'box.error.WRONG_SCHEMA_VERSION : 109'
-  - 'box.error.ROLE_GRANTED : 90'
+  - 'box.error.PRIV_NOT_GRANTED : 91'
   - 'box.error.UNKNOWN_SERVER : 62'
   - 'box.error.FUNCTION_EXISTS : 52'
   - 'box.error.SERVER_UUID_MISMATCH : 114'
   - 'box.error.UNSUPPORTED_INDEX_FEATURE : 112'
   - 'box.error.NO_SUCH_FUNCTION : 51'
-  - 'box.error.INDEX_FIELD_COUNT : 39'
+  - 'box.error.NO_SUCH_SPACE : 36'
   - 'box.error.WRONG_INDEX_PARTS : 107'
   - 'box.error.ROLE_LOOP : 87'
   - 'box.error.TUPLE_NOT_FOUND : 4'
   - 'box.error.LOADING : 116'
-  - 'box.error.NO_SUCH_ROLE : 82'
+  - 'box.error.ROLE_EXISTS : 83'
   - 'box.error.SLAB_ALLOC_MAX : 110'
   - 'box.error.WRONG_INDEX_RECORD : 106'
   - 'box.error.DROP_USER : 44'
   - 'box.error.UPSERT_UNIQUE_SECONDARY_KEY : 105'
   - 'box.error.PROTOCOL : 104'
   - 'box.error.CROSS_ENGINE_TRANSACTION : 81'
-  - 'box.error.ITERATOR_TYPE : 72'
+  - 'box.error.REPLICA_MAX : 73'
   - 'box.error.RTREE_RECT : 101'
   - 'box.error.FUNCTION_LANGUAGE : 100'
-  - 'box.error.TUPLE_FOUND : 3'
+  - 'box.error.SPLICE : 25'
   - 'box.error.MODIFY_INDEX : 14'
   - 'box.error.UPDATE_INTEGER_OVERFLOW : 95'
   - 'box.error.TRANSACTION_CONFLICT : 97'
   - 'box.error.PASSWORD_MISMATCH : 47'
-  - 'box.error.INVALID_XLOG_NAME : 75'
+  - 'box.error.DROP_SPACE : 11'
   - 'box.error.NO_SUCH_ENGINE : 57'
   - 'box.error.UNSUPPORTED_ROLE_PRIV : 98'
   - 'box.error.ACCESS_DENIED : 42'
-  - 'box.error.MISSING_SNAPSHOT : 93'
+  - 'box.error.CANT_UPDATE_PRIMARY_KEY : 94'
   - 'box.error.LAST_DROP : 15'
   - 'box.error.USER_EXISTS : 46'
   - 'box.error.WAL_IO : 40'
-  - 'box.error.DROP_PRIMARY_KEY : 17'
+  - 'box.error.MISSING_SNAPSHOT : 93'
   - 'box.error.CREATE_USER : 43'
-  - 'box.error.PRIV_NOT_GRANTED : 91'
+  - 'box.error.MORE_THAN_ONE_TUPLE : 41'
   - 'box.error.PRIV_GRANTED : 89'
   - 'box.error.CREATE_SPACE : 9'
   - 'box.error.SYSTEM : 115'
   - 'box.error.GRANT : 88'
+  - 'box.error.ROLE_GRANTED : 90'
   - 'box.error.TUPLE_REF_OVERFLOW : 86'
-  - 'box.error.PROC_LUA : 32'
   - 'box.error.UNKNOWN_SCHEMA_OBJECT : 49'
-  - 'box.error.ROLE_EXISTS : 83'
+  - 'box.error.PROC_LUA : 32'
   - 'box.error.CREATE_ROLE : 84'
   - 'box.error.WRONG_INDEX_OPTIONS : 108'
+  - 'box.error.NO_SUCH_ROLE : 82'
   - 'box.error.NO_ACTIVE_TRANSACTION : 80'
-  - 'box.error.NO_CONNECTION : 77'
   - 'box.error.LOAD_FUNCTION : 99'
   - 'box.error.FIELD_TYPE_MISMATCH : 24'
   - 'box.error.UNSUPPORTED : 5'
@@ -356,48 +356,48 @@ t;
   - 'box.error.KEY_PART_COUNT : 31'
   - 'box.error.ALTER_SPACE : 12'
   - 'box.error.ACTIVE_TRANSACTION : 79'
-  - 'box.error.FIELD_TYPE : 23'
+  - 'box.error.NO_CONNECTION : 77'
   - 'box.error.GUEST_USER_PASSWORD : 96'
+  - 'box.error.INVALID_XLOG_NAME : 75'
   - 'box.error.INVALID_XLOG : 74'
-  - 'box.error.REPLICA_MAX : 73'
   - 'box.error.PROC_C : 102'
   - 'box.error.SERVER_ID_MISMATCH : 66'
   - 'box.error.NONMASTER : 6'
   - 'box.error.SPACE_EXISTS : 10'
-  - 'box.error.MISSING_REQUEST_FIELD : 69'
+  - 'box.error.ITERATOR_TYPE : 72'
   - 'box.error.IDENTIFIER : 70'
   - 'box.error.FIBER_STACK : 30'
   - 'box.error.DROP_FUNCTION : 71'
-  - 'box.error.INVALID_ORDER : 68'
+  - 'box.error.MISSING_REQUEST_FIELD : 69'
   - 'box.error.CFG : 59'
   - 'box.error.SPACE_FIELD_COUNT : 38'
-  - 'box.error.UNKNOWN : 0'
+  - 'box.error.INVALID_ORDER : 68'
   - 'box.error.NO_SUCH_FIELD : 37'
   - 'box.error.LOCAL_SERVER_IS_NOT_ACTIVE : 61'
+  - 'box.error.SPACE_ACCESS_DENIED : 55'
   - 'box.error.RELOAD_CFG : 58'
-  - 'box.error.PROC_RET : 21'
   - 'box.error.INJECTION : 8'
   - 'box.error.FUNCTION_MAX : 54'
   - 'box.error.ILLEGAL_PARAMS : 1'
+  - 'box.error.PROC_RET : 21'
   - 'box.error.TUPLE_FORMAT_LIMIT : 16'
-  - 'box.error.USER_MAX : 56'
   - 'box.error.INVALID_UUID : 64'
-  - 'box.error.SPLICE : 25'
+  - 'box.error.UNKNOWN : 0'
   - 'box.error.TIMEOUT : 78'
-  - 'box.error.MORE_THAN_ONE_TUPLE : 41'
-  - 'box.error.NO_SUCH_SPACE : 36'
+  - 'box.error.TUPLE_FOUND : 3'
+  - 'box.error.INDEX_FIELD_COUNT : 39'
   - 'box.error.INDEX_EXISTS : 85'
   - 'box.error.UPDATE_FIELD : 29'
   - 'box.error.ARG_TYPE : 26'
   - 'box.error.WRONG_SPACE_OPTIONS : 111'
   - 'box.error.READONLY : 7'
   - 'box.error.ROLE_NOT_GRANTED : 92'
-  - 'box.error.DROP_SPACE : 11'
+  - 'box.error.DROP_PRIMARY_KEY : 17'
   - 'box.error.UNKNOWN_REQUEST_TYPE : 48'
   - 'box.error.INVALID_XLOG_ORDER : 76'
-  - 'box.error.SPACE_ACCESS_DENIED : 55'
+  - 'box.error.FIELD_TYPE : 23'
   - 'box.error.NO_SUCH_USER : 45'
-  - 'box.error.UNKNOWN_UPDATE_OP : 28'
+  - 'box.error.USER_MAX : 56'
   - 'box.error.TUPLE_NOT_ARRAY : 22'
   - 'box.error.NO_SUCH_PROC : 33'
   - 'box.error.FUNCTION_ACCESS_DENIED : 53'
diff --git a/test/box/rtree_misc.result b/test/box/rtree_misc.result
index 785976aec7..8fab449b03 100644
--- a/test/box/rtree_misc.result
+++ b/test/box/rtree_misc.result
@@ -148,7 +148,7 @@ s.index.spatial:alter({type = 'tree'})
 - error: 'Can''t create or modify index ''spatial'' in space ''spatial'': ARRAY field
     type is not supported'
 ...
-box.space[box.schema.SPACE_ID]:update({s.id}, {{"=", 4, 'sophia'}})
+box.space[box.schema.SPACE_ID]:update({s.id}, {{"=", 4, 'phia'}})
 ---
 - error: 'Can''t modify space ''spatial'': can not change space engine'
 ...
@@ -211,13 +211,13 @@ s.index.spatial:select({})
 s:drop()
 ---
 ...
-s = box.schema.space.create('sophia', {engine = 'sophia'})
+s = box.schema.space.create('phia', {engine = 'phia'})
 ---
 ...
--- rtree indexes are not enabled in sophia
+-- rtree indexes are not enabled in phia
 i = s:create_index('spatial', { type = 'rtree', unique = true, parts = {3, 'array'}})
 ---
-- error: Unsupported index type supplied for index 'spatial' in space 'sophia'
+- error: Unsupported index type supplied for index 'spatial' in space 'phia'
 ...
 i = s:create_index('primary', { type = 'tree', parts = {1, 'num'}})
 ---
@@ -225,7 +225,7 @@ i = s:create_index('primary', { type = 'tree', parts = {1, 'num'}})
 -- ... even secondary
 i = s:create_index('spatial', { type = 'rtree', unique = true, parts = {3, 'array'}})
 ---
-- error: Unsupported index type supplied for index 'spatial' in space 'sophia'
+- error: Unsupported index type supplied for index 'spatial' in space 'phia'
 ...
 s:drop()
 ---
diff --git a/test/box/rtree_misc.test.lua b/test/box/rtree_misc.test.lua
index cf061a77ce..0f93d569e7 100644
--- a/test/box/rtree_misc.test.lua
+++ b/test/box/rtree_misc.test.lua
@@ -58,7 +58,7 @@ s:insert{1, 2, {3, 4, 5, 6}}
 -- invalid alters
 s.index.spatial:alter({unique = true})
 s.index.spatial:alter({type = 'tree'})
-box.space[box.schema.SPACE_ID]:update({s.id}, {{"=", 4, 'sophia'}})
+box.space[box.schema.SPACE_ID]:update({s.id}, {{"=", 4, 'phia'}})
 
 -- chech that truncate works
 s.index.spatial:select({0, 0, 10, 10}, {iterator = 'le'})
@@ -84,8 +84,8 @@ s.index.spatial:select({})
 
 s:drop()
 
-s = box.schema.space.create('sophia', {engine = 'sophia'})
--- rtree indexes are not enabled in sophia
+s = box.schema.space.create('phia', {engine = 'phia'})
+-- rtree indexes are not enabled in phia
 i = s:create_index('spatial', { type = 'rtree', unique = true, parts = {3, 'array'}})
 i = s:create_index('primary', { type = 'tree', parts = {1, 'num'}})
 -- ... even secondary
diff --git a/test/box/transaction.result b/test/box/transaction.result
index 61fec03842..35f2b3dc28 100644
--- a/test/box/transaction.result
+++ b/test/box/transaction.result
@@ -194,7 +194,7 @@ box.begin();
 ---
 ...
 -- should be ok - active transaction, and we don't
--- know, maybe it will use sophia engine, which
+-- know, maybe it will use phia engine, which
 -- may support yield() in the future, so we don't roll
 -- back a transction with no statements.
 box.commit();
diff --git a/test/box/transaction.test.lua b/test/box/transaction.test.lua
index 2a40bc9c20..8a8c95cf4a 100644
--- a/test/box/transaction.test.lua
+++ b/test/box/transaction.test.lua
@@ -84,7 +84,7 @@ s:truncate();
 -- Test admin console
 box.begin();
 -- should be ok - active transaction, and we don't
--- know, maybe it will use sophia engine, which
+-- know, maybe it will use phia engine, which
 -- may support yield() in the future, so we don't roll
 -- back a transction with no statements.
 box.commit();
diff --git a/test/engine/box.lua b/test/engine/box.lua
index 72fe055f75..070e6a8d5b 100644
--- a/test/engine/box.lua
+++ b/test/engine/box.lua
@@ -11,7 +11,7 @@ box.cfg{
 require('console').listen(os.getenv('ADMIN'))
 
 _to_exclude = {
-    'pid_file', 'logger', 'sophia_dir',
+    'pid_file', 'logger', 'phia_dir',
     'snap_dir', 'wal_dir',
     'slab_alloc_maximal', 'slab_alloc_minimal'
 }
diff --git a/test/engine/engine.cfg b/test/engine/engine.cfg
index c99ca2fc0f..81ff7c8525 100644
--- a/test/engine/engine.cfg
+++ b/test/engine/engine.cfg
@@ -1,7 +1,7 @@
 {
     "*": {
         "memtx": {"engine": "memtx"}, 
-        "sophia": {"engine": "sophia"}
+        "phia": {"engine": "phia"}
     }
 }
 
diff --git a/test/engine/params.result b/test/engine/params.result
index 5311236da1..3be8deb8af 100644
--- a/test/engine/params.result
+++ b/test/engine/params.result
@@ -17,7 +17,7 @@ s = box.schema.create_space('engine', {engine=engine})
 i = s:create_index('primary')
 ---
 ...
---test example for memtx and sophia
+--test example for memtx and phia
 _ = box.space.engine:insert{1,2,3}
 ---
 ...
diff --git a/test/engine/params.test.lua b/test/engine/params.test.lua
index 5aeb27648e..992774eb84 100644
--- a/test/engine/params.test.lua
+++ b/test/engine/params.test.lua
@@ -7,7 +7,7 @@ box.schema.user.grant('guest', 'read,write,execute', 'universe')
 s = box.schema.create_space('engine', {engine=engine})
 i = s:create_index('primary')
 
---test example for memtx and sophia
+--test example for memtx and phia
 _ = box.space.engine:insert{1,2,3}
 box.space.engine:select{}
 
diff --git a/test/long_run-py/box.lua b/test/long_run-py/box.lua
index 1259b1b4d9..cb95f3bb78 100644
--- a/test/long_run-py/box.lua
+++ b/test/long_run-py/box.lua
@@ -2,10 +2,10 @@
 
 require('suite')
 
-os.execute("rm -rf sophia_test")
-os.execute("mkdir -p sophia_test")
+os.execute("rm -rf phia_test")
+os.execute("mkdir -p phia_test")
 
-local sophia = {
+local phia = {
 	threads = 5
 }
 
@@ -14,8 +14,8 @@ box.cfg {
     slab_alloc_arena  = 0.1,
     pid_file          = "tarantool.pid",
     rows_per_wal      = 500000,
-    sophia_dir        = "./sophia_test",
-    sophia            = sophia,
+    phia_dir        = "./phia_test",
+    phia            = phia,
 }
 
 require('console').listen(os.getenv('ADMIN'))
diff --git a/test/long_run/box.lua b/test/long_run/box.lua
index 1259b1b4d9..cb95f3bb78 100644
--- a/test/long_run/box.lua
+++ b/test/long_run/box.lua
@@ -2,10 +2,10 @@
 
 require('suite')
 
-os.execute("rm -rf sophia_test")
-os.execute("mkdir -p sophia_test")
+os.execute("rm -rf phia_test")
+os.execute("mkdir -p phia_test")
 
-local sophia = {
+local phia = {
 	threads = 5
 }
 
@@ -14,8 +14,8 @@ box.cfg {
     slab_alloc_arena  = 0.1,
     pid_file          = "tarantool.pid",
     rows_per_wal      = 500000,
-    sophia_dir        = "./sophia_test",
-    sophia            = sophia,
+    phia_dir        = "./phia_test",
+    phia            = phia,
 }
 
 require('console').listen(os.getenv('ADMIN'))
diff --git a/test/long_run/sophia_delete_insert.result b/test/long_run/phia_delete_insert.result
similarity index 85%
rename from test/long_run/sophia_delete_insert.result
rename to test/long_run/phia_delete_insert.result
index d8fecc44e7..2673aaebd7 100644
--- a/test/long_run/sophia_delete_insert.result
+++ b/test/long_run/phia_delete_insert.result
@@ -1,7 +1,7 @@
 dofile('suite.lua')
 ---
 ...
-engine_name = 'sophia'
+engine_name = 'phia'
 ---
 ...
 math.randomseed(1)
diff --git a/test/long_run/sophia_delete_insert.test.lua b/test/long_run/phia_delete_insert.test.lua
similarity index 75%
rename from test/long_run/sophia_delete_insert.test.lua
rename to test/long_run/phia_delete_insert.test.lua
index 3f58f918d5..7bccd57fca 100644
--- a/test/long_run/sophia_delete_insert.test.lua
+++ b/test/long_run/phia_delete_insert.test.lua
@@ -1,7 +1,7 @@
 
 dofile('suite.lua')
 
-engine_name = 'sophia'
+engine_name = 'phia'
 
 math.randomseed(1)
 delete_insert(engine_name)
diff --git a/test/long_run/sophia_delete_replace_update.result b/test/long_run/phia_delete_replace_update.result
similarity index 96%
rename from test/long_run/sophia_delete_replace_update.result
rename to test/long_run/phia_delete_replace_update.result
index 5ce22860b4..ffbe29a65b 100644
--- a/test/long_run/sophia_delete_replace_update.result
+++ b/test/long_run/phia_delete_replace_update.result
@@ -1,7 +1,7 @@
 dofile('suite.lua')
 ---
 ...
-engine_name = 'sophia'
+engine_name = 'phia'
 ---
 ...
 math.randomseed(1)
diff --git a/test/long_run/sophia_delete_replace_update.test.lua b/test/long_run/phia_delete_replace_update.test.lua
similarity index 92%
rename from test/long_run/sophia_delete_replace_update.test.lua
rename to test/long_run/phia_delete_replace_update.test.lua
index c91f2e414a..8310ebba18 100644
--- a/test/long_run/sophia_delete_replace_update.test.lua
+++ b/test/long_run/phia_delete_replace_update.test.lua
@@ -1,7 +1,7 @@
 
 dofile('suite.lua')
 
-engine_name = 'sophia'
+engine_name = 'phia'
 
 math.randomseed(1)
 delete_replace_update(engine_name)
diff --git a/test/long_run/suite.ini b/test/long_run/suite.ini
index dcee45d1d2..9c1528fb6e 100644
--- a/test/long_run/suite.ini
+++ b/test/long_run/suite.ini
@@ -2,7 +2,7 @@
 core = tarantool
 description = long running tests
 script = box.lua
-long_run =  memtx_delete_replace_update.test.lua sophia_delete_replace_update.test.lua memtx_delete_insert.test.lua sophia_delete_insert.test.lua finalizers.test.py
+long_run =  memtx_delete_replace_update.test.lua phia_delete_replace_update.test.lua memtx_delete_insert.test.lua phia_delete_insert.test.lua finalizers.test.py
 valgrind_disabled =
 release_disabled =
 lua_libs = suite.lua
diff --git a/test/sophia/constraint.result b/test/phia/constraint.result
similarity index 88%
rename from test/sophia/constraint.result
rename to test/phia/constraint.result
index 64ca45316a..2e394834c4 100644
--- a/test/sophia/constraint.result
+++ b/test/phia/constraint.result
@@ -1,5 +1,5 @@
 -- key type validations (str, num)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', { type = 'tree', parts = {1, 'str'} })
@@ -37,7 +37,7 @@ space:drop()
 ---
 ...
 -- key type validations (num, str)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', { type = 'tree', parts = {1, 'num'} })
@@ -75,7 +75,7 @@ space:drop()
 ---
 ...
 -- test key-parts limit (8 max)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', { type = 'tree', parts = {1,'num',2,'num',3,'num',4,'num',5,'num',6,'num',7,'num',8,'num'} })
@@ -85,19 +85,19 @@ space:drop()
 ---
 ...
 -- test key-parts limit (hit the limit)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', { type = 'tree', parts = {1,'num',2,'num',3,'num',4,'num',5,'num',6,'num',7,'num',8,'num', 9, 'num'} })
 ---
-- error: 'Can''t create or modify index ''primary'' in space ''test'': Sophia index
+- error: 'Can''t create or modify index ''primary'' in space ''test'': Phia index
     key has too many parts (8 max)'
 ...
 space:drop()
 ---
 ...
 -- ensure all key-parts are passed
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', { type = 'tree', parts = {1,'num',2,'num'} })
@@ -129,8 +129,7 @@ space:get{1}
 ...
 index:select({1}, {iterator = box.index.GT})
 ---
-- error: Index 'primary' (TREE) of space 'test' (sophia) does not support partial
-    keys
+- error: Index 'primary' (TREE) of space 'test' (phia) does not support partial keys
 ...
 space:drop()
 ---
diff --git a/test/sophia/constraint.test.lua b/test/phia/constraint.test.lua
similarity index 80%
rename from test/sophia/constraint.test.lua
rename to test/phia/constraint.test.lua
index cc5ee48191..720c83c41f 100644
--- a/test/sophia/constraint.test.lua
+++ b/test/phia/constraint.test.lua
@@ -1,6 +1,6 @@
 
 -- key type validations (str, num)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', { type = 'tree', parts = {1, 'str'} })
 space:insert{1}
 space:replace{1}
@@ -12,7 +12,7 @@ index:pairs(1, {iterator = 'GE'})
 space:drop()
 
 -- key type validations (num, str)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', { type = 'tree', parts = {1, 'num'} })
 space:insert{'A'}
 space:replace{'A'}
@@ -25,18 +25,18 @@ space:drop()
 
 
 -- test key-parts limit (8 max)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', { type = 'tree', parts = {1,'num',2,'num',3,'num',4,'num',5,'num',6,'num',7,'num',8,'num'} })
 space:drop()
 
 -- test key-parts limit (hit the limit)
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', { type = 'tree', parts = {1,'num',2,'num',3,'num',4,'num',5,'num',6,'num',7,'num',8,'num', 9, 'num'} })
 space:drop()
 
 
 -- ensure all key-parts are passed
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', { type = 'tree', parts = {1,'num',2,'num'} })
 space:insert{1}
 space:replace{1}
diff --git a/test/sophia/ddl.result b/test/phia/ddl.result
similarity index 66%
rename from test/sophia/ddl.result
rename to test/phia/ddl.result
index 09dcc4c053..dda2c2b641 100644
--- a/test/sophia/ddl.result
+++ b/test/phia/ddl.result
@@ -1,29 +1,29 @@
 -- space index create/drop tree incorrect key pos
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', {type = 'tree', parts = {3, 'num'}})
 ---
-- error: 'Can''t create or modify index ''primary'' in space ''test'': Sophia key
-    parts must follow first and cannot be sparse'
+- error: 'Can''t create or modify index ''primary'' in space ''test'': Phia key parts
+    must follow first and cannot be sparse'
 ...
 space:drop()
 ---
 ...
 -- space index create/drop tree sparse
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', {type = 'tree', parts = {1, 'num', 3, 'num'}})
 ---
-- error: 'Can''t create or modify index ''primary'' in space ''test'': Sophia key
-    parts must follow first and cannot be sparse'
+- error: 'Can''t create or modify index ''primary'' in space ''test'': Phia key parts
+    must follow first and cannot be sparse'
 ...
 space:drop()
 ---
 ...
 -- space secondary index create
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index1 = space:create_index('primary')
@@ -31,14 +31,14 @@ index1 = space:create_index('primary')
 ...
 index2 = space:create_index('secondary')
 ---
-- error: 'Can''t create or modify index ''secondary'' in space ''test'': Sophia secondary
+- error: 'Can''t create or modify index ''secondary'' in space ''test'': Phia secondary
     indexes are not supported'
 ...
 space:drop()
 ---
 ...
 -- space index create hash
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', {type = 'hash'})
@@ -49,7 +49,7 @@ space:drop()
 ---
 ...
 -- ensure alter is not supported
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary')
@@ -57,7 +57,7 @@ index = space:create_index('primary')
 ...
 index:alter({parts={1,'NUM'}})
 ---
-- error: alter is not supported for a Sophia index
+- error: alter is not supported for a Phia index
 ...
 space:drop()
 ---
diff --git a/test/sophia/ddl.test.lua b/test/phia/ddl.test.lua
similarity index 66%
rename from test/sophia/ddl.test.lua
rename to test/phia/ddl.test.lua
index 0c9bd7b10b..971fbb9815 100644
--- a/test/sophia/ddl.test.lua
+++ b/test/phia/ddl.test.lua
@@ -1,26 +1,26 @@
 -- space index create/drop tree incorrect key pos
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', {type = 'tree', parts = {3, 'num'}})
 space:drop()
 
 -- space index create/drop tree sparse
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', {type = 'tree', parts = {1, 'num', 3, 'num'}})
 space:drop()
 
 -- space secondary index create
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index1 = space:create_index('primary')
 index2 = space:create_index('secondary')
 space:drop()
 
 -- space index create hash
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary', {type = 'hash'})
 space:drop()
 
 -- ensure alter is not supported
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 index = space:create_index('primary')
 index:alter({parts={1,'NUM'}})
 space:drop()
diff --git a/test/sophia/gh.result b/test/phia/gh.result
similarity index 83%
rename from test/sophia/gh.result
rename to test/phia/gh.result
index 6b854474bb..f36f8d2291 100644
--- a/test/sophia/gh.result
+++ b/test/phia/gh.result
@@ -1,5 +1,5 @@
 -- gh-283: hang after three creates and drops
-s = box.schema.space.create('space0', {engine='sophia'})
+s = box.schema.space.create('space0', {engine='phia'})
 ---
 ...
 i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
@@ -11,7 +11,7 @@ s:insert{'a', 'b', 'c'}
 s:drop()
 ---
 ...
-s = box.schema.space.create('space0', {engine='sophia'})
+s = box.schema.space.create('space0', {engine='phia'})
 ---
 ...
 i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
@@ -30,7 +30,7 @@ t
 s:drop()
 ---
 ...
-s = box.schema.space.create('space0', {engine='sophia'})
+s = box.schema.space.create('space0', {engine='phia'})
 ---
 ...
 i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
@@ -50,7 +50,7 @@ s:drop()
 ---
 ...
 -- gh-280: crash if insert without index
-s = box.schema.space.create('test', {engine='sophia'})
+s = box.schema.space.create('test', {engine='phia'})
 ---
 ...
 s:insert{'a'}
@@ -60,16 +60,16 @@ s:insert{'a'}
 s:drop()
 ---
 ...
--- gh-436: No error when creating temporary sophia space
-s = box.schema.space.create('tester',{engine='sophia', temporary=true})
+-- gh-436: No error when creating temporary phia space
+s = box.schema.space.create('tester',{engine='phia', temporary=true})
 ---
 - error: 'Can''t modify space ''tester'': space does not support temporary flag'
 ...
 -- gh-432: ignored limit
-s = box.schema.space.create('tester',{engine='sophia'})
+s = box.schema.space.create('tester',{engine='phia'})
 ---
 ...
-i = s:create_index('sophia_index', {})
+i = s:create_index('phia_index', {})
 ---
 ...
 for v=1, 100 do s:insert({v}) end
@@ -93,10 +93,10 @@ t
 s:drop()
 ---
 ...
-s = box.schema.space.create('tester', {engine='sophia'})
+s = box.schema.space.create('tester', {engine='phia'})
 ---
 ...
-i = s:create_index('sophia_index', {type = 'tree', parts = {1, 'STR'}})
+i = s:create_index('phia_index', {type = 'tree', parts = {1, 'STR'}})
 ---
 ...
 for v=1, 100 do s:insert({tostring(v)}) end
@@ -120,7 +120,7 @@ s:drop()
 ---
 ...
 -- gh-681: support or produce error on space::alter
-s = box.schema.space.create('M', {engine='sophia'})
+s = box.schema.space.create('M', {engine='phia'})
 ---
 ...
 i = s:create_index('primary',{})
@@ -131,13 +131,13 @@ s:insert{5}
 ...
 s.index.primary:alter({parts={1,'NUM'}})
 ---
-- error: alter is not supported for a Sophia index
+- error: alter is not supported for a Phia index
 ...
 s:drop()
 ---
 ...
 -- gh-1008: assertion if insert of wrong type
-s = box.schema.space.create('t', {engine='sophia'})
+s = box.schema.space.create('t', {engine='phia'})
 ---
 ...
 i = s:create_index('primary',{parts={1, 'STR'}})
@@ -151,7 +151,7 @@ s:drop()
 ---
 ...
 -- gh-1009: search for empty string fails
-s = box.schema.space.create('t', {engine='sophia'})
+s = box.schema.space.create('t', {engine='phia'})
 ---
 ...
 i = s:create_index('primary',{parts={1, 'STR'}})
@@ -172,12 +172,12 @@ s:drop()
 ---
 ...
 -- gh-1015: assertion if nine indexed fields
-s = box.schema.create_space('t',{engine='sophia'})
+s = box.schema.create_space('t',{engine='phia'})
 ---
 ...
 i = s:create_index('primary',{parts={1,'str',2,'str',3,'str',4,'str',5,'str',6,'str',7,'str',8,'str',9,'str'}})
 ---
-- error: 'Can''t create or modify index ''primary'' in space ''t'': Sophia index key
+- error: 'Can''t create or modify index ''primary'' in space ''t'': Phia index key
     has too many parts (8 max)'
 ...
 s:insert{'1','2','3','4','5','6','7','8','9'}
@@ -188,7 +188,7 @@ s:drop()
 ---
 ...
 -- gh-1016: behaviour of multi-part indexes
-s = box.schema.create_space('t',{engine='sophia'})
+s = box.schema.create_space('t',{engine='phia'})
 ---
 ...
 i = s:create_index('primary',{parts={1,'str',2,'str',3,'str'}})
@@ -202,7 +202,7 @@ s:insert{'1','2','0'}
 ...
 i:select({'1','2',nil},{iterator='GT'})
 ---
-- error: Index 'primary' (TREE) of space 't' (sophia) does not support partial keys
+- error: Index 'primary' (TREE) of space 't' (phia) does not support partial keys
 ...
 s:drop()
 ---
@@ -211,7 +211,7 @@ s:drop()
 email_space_id = 'email'
 ---
 ...
-email_space = box.schema.space.create(email_space_id, { engine = 'sophia', if_not_exists = true })
+email_space = box.schema.space.create(email_space_id, { engine = 'phia', if_not_exists = true })
 ---
 ...
 i = email_space:create_index('primary', { parts = {1, 'STR'} })
diff --git a/test/sophia/gh.test.lua b/test/phia/gh.test.lua
similarity index 80%
rename from test/sophia/gh.test.lua
rename to test/phia/gh.test.lua
index 44506bc6a7..8e2f3dc327 100644
--- a/test/sophia/gh.test.lua
+++ b/test/phia/gh.test.lua
@@ -1,18 +1,18 @@
 
 -- gh-283: hang after three creates and drops
-s = box.schema.space.create('space0', {engine='sophia'})
+s = box.schema.space.create('space0', {engine='phia'})
 i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
 s:insert{'a', 'b', 'c'}
 s:drop()
 
-s = box.schema.space.create('space0', {engine='sophia'})
+s = box.schema.space.create('space0', {engine='phia'})
 i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
 s:insert{'a', 'b', 'c'}
 t = s.index[0]:select({}, {iterator = box.index.ALL})
 t
 s:drop()
 
-s = box.schema.space.create('space0', {engine='sophia'})
+s = box.schema.space.create('space0', {engine='phia'})
 i = s:create_index('space0', {type = 'tree', parts = {1, 'STR'}})
 s:insert{'a', 'b', 'c'}
 t = s.index[0]:select({}, {iterator = box.index.ALL})
@@ -21,18 +21,18 @@ s:drop()
 
 
 -- gh-280: crash if insert without index
-s = box.schema.space.create('test', {engine='sophia'})
+s = box.schema.space.create('test', {engine='phia'})
 s:insert{'a'}
 s:drop()
 
 
--- gh-436: No error when creating temporary sophia space
-s = box.schema.space.create('tester',{engine='sophia', temporary=true})
+-- gh-436: No error when creating temporary phia space
+s = box.schema.space.create('tester',{engine='phia', temporary=true})
 
 
 -- gh-432: ignored limit
-s = box.schema.space.create('tester',{engine='sophia'})
-i = s:create_index('sophia_index', {})
+s = box.schema.space.create('tester',{engine='phia'})
+i = s:create_index('phia_index', {})
 for v=1, 100 do s:insert({v}) end
 t = s:select({''},{iterator='GT', limit =1})
 t
@@ -40,8 +40,8 @@ t = s:select({},{iterator='GT', limit =1})
 t
 s:drop()
 
-s = box.schema.space.create('tester', {engine='sophia'})
-i = s:create_index('sophia_index', {type = 'tree', parts = {1, 'STR'}})
+s = box.schema.space.create('tester', {engine='phia'})
+i = s:create_index('phia_index', {type = 'tree', parts = {1, 'STR'}})
 for v=1, 100 do s:insert({tostring(v)}) end
 t = s:select({''},{iterator='GT', limit =1})
 t
@@ -51,7 +51,7 @@ s:drop()
 
 
 -- gh-681: support or produce error on space::alter
-s = box.schema.space.create('M', {engine='sophia'})
+s = box.schema.space.create('M', {engine='phia'})
 i = s:create_index('primary',{})
 s:insert{5}
 s.index.primary:alter({parts={1,'NUM'}})
@@ -59,14 +59,14 @@ s:drop()
 
 
 -- gh-1008: assertion if insert of wrong type
-s = box.schema.space.create('t', {engine='sophia'})
+s = box.schema.space.create('t', {engine='phia'})
 i = s:create_index('primary',{parts={1, 'STR'}})
 box.space.t:insert{1,'A'}
 s:drop()
 
 
 -- gh-1009: search for empty string fails
-s = box.schema.space.create('t', {engine='sophia'})
+s = box.schema.space.create('t', {engine='phia'})
 i = s:create_index('primary',{parts={1, 'STR'}})
 s:insert{''}
 #i:select{''}
@@ -75,14 +75,14 @@ s:drop()
 
 
 -- gh-1015: assertion if nine indexed fields
-s = box.schema.create_space('t',{engine='sophia'})
+s = box.schema.create_space('t',{engine='phia'})
 i = s:create_index('primary',{parts={1,'str',2,'str',3,'str',4,'str',5,'str',6,'str',7,'str',8,'str',9,'str'}})
 s:insert{'1','2','3','4','5','6','7','8','9'}
 s:drop()
 
 
 -- gh-1016: behaviour of multi-part indexes
-s = box.schema.create_space('t',{engine='sophia'})
+s = box.schema.create_space('t',{engine='phia'})
 i = s:create_index('primary',{parts={1,'str',2,'str',3,'str'}})
 s:insert{'1','2','3'}
 s:insert{'1','2','0'}
@@ -92,7 +92,7 @@ s:drop()
 
 -- gh-1407: upsert generate garbage data
 email_space_id = 'email'
-email_space = box.schema.space.create(email_space_id, { engine = 'sophia', if_not_exists = true })
+email_space = box.schema.space.create(email_space_id, { engine = 'phia', if_not_exists = true })
 i = email_space:create_index('primary', { parts = {1, 'STR'} })
 
 time = 1234
diff --git a/test/sophia/hermitage.lua b/test/phia/hermitage.lua
similarity index 96%
rename from test/sophia/hermitage.lua
rename to test/phia/hermitage.lua
index fcc95e5ec6..79e5652155 100644
--- a/test/sophia/hermitage.lua
+++ b/test/phia/hermitage.lua
@@ -2,9 +2,9 @@
 --
 -- hermitage: Testing transaction isolation levels.
 -- github.com/ept/hermitage
--- github.com/pmwkaa/sophia/blob/master/test/functional/hermitage.test.c
+-- github.com/pmwkaa/phia/blob/master/test/functional/hermitage.test.c
 --
--- Testing Sophia transactional isolation in Tarantool.
+-- Testing Phia transactional isolation in Tarantool.
 --  
 
 run    = false
@@ -38,7 +38,7 @@ function T(c)
 end
 
 function start_test(c)
-	space = box.schema.space.create('tester', {engine='sophia'})
+	space = box.schema.space.create('tester', {engine='phia'})
 	index = space:create_index('primary', {type = 'tree', parts = {1, 'num'}})
 	space:replace{1, 10}
 	space:replace{2, 20}
@@ -150,9 +150,9 @@ function hermitage_otv()
 	stmt(T1, "set(2, 19)")
 	stmt(T2, "set(1, 12)")
 	stmt(T1, "commit(true)") -- ok
-	stmt(T3, "get(1, 11)") -- created on first stmt (different from sophia)
+	stmt(T3, "get(1, 11)") -- created on first stmt (different from phia)
 	stmt(T2, "set(2, 18)") 
-	stmt(T3, "get(2, 19)") -- created on first stmt (different from sophia)
+	stmt(T3, "get(2, 19)") -- created on first stmt (different from phia)
 	stmt(T2, "commit(false)") -- conflict
 	stmt(T3, "get(2, 19)") --
 	stmt(T3, "get(1, 11)") --
@@ -172,7 +172,7 @@ function hermitage_pmp()
 	stmt(T2, "commit(true)") -- ok
 	stmt(T1, "get(1, 10)") -- 10
 	stmt(T1, "get(2, 20)") -- 20
-	stmt(T1, "get(3, 30)") -- 30 is visible because T1 first stmt after T2 commit (different for sophia)
+	stmt(T1, "get(3, 30)") -- 30 is visible because T1 first stmt after T2 commit (different for phia)
 	stmt(T1, "commit(true)") -- ok
 	end_test()
 end
diff --git a/test/sophia/hermitage.result b/test/phia/hermitage.result
similarity index 100%
rename from test/sophia/hermitage.result
rename to test/phia/hermitage.result
diff --git a/test/sophia/hermitage.test.lua b/test/phia/hermitage.test.lua
similarity index 100%
rename from test/sophia/hermitage.test.lua
rename to test/phia/hermitage.test.lua
diff --git a/test/sophia/index_random_test.lua b/test/phia/index_random_test.lua
similarity index 100%
rename from test/sophia/index_random_test.lua
rename to test/phia/index_random_test.lua
diff --git a/test/sophia/monitoring.result b/test/phia/monitoring.result
similarity index 58%
rename from test/sophia/monitoring.result
rename to test/phia/monitoring.result
index 35f969269b..99db3b8f1b 100644
--- a/test/sophia/monitoring.result
+++ b/test/phia/monitoring.result
@@ -1,10 +1,10 @@
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', { type = 'tree', parts = {1, 'str'} })
 ---
 ...
-box.sophia['sophia.version']
+box.phia['phia.version']
 ---
 - 2.1.1
 ...
diff --git a/test/phia/monitoring.test.lua b/test/phia/monitoring.test.lua
new file mode 100644
index 0000000000..634bada95a
--- /dev/null
+++ b/test/phia/monitoring.test.lua
@@ -0,0 +1,5 @@
+
+space = box.schema.space.create('test', { engine = 'phia' })
+index = space:create_index('primary', { type = 'tree', parts = {1, 'str'} })
+box.phia['phia.version']
+space:drop()
diff --git a/test/sophia/options.result b/test/phia/options.result
similarity index 65%
rename from test/sophia/options.result
rename to test/phia/options.result
index e602ea387e..587c4d65c6 100644
--- a/test/sophia/options.result
+++ b/test/phia/options.result
@@ -1,4 +1,4 @@
-box.cfg.sophia
+box.cfg.phia
 ---
 - expire_period: 0
   branch_age_wm: 0
@@ -14,20 +14,20 @@ box.cfg.sophia
   branch_prio: 2
   expire_prio: 0
 ...
-box.cfg.sophia.threads = 5
+box.cfg.phia.threads = 5
 ---
 ...
-space = box.schema.space.create('test', { engine = 'sophia' })
+space = box.schema.space.create('test', { engine = 'phia' })
 ---
 ...
 index = space:create_index('primary', {type = 'tree', amqf=1, read_oldest=0, parts = {1, 'NUM'}})
 ---
 ...
-box.sophia["db.".. tostring(space.id)..":0.amqf"]
+box.phia["db.".. tostring(space.id)..":0.amqf"]
 ---
 - '1'
 ...
-box.sophia["db.".. tostring(space.id)..":0.mmap"]
+box.phia["db.".. tostring(space.id)..":0.mmap"]
 ---
 - '1'
 ...
diff --git a/test/phia/options.test.lua b/test/phia/options.test.lua
new file mode 100644
index 0000000000..00e43a5bf4
--- /dev/null
+++ b/test/phia/options.test.lua
@@ -0,0 +1,9 @@
+
+box.cfg.phia
+box.cfg.phia.threads = 5
+
+space = box.schema.space.create('test', { engine = 'phia' })
+index = space:create_index('primary', {type = 'tree', amqf=1, read_oldest=0, parts = {1, 'NUM'}})
+box.phia["db.".. tostring(space.id)..":0.amqf"]
+box.phia["db.".. tostring(space.id)..":0.mmap"]
+space:drop()
diff --git a/test/sophia/sophia.lua b/test/phia/phia.lua
similarity index 61%
rename from test/sophia/sophia.lua
rename to test/phia/phia.lua
index 5c05a0d216..6b5831c79a 100644
--- a/test/sophia/sophia.lua
+++ b/test/phia/phia.lua
@@ -2,12 +2,12 @@
 
 require('suite')
 
-if not file_exists('./sophia/lock') then
-	sophia_rmdir()
-	sophia_mkdir()
+if not file_exists('./phia/lock') then
+	phia_rmdir()
+	phia_mkdir()
 end
 
-local sophia = {
+local phia = {
 	threads = 3
 }
 
@@ -16,8 +16,8 @@ box.cfg {
     slab_alloc_arena  = 0.1,
 --    pid_file          = "tarantool.pid",
     rows_per_wal      = 50,
-    sophia_dir        = "./sophia/sophia_test",
-    sophia            = sophia
+    phia_dir        = "./phia/phia_test",
+    phia            = phia
 }
 
 require('console').listen(os.getenv('ADMIN'))
diff --git a/test/sophia/suite.ini b/test/phia/suite.ini
similarity index 73%
rename from test/sophia/suite.ini
rename to test/phia/suite.ini
index fa8116915d..62e3f3cdf7 100644
--- a/test/sophia/suite.ini
+++ b/test/phia/suite.ini
@@ -1,7 +1,7 @@
 [default]
 core = tarantool
-description = sophia integration tests
-script = sophia.lua
+description = phia integration tests
+script = phia.lua
 disabled = truncate.test.lua
 valgrind_disabled =
 release_disabled =
diff --git a/test/sophia/suite.lua b/test/phia/suite.lua
similarity index 57%
rename from test/sophia/suite.lua
rename to test/phia/suite.lua
index f3eb05b270..9b5749bbf2 100644
--- a/test/sophia/suite.lua
+++ b/test/phia/suite.lua
@@ -2,12 +2,12 @@
 
 local os = require('os')
 
-function sophia_mkdir(dir)
-	os.execute("mkdir -p ./sophia/sophia_test")
+function phia_mkdir(dir)
+	os.execute("mkdir -p ./phia/phia_test")
 end
 
-function sophia_rmdir(dir)
-	os.execute("rm -rf ./sophia/sophia_test")
+function phia_rmdir(dir)
+	os.execute("rm -rf ./phia/phia_test")
 end
 
 function file_exists(name)
diff --git a/test/sophia/truncate.test.lua b/test/phia/truncate.test.lua
similarity index 74%
rename from test/sophia/truncate.test.lua
rename to test/phia/truncate.test.lua
index 53eba30123..4dab85cd93 100644
--- a/test/sophia/truncate.test.lua
+++ b/test/phia/truncate.test.lua
@@ -1,11 +1,11 @@
 
 -- truncate
 
-s = box.schema.space.create('name_of_space', {engine='sophia'})
+s = box.schema.space.create('name_of_space', {engine='phia'})
 i = s:create_index('name_of_index', {type = 'tree', parts = {1, 'STR'}})
 s:insert{'a', 'b', 'c'}
 box.space['name_of_space']:select{'a'}
 box.space['name_of_space']:truncate()
 box.space['name_of_space']:select{'a'}
 s:drop()
-sophia_schedule()
+phia_schedule()
diff --git a/test/replication-py/swap.result b/test/replication-py/swap.result
index 742da7dcd1..2640b67d6e 100644
--- a/test/replication-py/swap.result
+++ b/test/replication-py/swap.result
@@ -16,7 +16,7 @@ s = box.schema.space.create('memtx', { engine = 'memtx'})
 index = s:create_index('primary', {type = 'tree'})
 ---
 ...
-s = box.schema.space.create('sophia', { engine = 'sophia'})
+s = box.schema.space.create('phia', { engine = 'phia'})
 ---
 ...
 index = s:create_index('primary', {type = 'tree'})
@@ -43,23 +43,23 @@ box.space.memtx:insert{4, "tuple 4"}
 -
 - [4, tuple 4]
 
-box.space.sophia:insert{0, "tuple 0"}
+box.space.phia:insert{0, "tuple 0"}
 -
 []
 
-box.space.sophia:insert{1, "tuple 1"}
+box.space.phia:insert{1, "tuple 1"}
 -
 []
 
-box.space.sophia:insert{2, "tuple 2"}
+box.space.phia:insert{2, "tuple 2"}
 -
 []
 
-box.space.sophia:insert{3, "tuple 3"}
+box.space.phia:insert{3, "tuple 3"}
 -
 []
 
-box.space.sophia:insert{4, "tuple 4"}
+box.space.phia:insert{4, "tuple 4"}
 -
 []
 
@@ -83,23 +83,23 @@ box.space.memtx:select{4}
 -
 - [4, tuple 4]
 
-box.space.sophia:select{0}
+box.space.phia:select{0}
 -
 - [0, tuple 0]
 
-box.space.sophia:select{1}
+box.space.phia:select{1}
 -
 - [1, tuple 1]
 
-box.space.sophia:select{2}
+box.space.phia:select{2}
 -
 - [2, tuple 2]
 
-box.space.sophia:select{3}
+box.space.phia:select{3}
 -
 - [3, tuple 3]
 
-box.space.sophia:select{4}
+box.space.phia:select{4}
 -
 - [4, tuple 4]
 
@@ -123,23 +123,23 @@ box.space.memtx:insert{9, "tuple 9"}
 -
 - [9, tuple 9]
 
-box.space.sophia:insert{5, "tuple 5"}
+box.space.phia:insert{5, "tuple 5"}
 -
 []
 
-box.space.sophia:insert{6, "tuple 6"}
+box.space.phia:insert{6, "tuple 6"}
 -
 []
 
-box.space.sophia:insert{7, "tuple 7"}
+box.space.phia:insert{7, "tuple 7"}
 -
 []
 
-box.space.sophia:insert{8, "tuple 8"}
+box.space.phia:insert{8, "tuple 8"}
 -
 []
 
-box.space.sophia:insert{9, "tuple 9"}
+box.space.phia:insert{9, "tuple 9"}
 -
 []
 
@@ -163,23 +163,23 @@ box.space.memtx:select{9}
 -
 - [9, tuple 9]
 
-box.space.sophia:select{5}
+box.space.phia:select{5}
 -
 - [5, tuple 5]
 
-box.space.sophia:select{6}
+box.space.phia:select{6}
 -
 - [6, tuple 6]
 
-box.space.sophia:select{7}
+box.space.phia:select{7}
 -
 - [7, tuple 7]
 
-box.space.sophia:select{8}
+box.space.phia:select{8}
 -
 - [8, tuple 8]
 
-box.space.sophia:select{9}
+box.space.phia:select{9}
 -
 - [9, tuple 9]
 
@@ -209,23 +209,23 @@ box.space.memtx:insert{14, "tuple 14"}
 -
 - [14, tuple 14]
 
-box.space.sophia:insert{10, "tuple 10"}
+box.space.phia:insert{10, "tuple 10"}
 -
 []
 
-box.space.sophia:insert{11, "tuple 11"}
+box.space.phia:insert{11, "tuple 11"}
 -
 []
 
-box.space.sophia:insert{12, "tuple 12"}
+box.space.phia:insert{12, "tuple 12"}
 -
 []
 
-box.space.sophia:insert{13, "tuple 13"}
+box.space.phia:insert{13, "tuple 13"}
 -
 []
 
-box.space.sophia:insert{14, "tuple 14"}
+box.space.phia:insert{14, "tuple 14"}
 -
 []
 
@@ -249,23 +249,23 @@ box.space.memtx:select{14}
 -
 - [14, tuple 14]
 
-box.space.sophia:select{10}
+box.space.phia:select{10}
 -
 - [10, tuple 10]
 
-box.space.sophia:select{11}
+box.space.phia:select{11}
 -
 - [11, tuple 11]
 
-box.space.sophia:select{12}
+box.space.phia:select{12}
 -
 - [12, tuple 12]
 
-box.space.sophia:select{13}
+box.space.phia:select{13}
 -
 - [13, tuple 13]
 
-box.space.sophia:select{14}
+box.space.phia:select{14}
 -
 - [14, tuple 14]
 
@@ -289,23 +289,23 @@ box.space.memtx:insert{19, "tuple 19"}
 -
 - [19, tuple 19]
 
-box.space.sophia:insert{15, "tuple 15"}
+box.space.phia:insert{15, "tuple 15"}
 -
 []
 
-box.space.sophia:insert{16, "tuple 16"}
+box.space.phia:insert{16, "tuple 16"}
 -
 []
 
-box.space.sophia:insert{17, "tuple 17"}
+box.space.phia:insert{17, "tuple 17"}
 -
 []
 
-box.space.sophia:insert{18, "tuple 18"}
+box.space.phia:insert{18, "tuple 18"}
 -
 []
 
-box.space.sophia:insert{19, "tuple 19"}
+box.space.phia:insert{19, "tuple 19"}
 -
 []
 
@@ -329,23 +329,23 @@ box.space.memtx:select{19}
 -
 - [19, tuple 19]
 
-box.space.sophia:select{15}
+box.space.phia:select{15}
 -
 - [15, tuple 15]
 
-box.space.sophia:select{16}
+box.space.phia:select{16}
 -
 - [16, tuple 16]
 
-box.space.sophia:select{17}
+box.space.phia:select{17}
 -
 - [17, tuple 17]
 
-box.space.sophia:select{18}
+box.space.phia:select{18}
 -
 - [18, tuple 18]
 
-box.space.sophia:select{19}
+box.space.phia:select{19}
 -
 - [19, tuple 19]
 
@@ -376,23 +376,23 @@ box.space.memtx:insert{24, "tuple 24"}
 -
 - [24, tuple 24]
 
-box.space.sophia:insert{20, "tuple 20"}
+box.space.phia:insert{20, "tuple 20"}
 -
 []
 
-box.space.sophia:insert{21, "tuple 21"}
+box.space.phia:insert{21, "tuple 21"}
 -
 []
 
-box.space.sophia:insert{22, "tuple 22"}
+box.space.phia:insert{22, "tuple 22"}
 -
 []
 
-box.space.sophia:insert{23, "tuple 23"}
+box.space.phia:insert{23, "tuple 23"}
 -
 []
 
-box.space.sophia:insert{24, "tuple 24"}
+box.space.phia:insert{24, "tuple 24"}
 -
 []
 
@@ -416,23 +416,23 @@ box.space.memtx:select{24}
 -
 - [24, tuple 24]
 
-box.space.sophia:select{20}
+box.space.phia:select{20}
 -
 - [20, tuple 20]
 
-box.space.sophia:select{21}
+box.space.phia:select{21}
 -
 - [21, tuple 21]
 
-box.space.sophia:select{22}
+box.space.phia:select{22}
 -
 - [22, tuple 22]
 
-box.space.sophia:select{23}
+box.space.phia:select{23}
 -
 - [23, tuple 23]
 
-box.space.sophia:select{24}
+box.space.phia:select{24}
 -
 - [24, tuple 24]
 
@@ -456,23 +456,23 @@ box.space.memtx:insert{29, "tuple 29"}
 -
 - [29, tuple 29]
 
-box.space.sophia:insert{25, "tuple 25"}
+box.space.phia:insert{25, "tuple 25"}
 -
 []
 
-box.space.sophia:insert{26, "tuple 26"}
+box.space.phia:insert{26, "tuple 26"}
 -
 []
 
-box.space.sophia:insert{27, "tuple 27"}
+box.space.phia:insert{27, "tuple 27"}
 -
 []
 
-box.space.sophia:insert{28, "tuple 28"}
+box.space.phia:insert{28, "tuple 28"}
 -
 []
 
-box.space.sophia:insert{29, "tuple 29"}
+box.space.phia:insert{29, "tuple 29"}
 -
 []
 
@@ -496,23 +496,23 @@ box.space.memtx:select{29}
 -
 - [29, tuple 29]
 
-box.space.sophia:select{25}
+box.space.phia:select{25}
 -
 - [25, tuple 25]
 
-box.space.sophia:select{26}
+box.space.phia:select{26}
 -
 - [26, tuple 26]
 
-box.space.sophia:select{27}
+box.space.phia:select{27}
 -
 - [27, tuple 27]
 
-box.space.sophia:select{28}
+box.space.phia:select{28}
 -
 - [28, tuple 28]
 
-box.space.sophia:select{29}
+box.space.phia:select{29}
 -
 - [29, tuple 29]
 
@@ -542,23 +542,23 @@ box.space.memtx:insert{34, "tuple 34"}
 -
 - [34, tuple 34]
 
-box.space.sophia:insert{30, "tuple 30"}
+box.space.phia:insert{30, "tuple 30"}
 -
 []
 
-box.space.sophia:insert{31, "tuple 31"}
+box.space.phia:insert{31, "tuple 31"}
 -
 []
 
-box.space.sophia:insert{32, "tuple 32"}
+box.space.phia:insert{32, "tuple 32"}
 -
 []
 
-box.space.sophia:insert{33, "tuple 33"}
+box.space.phia:insert{33, "tuple 33"}
 -
 []
 
-box.space.sophia:insert{34, "tuple 34"}
+box.space.phia:insert{34, "tuple 34"}
 -
 []
 
@@ -582,23 +582,23 @@ box.space.memtx:select{34}
 -
 - [34, tuple 34]
 
-box.space.sophia:select{30}
+box.space.phia:select{30}
 -
 - [30, tuple 30]
 
-box.space.sophia:select{31}
+box.space.phia:select{31}
 -
 - [31, tuple 31]
 
-box.space.sophia:select{32}
+box.space.phia:select{32}
 -
 - [32, tuple 32]
 
-box.space.sophia:select{33}
+box.space.phia:select{33}
 -
 - [33, tuple 33]
 
-box.space.sophia:select{34}
+box.space.phia:select{34}
 -
 - [34, tuple 34]
 
@@ -622,23 +622,23 @@ box.space.memtx:insert{39, "tuple 39"}
 -
 - [39, tuple 39]
 
-box.space.sophia:insert{35, "tuple 35"}
+box.space.phia:insert{35, "tuple 35"}
 -
 []
 
-box.space.sophia:insert{36, "tuple 36"}
+box.space.phia:insert{36, "tuple 36"}
 -
 []
 
-box.space.sophia:insert{37, "tuple 37"}
+box.space.phia:insert{37, "tuple 37"}
 -
 []
 
-box.space.sophia:insert{38, "tuple 38"}
+box.space.phia:insert{38, "tuple 38"}
 -
 []
 
-box.space.sophia:insert{39, "tuple 39"}
+box.space.phia:insert{39, "tuple 39"}
 -
 []
 
@@ -662,23 +662,23 @@ box.space.memtx:select{39}
 -
 - [39, tuple 39]
 
-box.space.sophia:select{35}
+box.space.phia:select{35}
 -
 - [35, tuple 35]
 
-box.space.sophia:select{36}
+box.space.phia:select{36}
 -
 - [36, tuple 36]
 
-box.space.sophia:select{37}
+box.space.phia:select{37}
 -
 - [37, tuple 37]
 
-box.space.sophia:select{38}
+box.space.phia:select{38}
 -
 - [38, tuple 38]
 
-box.space.sophia:select{39}
+box.space.phia:select{39}
 -
 - [39, tuple 39]
 
@@ -709,23 +709,23 @@ box.space.memtx:insert{44, "tuple 44"}
 -
 - [44, tuple 44]
 
-box.space.sophia:insert{40, "tuple 40"}
+box.space.phia:insert{40, "tuple 40"}
 -
 []
 
-box.space.sophia:insert{41, "tuple 41"}
+box.space.phia:insert{41, "tuple 41"}
 -
 []
 
-box.space.sophia:insert{42, "tuple 42"}
+box.space.phia:insert{42, "tuple 42"}
 -
 []
 
-box.space.sophia:insert{43, "tuple 43"}
+box.space.phia:insert{43, "tuple 43"}
 -
 []
 
-box.space.sophia:insert{44, "tuple 44"}
+box.space.phia:insert{44, "tuple 44"}
 -
 []
 
@@ -749,23 +749,23 @@ box.space.memtx:select{44}
 -
 - [44, tuple 44]
 
-box.space.sophia:select{40}
+box.space.phia:select{40}
 -
 - [40, tuple 40]
 
-box.space.sophia:select{41}
+box.space.phia:select{41}
 -
 - [41, tuple 41]
 
-box.space.sophia:select{42}
+box.space.phia:select{42}
 -
 - [42, tuple 42]
 
-box.space.sophia:select{43}
+box.space.phia:select{43}
 -
 - [43, tuple 43]
 
-box.space.sophia:select{44}
+box.space.phia:select{44}
 -
 - [44, tuple 44]
 
@@ -789,23 +789,23 @@ box.space.memtx:insert{49, "tuple 49"}
 -
 - [49, tuple 49]
 
-box.space.sophia:insert{45, "tuple 45"}
+box.space.phia:insert{45, "tuple 45"}
 -
 []
 
-box.space.sophia:insert{46, "tuple 46"}
+box.space.phia:insert{46, "tuple 46"}
 -
 []
 
-box.space.sophia:insert{47, "tuple 47"}
+box.space.phia:insert{47, "tuple 47"}
 -
 []
 
-box.space.sophia:insert{48, "tuple 48"}
+box.space.phia:insert{48, "tuple 48"}
 -
 []
 
-box.space.sophia:insert{49, "tuple 49"}
+box.space.phia:insert{49, "tuple 49"}
 -
 []
 
@@ -829,23 +829,23 @@ box.space.memtx:select{49}
 -
 - [49, tuple 49]
 
-box.space.sophia:select{45}
+box.space.phia:select{45}
 -
 - [45, tuple 45]
 
-box.space.sophia:select{46}
+box.space.phia:select{46}
 -
 - [46, tuple 46]
 
-box.space.sophia:select{47}
+box.space.phia:select{47}
 -
 - [47, tuple 47]
 
-box.space.sophia:select{48}
+box.space.phia:select{48}
 -
 - [48, tuple 48]
 
-box.space.sophia:select{49}
+box.space.phia:select{49}
 -
 - [49, tuple 49]
 
@@ -875,23 +875,23 @@ box.space.memtx:insert{54, "tuple 54"}
 -
 - [54, tuple 54]
 
-box.space.sophia:insert{50, "tuple 50"}
+box.space.phia:insert{50, "tuple 50"}
 -
 []
 
-box.space.sophia:insert{51, "tuple 51"}
+box.space.phia:insert{51, "tuple 51"}
 -
 []
 
-box.space.sophia:insert{52, "tuple 52"}
+box.space.phia:insert{52, "tuple 52"}
 -
 []
 
-box.space.sophia:insert{53, "tuple 53"}
+box.space.phia:insert{53, "tuple 53"}
 -
 []
 
-box.space.sophia:insert{54, "tuple 54"}
+box.space.phia:insert{54, "tuple 54"}
 -
 []
 
@@ -915,23 +915,23 @@ box.space.memtx:select{54}
 -
 - [54, tuple 54]
 
-box.space.sophia:select{50}
+box.space.phia:select{50}
 -
 - [50, tuple 50]
 
-box.space.sophia:select{51}
+box.space.phia:select{51}
 -
 - [51, tuple 51]
 
-box.space.sophia:select{52}
+box.space.phia:select{52}
 -
 - [52, tuple 52]
 
-box.space.sophia:select{53}
+box.space.phia:select{53}
 -
 - [53, tuple 53]
 
-box.space.sophia:select{54}
+box.space.phia:select{54}
 -
 - [54, tuple 54]
 
@@ -955,23 +955,23 @@ box.space.memtx:insert{59, "tuple 59"}
 -
 - [59, tuple 59]
 
-box.space.sophia:insert{55, "tuple 55"}
+box.space.phia:insert{55, "tuple 55"}
 -
 []
 
-box.space.sophia:insert{56, "tuple 56"}
+box.space.phia:insert{56, "tuple 56"}
 -
 []
 
-box.space.sophia:insert{57, "tuple 57"}
+box.space.phia:insert{57, "tuple 57"}
 -
 []
 
-box.space.sophia:insert{58, "tuple 58"}
+box.space.phia:insert{58, "tuple 58"}
 -
 []
 
-box.space.sophia:insert{59, "tuple 59"}
+box.space.phia:insert{59, "tuple 59"}
 -
 []
 
@@ -995,23 +995,23 @@ box.space.memtx:select{59}
 -
 - [59, tuple 59]
 
-box.space.sophia:select{55}
+box.space.phia:select{55}
 -
 - [55, tuple 55]
 
-box.space.sophia:select{56}
+box.space.phia:select{56}
 -
 - [56, tuple 56]
 
-box.space.sophia:select{57}
+box.space.phia:select{57}
 -
 - [57, tuple 57]
 
-box.space.sophia:select{58}
+box.space.phia:select{58}
 -
 - [58, tuple 58]
 
-box.space.sophia:select{59}
+box.space.phia:select{59}
 -
 - [59, tuple 59]
 
@@ -1042,23 +1042,23 @@ box.space.memtx:insert{64, "tuple 64"}
 -
 - [64, tuple 64]
 
-box.space.sophia:insert{60, "tuple 60"}
+box.space.phia:insert{60, "tuple 60"}
 -
 []
 
-box.space.sophia:insert{61, "tuple 61"}
+box.space.phia:insert{61, "tuple 61"}
 -
 []
 
-box.space.sophia:insert{62, "tuple 62"}
+box.space.phia:insert{62, "tuple 62"}
 -
 []
 
-box.space.sophia:insert{63, "tuple 63"}
+box.space.phia:insert{63, "tuple 63"}
 -
 []
 
-box.space.sophia:insert{64, "tuple 64"}
+box.space.phia:insert{64, "tuple 64"}
 -
 []
 
@@ -1082,23 +1082,23 @@ box.space.memtx:select{64}
 -
 - [64, tuple 64]
 
-box.space.sophia:select{60}
+box.space.phia:select{60}
 -
 - [60, tuple 60]
 
-box.space.sophia:select{61}
+box.space.phia:select{61}
 -
 - [61, tuple 61]
 
-box.space.sophia:select{62}
+box.space.phia:select{62}
 -
 - [62, tuple 62]
 
-box.space.sophia:select{63}
+box.space.phia:select{63}
 -
 - [63, tuple 63]
 
-box.space.sophia:select{64}
+box.space.phia:select{64}
 -
 - [64, tuple 64]
 
@@ -1122,23 +1122,23 @@ box.space.memtx:insert{69, "tuple 69"}
 -
 - [69, tuple 69]
 
-box.space.sophia:insert{65, "tuple 65"}
+box.space.phia:insert{65, "tuple 65"}
 -
 []
 
-box.space.sophia:insert{66, "tuple 66"}
+box.space.phia:insert{66, "tuple 66"}
 -
 []
 
-box.space.sophia:insert{67, "tuple 67"}
+box.space.phia:insert{67, "tuple 67"}
 -
 []
 
-box.space.sophia:insert{68, "tuple 68"}
+box.space.phia:insert{68, "tuple 68"}
 -
 []
 
-box.space.sophia:insert{69, "tuple 69"}
+box.space.phia:insert{69, "tuple 69"}
 -
 []
 
@@ -1162,23 +1162,23 @@ box.space.memtx:select{69}
 -
 - [69, tuple 69]
 
-box.space.sophia:select{65}
+box.space.phia:select{65}
 -
 - [65, tuple 65]
 
-box.space.sophia:select{66}
+box.space.phia:select{66}
 -
 - [66, tuple 66]
 
-box.space.sophia:select{67}
+box.space.phia:select{67}
 -
 - [67, tuple 67]
 
-box.space.sophia:select{68}
+box.space.phia:select{68}
 -
 - [68, tuple 68]
 
-box.space.sophia:select{69}
+box.space.phia:select{69}
 -
 - [69, tuple 69]
 
@@ -1208,23 +1208,23 @@ box.space.memtx:insert{74, "tuple 74"}
 -
 - [74, tuple 74]
 
-box.space.sophia:insert{70, "tuple 70"}
+box.space.phia:insert{70, "tuple 70"}
 -
 []
 
-box.space.sophia:insert{71, "tuple 71"}
+box.space.phia:insert{71, "tuple 71"}
 -
 []
 
-box.space.sophia:insert{72, "tuple 72"}
+box.space.phia:insert{72, "tuple 72"}
 -
 []
 
-box.space.sophia:insert{73, "tuple 73"}
+box.space.phia:insert{73, "tuple 73"}
 -
 []
 
-box.space.sophia:insert{74, "tuple 74"}
+box.space.phia:insert{74, "tuple 74"}
 -
 []
 
@@ -1248,23 +1248,23 @@ box.space.memtx:select{74}
 -
 - [74, tuple 74]
 
-box.space.sophia:select{70}
+box.space.phia:select{70}
 -
 - [70, tuple 70]
 
-box.space.sophia:select{71}
+box.space.phia:select{71}
 -
 - [71, tuple 71]
 
-box.space.sophia:select{72}
+box.space.phia:select{72}
 -
 - [72, tuple 72]
 
-box.space.sophia:select{73}
+box.space.phia:select{73}
 -
 - [73, tuple 73]
 
-box.space.sophia:select{74}
+box.space.phia:select{74}
 -
 - [74, tuple 74]
 
@@ -1288,23 +1288,23 @@ box.space.memtx:insert{79, "tuple 79"}
 -
 - [79, tuple 79]
 
-box.space.sophia:insert{75, "tuple 75"}
+box.space.phia:insert{75, "tuple 75"}
 -
 []
 
-box.space.sophia:insert{76, "tuple 76"}
+box.space.phia:insert{76, "tuple 76"}
 -
 []
 
-box.space.sophia:insert{77, "tuple 77"}
+box.space.phia:insert{77, "tuple 77"}
 -
 []
 
-box.space.sophia:insert{78, "tuple 78"}
+box.space.phia:insert{78, "tuple 78"}
 -
 []
 
-box.space.sophia:insert{79, "tuple 79"}
+box.space.phia:insert{79, "tuple 79"}
 -
 []
 
@@ -1328,23 +1328,23 @@ box.space.memtx:select{79}
 -
 - [79, tuple 79]
 
-box.space.sophia:select{75}
+box.space.phia:select{75}
 -
 - [75, tuple 75]
 
-box.space.sophia:select{76}
+box.space.phia:select{76}
 -
 - [76, tuple 76]
 
-box.space.sophia:select{77}
+box.space.phia:select{77}
 -
 - [77, tuple 77]
 
-box.space.sophia:select{78}
+box.space.phia:select{78}
 -
 - [78, tuple 78]
 
-box.space.sophia:select{79}
+box.space.phia:select{79}
 -
 - [79, tuple 79]
 
@@ -1375,23 +1375,23 @@ box.space.memtx:insert{84, "tuple 84"}
 -
 - [84, tuple 84]
 
-box.space.sophia:insert{80, "tuple 80"}
+box.space.phia:insert{80, "tuple 80"}
 -
 []
 
-box.space.sophia:insert{81, "tuple 81"}
+box.space.phia:insert{81, "tuple 81"}
 -
 []
 
-box.space.sophia:insert{82, "tuple 82"}
+box.space.phia:insert{82, "tuple 82"}
 -
 []
 
-box.space.sophia:insert{83, "tuple 83"}
+box.space.phia:insert{83, "tuple 83"}
 -
 []
 
-box.space.sophia:insert{84, "tuple 84"}
+box.space.phia:insert{84, "tuple 84"}
 -
 []
 
@@ -1415,23 +1415,23 @@ box.space.memtx:select{84}
 -
 - [84, tuple 84]
 
-box.space.sophia:select{80}
+box.space.phia:select{80}
 -
 - [80, tuple 80]
 
-box.space.sophia:select{81}
+box.space.phia:select{81}
 -
 - [81, tuple 81]
 
-box.space.sophia:select{82}
+box.space.phia:select{82}
 -
 - [82, tuple 82]
 
-box.space.sophia:select{83}
+box.space.phia:select{83}
 -
 - [83, tuple 83]
 
-box.space.sophia:select{84}
+box.space.phia:select{84}
 -
 - [84, tuple 84]
 
@@ -1455,23 +1455,23 @@ box.space.memtx:insert{89, "tuple 89"}
 -
 - [89, tuple 89]
 
-box.space.sophia:insert{85, "tuple 85"}
+box.space.phia:insert{85, "tuple 85"}
 -
 []
 
-box.space.sophia:insert{86, "tuple 86"}
+box.space.phia:insert{86, "tuple 86"}
 -
 []
 
-box.space.sophia:insert{87, "tuple 87"}
+box.space.phia:insert{87, "tuple 87"}
 -
 []
 
-box.space.sophia:insert{88, "tuple 88"}
+box.space.phia:insert{88, "tuple 88"}
 -
 []
 
-box.space.sophia:insert{89, "tuple 89"}
+box.space.phia:insert{89, "tuple 89"}
 -
 []
 
@@ -1495,23 +1495,23 @@ box.space.memtx:select{89}
 -
 - [89, tuple 89]
 
-box.space.sophia:select{85}
+box.space.phia:select{85}
 -
 - [85, tuple 85]
 
-box.space.sophia:select{86}
+box.space.phia:select{86}
 -
 - [86, tuple 86]
 
-box.space.sophia:select{87}
+box.space.phia:select{87}
 -
 - [87, tuple 87]
 
-box.space.sophia:select{88}
+box.space.phia:select{88}
 -
 - [88, tuple 88]
 
-box.space.sophia:select{89}
+box.space.phia:select{89}
 -
 - [89, tuple 89]
 
@@ -1541,23 +1541,23 @@ box.space.memtx:insert{94, "tuple 94"}
 -
 - [94, tuple 94]
 
-box.space.sophia:insert{90, "tuple 90"}
+box.space.phia:insert{90, "tuple 90"}
 -
 []
 
-box.space.sophia:insert{91, "tuple 91"}
+box.space.phia:insert{91, "tuple 91"}
 -
 []
 
-box.space.sophia:insert{92, "tuple 92"}
+box.space.phia:insert{92, "tuple 92"}
 -
 []
 
-box.space.sophia:insert{93, "tuple 93"}
+box.space.phia:insert{93, "tuple 93"}
 -
 []
 
-box.space.sophia:insert{94, "tuple 94"}
+box.space.phia:insert{94, "tuple 94"}
 -
 []
 
@@ -1581,23 +1581,23 @@ box.space.memtx:select{94}
 -
 - [94, tuple 94]
 
-box.space.sophia:select{90}
+box.space.phia:select{90}
 -
 - [90, tuple 90]
 
-box.space.sophia:select{91}
+box.space.phia:select{91}
 -
 - [91, tuple 91]
 
-box.space.sophia:select{92}
+box.space.phia:select{92}
 -
 - [92, tuple 92]
 
-box.space.sophia:select{93}
+box.space.phia:select{93}
 -
 - [93, tuple 93]
 
-box.space.sophia:select{94}
+box.space.phia:select{94}
 -
 - [94, tuple 94]
 
@@ -1621,23 +1621,23 @@ box.space.memtx:insert{99, "tuple 99"}
 -
 - [99, tuple 99]
 
-box.space.sophia:insert{95, "tuple 95"}
+box.space.phia:insert{95, "tuple 95"}
 -
 []
 
-box.space.sophia:insert{96, "tuple 96"}
+box.space.phia:insert{96, "tuple 96"}
 -
 []
 
-box.space.sophia:insert{97, "tuple 97"}
+box.space.phia:insert{97, "tuple 97"}
 -
 []
 
-box.space.sophia:insert{98, "tuple 98"}
+box.space.phia:insert{98, "tuple 98"}
 -
 []
 
-box.space.sophia:insert{99, "tuple 99"}
+box.space.phia:insert{99, "tuple 99"}
 -
 []
 
@@ -1661,23 +1661,23 @@ box.space.memtx:select{99}
 -
 - [99, tuple 99]
 
-box.space.sophia:select{95}
+box.space.phia:select{95}
 -
 - [95, tuple 95]
 
-box.space.sophia:select{96}
+box.space.phia:select{96}
 -
 - [96, tuple 96]
 
-box.space.sophia:select{97}
+box.space.phia:select{97}
 -
 - [97, tuple 97]
 
-box.space.sophia:select{98}
+box.space.phia:select{98}
 -
 - [98, tuple 98]
 
-box.space.sophia:select{99}
+box.space.phia:select{99}
 -
 - [99, tuple 99]
 
@@ -1708,23 +1708,23 @@ box.space.memtx:insert{104, "tuple 104"}
 -
 - [104, tuple 104]
 
-box.space.sophia:insert{100, "tuple 100"}
+box.space.phia:insert{100, "tuple 100"}
 -
 []
 
-box.space.sophia:insert{101, "tuple 101"}
+box.space.phia:insert{101, "tuple 101"}
 -
 []
 
-box.space.sophia:insert{102, "tuple 102"}
+box.space.phia:insert{102, "tuple 102"}
 -
 []
 
-box.space.sophia:insert{103, "tuple 103"}
+box.space.phia:insert{103, "tuple 103"}
 -
 []
 
-box.space.sophia:insert{104, "tuple 104"}
+box.space.phia:insert{104, "tuple 104"}
 -
 []
 
@@ -1748,23 +1748,23 @@ box.space.memtx:select{104}
 -
 - [104, tuple 104]
 
-box.space.sophia:select{100}
+box.space.phia:select{100}
 -
 - [100, tuple 100]
 
-box.space.sophia:select{101}
+box.space.phia:select{101}
 -
 - [101, tuple 101]
 
-box.space.sophia:select{102}
+box.space.phia:select{102}
 -
 - [102, tuple 102]
 
-box.space.sophia:select{103}
+box.space.phia:select{103}
 -
 - [103, tuple 103]
 
-box.space.sophia:select{104}
+box.space.phia:select{104}
 -
 - [104, tuple 104]
 
@@ -1788,23 +1788,23 @@ box.space.memtx:insert{109, "tuple 109"}
 -
 - [109, tuple 109]
 
-box.space.sophia:insert{105, "tuple 105"}
+box.space.phia:insert{105, "tuple 105"}
 -
 []
 
-box.space.sophia:insert{106, "tuple 106"}
+box.space.phia:insert{106, "tuple 106"}
 -
 []
 
-box.space.sophia:insert{107, "tuple 107"}
+box.space.phia:insert{107, "tuple 107"}
 -
 []
 
-box.space.sophia:insert{108, "tuple 108"}
+box.space.phia:insert{108, "tuple 108"}
 -
 []
 
-box.space.sophia:insert{109, "tuple 109"}
+box.space.phia:insert{109, "tuple 109"}
 -
 []
 
@@ -1828,23 +1828,23 @@ box.space.memtx:select{109}
 -
 - [109, tuple 109]
 
-box.space.sophia:select{105}
+box.space.phia:select{105}
 -
 - [105, tuple 105]
 
-box.space.sophia:select{106}
+box.space.phia:select{106}
 -
 - [106, tuple 106]
 
-box.space.sophia:select{107}
+box.space.phia:select{107}
 -
 - [107, tuple 107]
 
-box.space.sophia:select{108}
+box.space.phia:select{108}
 -
 - [108, tuple 108]
 
-box.space.sophia:select{109}
+box.space.phia:select{109}
 -
 - [109, tuple 109]
 
@@ -1874,23 +1874,23 @@ box.space.memtx:insert{114, "tuple 114"}
 -
 - [114, tuple 114]
 
-box.space.sophia:insert{110, "tuple 110"}
+box.space.phia:insert{110, "tuple 110"}
 -
 []
 
-box.space.sophia:insert{111, "tuple 111"}
+box.space.phia:insert{111, "tuple 111"}
 -
 []
 
-box.space.sophia:insert{112, "tuple 112"}
+box.space.phia:insert{112, "tuple 112"}
 -
 []
 
-box.space.sophia:insert{113, "tuple 113"}
+box.space.phia:insert{113, "tuple 113"}
 -
 []
 
-box.space.sophia:insert{114, "tuple 114"}
+box.space.phia:insert{114, "tuple 114"}
 -
 []
 
@@ -1914,23 +1914,23 @@ box.space.memtx:select{114}
 -
 - [114, tuple 114]
 
-box.space.sophia:select{110}
+box.space.phia:select{110}
 -
 - [110, tuple 110]
 
-box.space.sophia:select{111}
+box.space.phia:select{111}
 -
 - [111, tuple 111]
 
-box.space.sophia:select{112}
+box.space.phia:select{112}
 -
 - [112, tuple 112]
 
-box.space.sophia:select{113}
+box.space.phia:select{113}
 -
 - [113, tuple 113]
 
-box.space.sophia:select{114}
+box.space.phia:select{114}
 -
 - [114, tuple 114]
 
@@ -1954,23 +1954,23 @@ box.space.memtx:insert{119, "tuple 119"}
 -
 - [119, tuple 119]
 
-box.space.sophia:insert{115, "tuple 115"}
+box.space.phia:insert{115, "tuple 115"}
 -
 []
 
-box.space.sophia:insert{116, "tuple 116"}
+box.space.phia:insert{116, "tuple 116"}
 -
 []
 
-box.space.sophia:insert{117, "tuple 117"}
+box.space.phia:insert{117, "tuple 117"}
 -
 []
 
-box.space.sophia:insert{118, "tuple 118"}
+box.space.phia:insert{118, "tuple 118"}
 -
 []
 
-box.space.sophia:insert{119, "tuple 119"}
+box.space.phia:insert{119, "tuple 119"}
 -
 []
 
@@ -1994,23 +1994,23 @@ box.space.memtx:select{119}
 -
 - [119, tuple 119]
 
-box.space.sophia:select{115}
+box.space.phia:select{115}
 -
 - [115, tuple 115]
 
-box.space.sophia:select{116}
+box.space.phia:select{116}
 -
 - [116, tuple 116]
 
-box.space.sophia:select{117}
+box.space.phia:select{117}
 -
 - [117, tuple 117]
 
-box.space.sophia:select{118}
+box.space.phia:select{118}
 -
 - [118, tuple 118]
 
-box.space.sophia:select{119}
+box.space.phia:select{119}
 -
 - [119, tuple 119]
 
@@ -2041,23 +2041,23 @@ box.space.memtx:insert{124, "tuple 124"}
 -
 - [124, tuple 124]
 
-box.space.sophia:insert{120, "tuple 120"}
+box.space.phia:insert{120, "tuple 120"}
 -
 []
 
-box.space.sophia:insert{121, "tuple 121"}
+box.space.phia:insert{121, "tuple 121"}
 -
 []
 
-box.space.sophia:insert{122, "tuple 122"}
+box.space.phia:insert{122, "tuple 122"}
 -
 []
 
-box.space.sophia:insert{123, "tuple 123"}
+box.space.phia:insert{123, "tuple 123"}
 -
 []
 
-box.space.sophia:insert{124, "tuple 124"}
+box.space.phia:insert{124, "tuple 124"}
 -
 []
 
@@ -2081,23 +2081,23 @@ box.space.memtx:select{124}
 -
 - [124, tuple 124]
 
-box.space.sophia:select{120}
+box.space.phia:select{120}
 -
 - [120, tuple 120]
 
-box.space.sophia:select{121}
+box.space.phia:select{121}
 -
 - [121, tuple 121]
 
-box.space.sophia:select{122}
+box.space.phia:select{122}
 -
 - [122, tuple 122]
 
-box.space.sophia:select{123}
+box.space.phia:select{123}
 -
 - [123, tuple 123]
 
-box.space.sophia:select{124}
+box.space.phia:select{124}
 -
 - [124, tuple 124]
 
@@ -2121,23 +2121,23 @@ box.space.memtx:insert{129, "tuple 129"}
 -
 - [129, tuple 129]
 
-box.space.sophia:insert{125, "tuple 125"}
+box.space.phia:insert{125, "tuple 125"}
 -
 []
 
-box.space.sophia:insert{126, "tuple 126"}
+box.space.phia:insert{126, "tuple 126"}
 -
 []
 
-box.space.sophia:insert{127, "tuple 127"}
+box.space.phia:insert{127, "tuple 127"}
 -
 []
 
-box.space.sophia:insert{128, "tuple 128"}
+box.space.phia:insert{128, "tuple 128"}
 -
 []
 
-box.space.sophia:insert{129, "tuple 129"}
+box.space.phia:insert{129, "tuple 129"}
 -
 []
 
@@ -2161,23 +2161,23 @@ box.space.memtx:select{129}
 -
 - [129, tuple 129]
 
-box.space.sophia:select{125}
+box.space.phia:select{125}
 -
 - [125, tuple 125]
 
-box.space.sophia:select{126}
+box.space.phia:select{126}
 -
 - [126, tuple 126]
 
-box.space.sophia:select{127}
+box.space.phia:select{127}
 -
 - [127, tuple 127]
 
-box.space.sophia:select{128}
+box.space.phia:select{128}
 -
 - [128, tuple 128]
 
-box.space.sophia:select{129}
+box.space.phia:select{129}
 -
 - [129, tuple 129]
 
@@ -2207,23 +2207,23 @@ box.space.memtx:insert{134, "tuple 134"}
 -
 - [134, tuple 134]
 
-box.space.sophia:insert{130, "tuple 130"}
+box.space.phia:insert{130, "tuple 130"}
 -
 []
 
-box.space.sophia:insert{131, "tuple 131"}
+box.space.phia:insert{131, "tuple 131"}
 -
 []
 
-box.space.sophia:insert{132, "tuple 132"}
+box.space.phia:insert{132, "tuple 132"}
 -
 []
 
-box.space.sophia:insert{133, "tuple 133"}
+box.space.phia:insert{133, "tuple 133"}
 -
 []
 
-box.space.sophia:insert{134, "tuple 134"}
+box.space.phia:insert{134, "tuple 134"}
 -
 []
 
@@ -2247,23 +2247,23 @@ box.space.memtx:select{134}
 -
 - [134, tuple 134]
 
-box.space.sophia:select{130}
+box.space.phia:select{130}
 -
 - [130, tuple 130]
 
-box.space.sophia:select{131}
+box.space.phia:select{131}
 -
 - [131, tuple 131]
 
-box.space.sophia:select{132}
+box.space.phia:select{132}
 -
 - [132, tuple 132]
 
-box.space.sophia:select{133}
+box.space.phia:select{133}
 -
 - [133, tuple 133]
 
-box.space.sophia:select{134}
+box.space.phia:select{134}
 -
 - [134, tuple 134]
 
@@ -2287,23 +2287,23 @@ box.space.memtx:insert{139, "tuple 139"}
 -
 - [139, tuple 139]
 
-box.space.sophia:insert{135, "tuple 135"}
+box.space.phia:insert{135, "tuple 135"}
 -
 []
 
-box.space.sophia:insert{136, "tuple 136"}
+box.space.phia:insert{136, "tuple 136"}
 -
 []
 
-box.space.sophia:insert{137, "tuple 137"}
+box.space.phia:insert{137, "tuple 137"}
 -
 []
 
-box.space.sophia:insert{138, "tuple 138"}
+box.space.phia:insert{138, "tuple 138"}
 -
 []
 
-box.space.sophia:insert{139, "tuple 139"}
+box.space.phia:insert{139, "tuple 139"}
 -
 []
 
@@ -2327,23 +2327,23 @@ box.space.memtx:select{139}
 -
 - [139, tuple 139]
 
-box.space.sophia:select{135}
+box.space.phia:select{135}
 -
 - [135, tuple 135]
 
-box.space.sophia:select{136}
+box.space.phia:select{136}
 -
 - [136, tuple 136]
 
-box.space.sophia:select{137}
+box.space.phia:select{137}
 -
 - [137, tuple 137]
 
-box.space.sophia:select{138}
+box.space.phia:select{138}
 -
 - [138, tuple 138]
 
-box.space.sophia:select{139}
+box.space.phia:select{139}
 -
 - [139, tuple 139]
 
@@ -2374,23 +2374,23 @@ box.space.memtx:insert{144, "tuple 144"}
 -
 - [144, tuple 144]
 
-box.space.sophia:insert{140, "tuple 140"}
+box.space.phia:insert{140, "tuple 140"}
 -
 []
 
-box.space.sophia:insert{141, "tuple 141"}
+box.space.phia:insert{141, "tuple 141"}
 -
 []
 
-box.space.sophia:insert{142, "tuple 142"}
+box.space.phia:insert{142, "tuple 142"}
 -
 []
 
-box.space.sophia:insert{143, "tuple 143"}
+box.space.phia:insert{143, "tuple 143"}
 -
 []
 
-box.space.sophia:insert{144, "tuple 144"}
+box.space.phia:insert{144, "tuple 144"}
 -
 []
 
@@ -2414,23 +2414,23 @@ box.space.memtx:select{144}
 -
 - [144, tuple 144]
 
-box.space.sophia:select{140}
+box.space.phia:select{140}
 -
 - [140, tuple 140]
 
-box.space.sophia:select{141}
+box.space.phia:select{141}
 -
 - [141, tuple 141]
 
-box.space.sophia:select{142}
+box.space.phia:select{142}
 -
 - [142, tuple 142]
 
-box.space.sophia:select{143}
+box.space.phia:select{143}
 -
 - [143, tuple 143]
 
-box.space.sophia:select{144}
+box.space.phia:select{144}
 -
 - [144, tuple 144]
 
@@ -2454,23 +2454,23 @@ box.space.memtx:insert{149, "tuple 149"}
 -
 - [149, tuple 149]
 
-box.space.sophia:insert{145, "tuple 145"}
+box.space.phia:insert{145, "tuple 145"}
 -
 []
 
-box.space.sophia:insert{146, "tuple 146"}
+box.space.phia:insert{146, "tuple 146"}
 -
 []
 
-box.space.sophia:insert{147, "tuple 147"}
+box.space.phia:insert{147, "tuple 147"}
 -
 []
 
-box.space.sophia:insert{148, "tuple 148"}
+box.space.phia:insert{148, "tuple 148"}
 -
 []
 
-box.space.sophia:insert{149, "tuple 149"}
+box.space.phia:insert{149, "tuple 149"}
 -
 []
 
@@ -2494,23 +2494,23 @@ box.space.memtx:select{149}
 -
 - [149, tuple 149]
 
-box.space.sophia:select{145}
+box.space.phia:select{145}
 -
 - [145, tuple 145]
 
-box.space.sophia:select{146}
+box.space.phia:select{146}
 -
 - [146, tuple 146]
 
-box.space.sophia:select{147}
+box.space.phia:select{147}
 -
 - [147, tuple 147]
 
-box.space.sophia:select{148}
+box.space.phia:select{148}
 -
 - [148, tuple 148]
 
-box.space.sophia:select{149}
+box.space.phia:select{149}
 -
 - [149, tuple 149]
 
@@ -2540,23 +2540,23 @@ box.space.memtx:insert{154, "tuple 154"}
 -
 - [154, tuple 154]
 
-box.space.sophia:insert{150, "tuple 150"}
+box.space.phia:insert{150, "tuple 150"}
 -
 []
 
-box.space.sophia:insert{151, "tuple 151"}
+box.space.phia:insert{151, "tuple 151"}
 -
 []
 
-box.space.sophia:insert{152, "tuple 152"}
+box.space.phia:insert{152, "tuple 152"}
 -
 []
 
-box.space.sophia:insert{153, "tuple 153"}
+box.space.phia:insert{153, "tuple 153"}
 -
 []
 
-box.space.sophia:insert{154, "tuple 154"}
+box.space.phia:insert{154, "tuple 154"}
 -
 []
 
@@ -2580,23 +2580,23 @@ box.space.memtx:select{154}
 -
 - [154, tuple 154]
 
-box.space.sophia:select{150}
+box.space.phia:select{150}
 -
 - [150, tuple 150]
 
-box.space.sophia:select{151}
+box.space.phia:select{151}
 -
 - [151, tuple 151]
 
-box.space.sophia:select{152}
+box.space.phia:select{152}
 -
 - [152, tuple 152]
 
-box.space.sophia:select{153}
+box.space.phia:select{153}
 -
 - [153, tuple 153]
 
-box.space.sophia:select{154}
+box.space.phia:select{154}
 -
 - [154, tuple 154]
 
@@ -2620,23 +2620,23 @@ box.space.memtx:insert{159, "tuple 159"}
 -
 - [159, tuple 159]
 
-box.space.sophia:insert{155, "tuple 155"}
+box.space.phia:insert{155, "tuple 155"}
 -
 []
 
-box.space.sophia:insert{156, "tuple 156"}
+box.space.phia:insert{156, "tuple 156"}
 -
 []
 
-box.space.sophia:insert{157, "tuple 157"}
+box.space.phia:insert{157, "tuple 157"}
 -
 []
 
-box.space.sophia:insert{158, "tuple 158"}
+box.space.phia:insert{158, "tuple 158"}
 -
 []
 
-box.space.sophia:insert{159, "tuple 159"}
+box.space.phia:insert{159, "tuple 159"}
 -
 []
 
@@ -2660,23 +2660,23 @@ box.space.memtx:select{159}
 -
 - [159, tuple 159]
 
-box.space.sophia:select{155}
+box.space.phia:select{155}
 -
 - [155, tuple 155]
 
-box.space.sophia:select{156}
+box.space.phia:select{156}
 -
 - [156, tuple 156]
 
-box.space.sophia:select{157}
+box.space.phia:select{157}
 -
 - [157, tuple 157]
 
-box.space.sophia:select{158}
+box.space.phia:select{158}
 -
 - [158, tuple 158]
 
-box.space.sophia:select{159}
+box.space.phia:select{159}
 -
 - [159, tuple 159]
 
@@ -2707,23 +2707,23 @@ box.space.memtx:insert{164, "tuple 164"}
 -
 - [164, tuple 164]
 
-box.space.sophia:insert{160, "tuple 160"}
+box.space.phia:insert{160, "tuple 160"}
 -
 []
 
-box.space.sophia:insert{161, "tuple 161"}
+box.space.phia:insert{161, "tuple 161"}
 -
 []
 
-box.space.sophia:insert{162, "tuple 162"}
+box.space.phia:insert{162, "tuple 162"}
 -
 []
 
-box.space.sophia:insert{163, "tuple 163"}
+box.space.phia:insert{163, "tuple 163"}
 -
 []
 
-box.space.sophia:insert{164, "tuple 164"}
+box.space.phia:insert{164, "tuple 164"}
 -
 []
 
@@ -2747,23 +2747,23 @@ box.space.memtx:select{164}
 -
 - [164, tuple 164]
 
-box.space.sophia:select{160}
+box.space.phia:select{160}
 -
 - [160, tuple 160]
 
-box.space.sophia:select{161}
+box.space.phia:select{161}
 -
 - [161, tuple 161]
 
-box.space.sophia:select{162}
+box.space.phia:select{162}
 -
 - [162, tuple 162]
 
-box.space.sophia:select{163}
+box.space.phia:select{163}
 -
 - [163, tuple 163]
 
-box.space.sophia:select{164}
+box.space.phia:select{164}
 -
 - [164, tuple 164]
 
@@ -2787,23 +2787,23 @@ box.space.memtx:insert{169, "tuple 169"}
 -
 - [169, tuple 169]
 
-box.space.sophia:insert{165, "tuple 165"}
+box.space.phia:insert{165, "tuple 165"}
 -
 []
 
-box.space.sophia:insert{166, "tuple 166"}
+box.space.phia:insert{166, "tuple 166"}
 -
 []
 
-box.space.sophia:insert{167, "tuple 167"}
+box.space.phia:insert{167, "tuple 167"}
 -
 []
 
-box.space.sophia:insert{168, "tuple 168"}
+box.space.phia:insert{168, "tuple 168"}
 -
 []
 
-box.space.sophia:insert{169, "tuple 169"}
+box.space.phia:insert{169, "tuple 169"}
 -
 []
 
@@ -2827,23 +2827,23 @@ box.space.memtx:select{169}
 -
 - [169, tuple 169]
 
-box.space.sophia:select{165}
+box.space.phia:select{165}
 -
 - [165, tuple 165]
 
-box.space.sophia:select{166}
+box.space.phia:select{166}
 -
 - [166, tuple 166]
 
-box.space.sophia:select{167}
+box.space.phia:select{167}
 -
 - [167, tuple 167]
 
-box.space.sophia:select{168}
+box.space.phia:select{168}
 -
 - [168, tuple 168]
 
-box.space.sophia:select{169}
+box.space.phia:select{169}
 -
 - [169, tuple 169]
 
@@ -2873,23 +2873,23 @@ box.space.memtx:insert{174, "tuple 174"}
 -
 - [174, tuple 174]
 
-box.space.sophia:insert{170, "tuple 170"}
+box.space.phia:insert{170, "tuple 170"}
 -
 []
 
-box.space.sophia:insert{171, "tuple 171"}
+box.space.phia:insert{171, "tuple 171"}
 -
 []
 
-box.space.sophia:insert{172, "tuple 172"}
+box.space.phia:insert{172, "tuple 172"}
 -
 []
 
-box.space.sophia:insert{173, "tuple 173"}
+box.space.phia:insert{173, "tuple 173"}
 -
 []
 
-box.space.sophia:insert{174, "tuple 174"}
+box.space.phia:insert{174, "tuple 174"}
 -
 []
 
@@ -2913,23 +2913,23 @@ box.space.memtx:select{174}
 -
 - [174, tuple 174]
 
-box.space.sophia:select{170}
+box.space.phia:select{170}
 -
 - [170, tuple 170]
 
-box.space.sophia:select{171}
+box.space.phia:select{171}
 -
 - [171, tuple 171]
 
-box.space.sophia:select{172}
+box.space.phia:select{172}
 -
 - [172, tuple 172]
 
-box.space.sophia:select{173}
+box.space.phia:select{173}
 -
 - [173, tuple 173]
 
-box.space.sophia:select{174}
+box.space.phia:select{174}
 -
 - [174, tuple 174]
 
@@ -2953,23 +2953,23 @@ box.space.memtx:insert{179, "tuple 179"}
 -
 - [179, tuple 179]
 
-box.space.sophia:insert{175, "tuple 175"}
+box.space.phia:insert{175, "tuple 175"}
 -
 []
 
-box.space.sophia:insert{176, "tuple 176"}
+box.space.phia:insert{176, "tuple 176"}
 -
 []
 
-box.space.sophia:insert{177, "tuple 177"}
+box.space.phia:insert{177, "tuple 177"}
 -
 []
 
-box.space.sophia:insert{178, "tuple 178"}
+box.space.phia:insert{178, "tuple 178"}
 -
 []
 
-box.space.sophia:insert{179, "tuple 179"}
+box.space.phia:insert{179, "tuple 179"}
 -
 []
 
@@ -2993,23 +2993,23 @@ box.space.memtx:select{179}
 -
 - [179, tuple 179]
 
-box.space.sophia:select{175}
+box.space.phia:select{175}
 -
 - [175, tuple 175]
 
-box.space.sophia:select{176}
+box.space.phia:select{176}
 -
 - [176, tuple 176]
 
-box.space.sophia:select{177}
+box.space.phia:select{177}
 -
 - [177, tuple 177]
 
-box.space.sophia:select{178}
+box.space.phia:select{178}
 -
 - [178, tuple 178]
 
-box.space.sophia:select{179}
+box.space.phia:select{179}
 -
 - [179, tuple 179]
 
@@ -3040,23 +3040,23 @@ box.space.memtx:insert{184, "tuple 184"}
 -
 - [184, tuple 184]
 
-box.space.sophia:insert{180, "tuple 180"}
+box.space.phia:insert{180, "tuple 180"}
 -
 []
 
-box.space.sophia:insert{181, "tuple 181"}
+box.space.phia:insert{181, "tuple 181"}
 -
 []
 
-box.space.sophia:insert{182, "tuple 182"}
+box.space.phia:insert{182, "tuple 182"}
 -
 []
 
-box.space.sophia:insert{183, "tuple 183"}
+box.space.phia:insert{183, "tuple 183"}
 -
 []
 
-box.space.sophia:insert{184, "tuple 184"}
+box.space.phia:insert{184, "tuple 184"}
 -
 []
 
@@ -3080,23 +3080,23 @@ box.space.memtx:select{184}
 -
 - [184, tuple 184]
 
-box.space.sophia:select{180}
+box.space.phia:select{180}
 -
 - [180, tuple 180]
 
-box.space.sophia:select{181}
+box.space.phia:select{181}
 -
 - [181, tuple 181]
 
-box.space.sophia:select{182}
+box.space.phia:select{182}
 -
 - [182, tuple 182]
 
-box.space.sophia:select{183}
+box.space.phia:select{183}
 -
 - [183, tuple 183]
 
-box.space.sophia:select{184}
+box.space.phia:select{184}
 -
 - [184, tuple 184]
 
@@ -3120,23 +3120,23 @@ box.space.memtx:insert{189, "tuple 189"}
 -
 - [189, tuple 189]
 
-box.space.sophia:insert{185, "tuple 185"}
+box.space.phia:insert{185, "tuple 185"}
 -
 []
 
-box.space.sophia:insert{186, "tuple 186"}
+box.space.phia:insert{186, "tuple 186"}
 -
 []
 
-box.space.sophia:insert{187, "tuple 187"}
+box.space.phia:insert{187, "tuple 187"}
 -
 []
 
-box.space.sophia:insert{188, "tuple 188"}
+box.space.phia:insert{188, "tuple 188"}
 -
 []
 
-box.space.sophia:insert{189, "tuple 189"}
+box.space.phia:insert{189, "tuple 189"}
 -
 []
 
@@ -3160,23 +3160,23 @@ box.space.memtx:select{189}
 -
 - [189, tuple 189]
 
-box.space.sophia:select{185}
+box.space.phia:select{185}
 -
 - [185, tuple 185]
 
-box.space.sophia:select{186}
+box.space.phia:select{186}
 -
 - [186, tuple 186]
 
-box.space.sophia:select{187}
+box.space.phia:select{187}
 -
 - [187, tuple 187]
 
-box.space.sophia:select{188}
+box.space.phia:select{188}
 -
 - [188, tuple 188]
 
-box.space.sophia:select{189}
+box.space.phia:select{189}
 -
 - [189, tuple 189]
 
@@ -3206,23 +3206,23 @@ box.space.memtx:insert{194, "tuple 194"}
 -
 - [194, tuple 194]
 
-box.space.sophia:insert{190, "tuple 190"}
+box.space.phia:insert{190, "tuple 190"}
 -
 []
 
-box.space.sophia:insert{191, "tuple 191"}
+box.space.phia:insert{191, "tuple 191"}
 -
 []
 
-box.space.sophia:insert{192, "tuple 192"}
+box.space.phia:insert{192, "tuple 192"}
 -
 []
 
-box.space.sophia:insert{193, "tuple 193"}
+box.space.phia:insert{193, "tuple 193"}
 -
 []
 
-box.space.sophia:insert{194, "tuple 194"}
+box.space.phia:insert{194, "tuple 194"}
 -
 []
 
@@ -3246,23 +3246,23 @@ box.space.memtx:select{194}
 -
 - [194, tuple 194]
 
-box.space.sophia:select{190}
+box.space.phia:select{190}
 -
 - [190, tuple 190]
 
-box.space.sophia:select{191}
+box.space.phia:select{191}
 -
 - [191, tuple 191]
 
-box.space.sophia:select{192}
+box.space.phia:select{192}
 -
 - [192, tuple 192]
 
-box.space.sophia:select{193}
+box.space.phia:select{193}
 -
 - [193, tuple 193]
 
-box.space.sophia:select{194}
+box.space.phia:select{194}
 -
 - [194, tuple 194]
 
@@ -3286,23 +3286,23 @@ box.space.memtx:insert{199, "tuple 199"}
 -
 - [199, tuple 199]
 
-box.space.sophia:insert{195, "tuple 195"}
+box.space.phia:insert{195, "tuple 195"}
 -
 []
 
-box.space.sophia:insert{196, "tuple 196"}
+box.space.phia:insert{196, "tuple 196"}
 -
 []
 
-box.space.sophia:insert{197, "tuple 197"}
+box.space.phia:insert{197, "tuple 197"}
 -
 []
 
-box.space.sophia:insert{198, "tuple 198"}
+box.space.phia:insert{198, "tuple 198"}
 -
 []
 
-box.space.sophia:insert{199, "tuple 199"}
+box.space.phia:insert{199, "tuple 199"}
 -
 []
 
@@ -3326,23 +3326,23 @@ box.space.memtx:select{199}
 -
 - [199, tuple 199]
 
-box.space.sophia:select{195}
+box.space.phia:select{195}
 -
 - [195, tuple 195]
 
-box.space.sophia:select{196}
+box.space.phia:select{196}
 -
 - [196, tuple 196]
 
-box.space.sophia:select{197}
+box.space.phia:select{197}
 -
 - [197, tuple 197]
 
-box.space.sophia:select{198}
+box.space.phia:select{198}
 -
 - [198, tuple 198]
 
-box.space.sophia:select{199}
+box.space.phia:select{199}
 -
 - [199, tuple 199]
 
@@ -3373,23 +3373,23 @@ box.space.memtx:insert{204, "tuple 204"}
 -
 - [204, tuple 204]
 
-box.space.sophia:insert{200, "tuple 200"}
+box.space.phia:insert{200, "tuple 200"}
 -
 []
 
-box.space.sophia:insert{201, "tuple 201"}
+box.space.phia:insert{201, "tuple 201"}
 -
 []
 
-box.space.sophia:insert{202, "tuple 202"}
+box.space.phia:insert{202, "tuple 202"}
 -
 []
 
-box.space.sophia:insert{203, "tuple 203"}
+box.space.phia:insert{203, "tuple 203"}
 -
 []
 
-box.space.sophia:insert{204, "tuple 204"}
+box.space.phia:insert{204, "tuple 204"}
 -
 []
 
@@ -3413,23 +3413,23 @@ box.space.memtx:select{204}
 -
 - [204, tuple 204]
 
-box.space.sophia:select{200}
+box.space.phia:select{200}
 -
 - [200, tuple 200]
 
-box.space.sophia:select{201}
+box.space.phia:select{201}
 -
 - [201, tuple 201]
 
-box.space.sophia:select{202}
+box.space.phia:select{202}
 -
 - [202, tuple 202]
 
-box.space.sophia:select{203}
+box.space.phia:select{203}
 -
 - [203, tuple 203]
 
-box.space.sophia:select{204}
+box.space.phia:select{204}
 -
 - [204, tuple 204]
 
@@ -3453,23 +3453,23 @@ box.space.memtx:insert{209, "tuple 209"}
 -
 - [209, tuple 209]
 
-box.space.sophia:insert{205, "tuple 205"}
+box.space.phia:insert{205, "tuple 205"}
 -
 []
 
-box.space.sophia:insert{206, "tuple 206"}
+box.space.phia:insert{206, "tuple 206"}
 -
 []
 
-box.space.sophia:insert{207, "tuple 207"}
+box.space.phia:insert{207, "tuple 207"}
 -
 []
 
-box.space.sophia:insert{208, "tuple 208"}
+box.space.phia:insert{208, "tuple 208"}
 -
 []
 
-box.space.sophia:insert{209, "tuple 209"}
+box.space.phia:insert{209, "tuple 209"}
 -
 []
 
@@ -3493,23 +3493,23 @@ box.space.memtx:select{209}
 -
 - [209, tuple 209]
 
-box.space.sophia:select{205}
+box.space.phia:select{205}
 -
 - [205, tuple 205]
 
-box.space.sophia:select{206}
+box.space.phia:select{206}
 -
 - [206, tuple 206]
 
-box.space.sophia:select{207}
+box.space.phia:select{207}
 -
 - [207, tuple 207]
 
-box.space.sophia:select{208}
+box.space.phia:select{208}
 -
 - [208, tuple 208]
 
-box.space.sophia:select{209}
+box.space.phia:select{209}
 -
 - [209, tuple 209]
 
@@ -3539,23 +3539,23 @@ box.space.memtx:insert{214, "tuple 214"}
 -
 - [214, tuple 214]
 
-box.space.sophia:insert{210, "tuple 210"}
+box.space.phia:insert{210, "tuple 210"}
 -
 []
 
-box.space.sophia:insert{211, "tuple 211"}
+box.space.phia:insert{211, "tuple 211"}
 -
 []
 
-box.space.sophia:insert{212, "tuple 212"}
+box.space.phia:insert{212, "tuple 212"}
 -
 []
 
-box.space.sophia:insert{213, "tuple 213"}
+box.space.phia:insert{213, "tuple 213"}
 -
 []
 
-box.space.sophia:insert{214, "tuple 214"}
+box.space.phia:insert{214, "tuple 214"}
 -
 []
 
@@ -3579,23 +3579,23 @@ box.space.memtx:select{214}
 -
 - [214, tuple 214]
 
-box.space.sophia:select{210}
+box.space.phia:select{210}
 -
 - [210, tuple 210]
 
-box.space.sophia:select{211}
+box.space.phia:select{211}
 -
 - [211, tuple 211]
 
-box.space.sophia:select{212}
+box.space.phia:select{212}
 -
 - [212, tuple 212]
 
-box.space.sophia:select{213}
+box.space.phia:select{213}
 -
 - [213, tuple 213]
 
-box.space.sophia:select{214}
+box.space.phia:select{214}
 -
 - [214, tuple 214]
 
@@ -3619,23 +3619,23 @@ box.space.memtx:insert{219, "tuple 219"}
 -
 - [219, tuple 219]
 
-box.space.sophia:insert{215, "tuple 215"}
+box.space.phia:insert{215, "tuple 215"}
 -
 []
 
-box.space.sophia:insert{216, "tuple 216"}
+box.space.phia:insert{216, "tuple 216"}
 -
 []
 
-box.space.sophia:insert{217, "tuple 217"}
+box.space.phia:insert{217, "tuple 217"}
 -
 []
 
-box.space.sophia:insert{218, "tuple 218"}
+box.space.phia:insert{218, "tuple 218"}
 -
 []
 
-box.space.sophia:insert{219, "tuple 219"}
+box.space.phia:insert{219, "tuple 219"}
 -
 []
 
@@ -3659,23 +3659,23 @@ box.space.memtx:select{219}
 -
 - [219, tuple 219]
 
-box.space.sophia:select{215}
+box.space.phia:select{215}
 -
 - [215, tuple 215]
 
-box.space.sophia:select{216}
+box.space.phia:select{216}
 -
 - [216, tuple 216]
 
-box.space.sophia:select{217}
+box.space.phia:select{217}
 -
 - [217, tuple 217]
 
-box.space.sophia:select{218}
+box.space.phia:select{218}
 -
 - [218, tuple 218]
 
-box.space.sophia:select{219}
+box.space.phia:select{219}
 -
 - [219, tuple 219]
 
@@ -3706,23 +3706,23 @@ box.space.memtx:insert{224, "tuple 224"}
 -
 - [224, tuple 224]
 
-box.space.sophia:insert{220, "tuple 220"}
+box.space.phia:insert{220, "tuple 220"}
 -
 []
 
-box.space.sophia:insert{221, "tuple 221"}
+box.space.phia:insert{221, "tuple 221"}
 -
 []
 
-box.space.sophia:insert{222, "tuple 222"}
+box.space.phia:insert{222, "tuple 222"}
 -
 []
 
-box.space.sophia:insert{223, "tuple 223"}
+box.space.phia:insert{223, "tuple 223"}
 -
 []
 
-box.space.sophia:insert{224, "tuple 224"}
+box.space.phia:insert{224, "tuple 224"}
 -
 []
 
@@ -3746,23 +3746,23 @@ box.space.memtx:select{224}
 -
 - [224, tuple 224]
 
-box.space.sophia:select{220}
+box.space.phia:select{220}
 -
 - [220, tuple 220]
 
-box.space.sophia:select{221}
+box.space.phia:select{221}
 -
 - [221, tuple 221]
 
-box.space.sophia:select{222}
+box.space.phia:select{222}
 -
 - [222, tuple 222]
 
-box.space.sophia:select{223}
+box.space.phia:select{223}
 -
 - [223, tuple 223]
 
-box.space.sophia:select{224}
+box.space.phia:select{224}
 -
 - [224, tuple 224]
 
@@ -3786,23 +3786,23 @@ box.space.memtx:insert{229, "tuple 229"}
 -
 - [229, tuple 229]
 
-box.space.sophia:insert{225, "tuple 225"}
+box.space.phia:insert{225, "tuple 225"}
 -
 []
 
-box.space.sophia:insert{226, "tuple 226"}
+box.space.phia:insert{226, "tuple 226"}
 -
 []
 
-box.space.sophia:insert{227, "tuple 227"}
+box.space.phia:insert{227, "tuple 227"}
 -
 []
 
-box.space.sophia:insert{228, "tuple 228"}
+box.space.phia:insert{228, "tuple 228"}
 -
 []
 
-box.space.sophia:insert{229, "tuple 229"}
+box.space.phia:insert{229, "tuple 229"}
 -
 []
 
@@ -3826,23 +3826,23 @@ box.space.memtx:select{229}
 -
 - [229, tuple 229]
 
-box.space.sophia:select{225}
+box.space.phia:select{225}
 -
 - [225, tuple 225]
 
-box.space.sophia:select{226}
+box.space.phia:select{226}
 -
 - [226, tuple 226]
 
-box.space.sophia:select{227}
+box.space.phia:select{227}
 -
 - [227, tuple 227]
 
-box.space.sophia:select{228}
+box.space.phia:select{228}
 -
 - [228, tuple 228]
 
-box.space.sophia:select{229}
+box.space.phia:select{229}
 -
 - [229, tuple 229]
 
@@ -3872,23 +3872,23 @@ box.space.memtx:insert{234, "tuple 234"}
 -
 - [234, tuple 234]
 
-box.space.sophia:insert{230, "tuple 230"}
+box.space.phia:insert{230, "tuple 230"}
 -
 []
 
-box.space.sophia:insert{231, "tuple 231"}
+box.space.phia:insert{231, "tuple 231"}
 -
 []
 
-box.space.sophia:insert{232, "tuple 232"}
+box.space.phia:insert{232, "tuple 232"}
 -
 []
 
-box.space.sophia:insert{233, "tuple 233"}
+box.space.phia:insert{233, "tuple 233"}
 -
 []
 
-box.space.sophia:insert{234, "tuple 234"}
+box.space.phia:insert{234, "tuple 234"}
 -
 []
 
@@ -3912,23 +3912,23 @@ box.space.memtx:select{234}
 -
 - [234, tuple 234]
 
-box.space.sophia:select{230}
+box.space.phia:select{230}
 -
 - [230, tuple 230]
 
-box.space.sophia:select{231}
+box.space.phia:select{231}
 -
 - [231, tuple 231]
 
-box.space.sophia:select{232}
+box.space.phia:select{232}
 -
 - [232, tuple 232]
 
-box.space.sophia:select{233}
+box.space.phia:select{233}
 -
 - [233, tuple 233]
 
-box.space.sophia:select{234}
+box.space.phia:select{234}
 -
 - [234, tuple 234]
 
@@ -3952,23 +3952,23 @@ box.space.memtx:insert{239, "tuple 239"}
 -
 - [239, tuple 239]
 
-box.space.sophia:insert{235, "tuple 235"}
+box.space.phia:insert{235, "tuple 235"}
 -
 []
 
-box.space.sophia:insert{236, "tuple 236"}
+box.space.phia:insert{236, "tuple 236"}
 -
 []
 
-box.space.sophia:insert{237, "tuple 237"}
+box.space.phia:insert{237, "tuple 237"}
 -
 []
 
-box.space.sophia:insert{238, "tuple 238"}
+box.space.phia:insert{238, "tuple 238"}
 -
 []
 
-box.space.sophia:insert{239, "tuple 239"}
+box.space.phia:insert{239, "tuple 239"}
 -
 []
 
@@ -3992,23 +3992,23 @@ box.space.memtx:select{239}
 -
 - [239, tuple 239]
 
-box.space.sophia:select{235}
+box.space.phia:select{235}
 -
 - [235, tuple 235]
 
-box.space.sophia:select{236}
+box.space.phia:select{236}
 -
 - [236, tuple 236]
 
-box.space.sophia:select{237}
+box.space.phia:select{237}
 -
 - [237, tuple 237]
 
-box.space.sophia:select{238}
+box.space.phia:select{238}
 -
 - [238, tuple 238]
 
-box.space.sophia:select{239}
+box.space.phia:select{239}
 -
 - [239, tuple 239]
 
@@ -4039,23 +4039,23 @@ box.space.memtx:insert{244, "tuple 244"}
 -
 - [244, tuple 244]
 
-box.space.sophia:insert{240, "tuple 240"}
+box.space.phia:insert{240, "tuple 240"}
 -
 []
 
-box.space.sophia:insert{241, "tuple 241"}
+box.space.phia:insert{241, "tuple 241"}
 -
 []
 
-box.space.sophia:insert{242, "tuple 242"}
+box.space.phia:insert{242, "tuple 242"}
 -
 []
 
-box.space.sophia:insert{243, "tuple 243"}
+box.space.phia:insert{243, "tuple 243"}
 -
 []
 
-box.space.sophia:insert{244, "tuple 244"}
+box.space.phia:insert{244, "tuple 244"}
 -
 []
 
@@ -4079,23 +4079,23 @@ box.space.memtx:select{244}
 -
 - [244, tuple 244]
 
-box.space.sophia:select{240}
+box.space.phia:select{240}
 -
 - [240, tuple 240]
 
-box.space.sophia:select{241}
+box.space.phia:select{241}
 -
 - [241, tuple 241]
 
-box.space.sophia:select{242}
+box.space.phia:select{242}
 -
 - [242, tuple 242]
 
-box.space.sophia:select{243}
+box.space.phia:select{243}
 -
 - [243, tuple 243]
 
-box.space.sophia:select{244}
+box.space.phia:select{244}
 -
 - [244, tuple 244]
 
@@ -4119,23 +4119,23 @@ box.space.memtx:insert{249, "tuple 249"}
 -
 - [249, tuple 249]
 
-box.space.sophia:insert{245, "tuple 245"}
+box.space.phia:insert{245, "tuple 245"}
 -
 []
 
-box.space.sophia:insert{246, "tuple 246"}
+box.space.phia:insert{246, "tuple 246"}
 -
 []
 
-box.space.sophia:insert{247, "tuple 247"}
+box.space.phia:insert{247, "tuple 247"}
 -
 []
 
-box.space.sophia:insert{248, "tuple 248"}
+box.space.phia:insert{248, "tuple 248"}
 -
 []
 
-box.space.sophia:insert{249, "tuple 249"}
+box.space.phia:insert{249, "tuple 249"}
 -
 []
 
@@ -4159,23 +4159,23 @@ box.space.memtx:select{249}
 -
 - [249, tuple 249]
 
-box.space.sophia:select{245}
+box.space.phia:select{245}
 -
 - [245, tuple 245]
 
-box.space.sophia:select{246}
+box.space.phia:select{246}
 -
 - [246, tuple 246]
 
-box.space.sophia:select{247}
+box.space.phia:select{247}
 -
 - [247, tuple 247]
 
-box.space.sophia:select{248}
+box.space.phia:select{248}
 -
 - [248, tuple 248]
 
-box.space.sophia:select{249}
+box.space.phia:select{249}
 -
 - [249, tuple 249]
 
@@ -4205,23 +4205,23 @@ box.space.memtx:insert{254, "tuple 254"}
 -
 - [254, tuple 254]
 
-box.space.sophia:insert{250, "tuple 250"}
+box.space.phia:insert{250, "tuple 250"}
 -
 []
 
-box.space.sophia:insert{251, "tuple 251"}
+box.space.phia:insert{251, "tuple 251"}
 -
 []
 
-box.space.sophia:insert{252, "tuple 252"}
+box.space.phia:insert{252, "tuple 252"}
 -
 []
 
-box.space.sophia:insert{253, "tuple 253"}
+box.space.phia:insert{253, "tuple 253"}
 -
 []
 
-box.space.sophia:insert{254, "tuple 254"}
+box.space.phia:insert{254, "tuple 254"}
 -
 []
 
@@ -4245,23 +4245,23 @@ box.space.memtx:select{254}
 -
 - [254, tuple 254]
 
-box.space.sophia:select{250}
+box.space.phia:select{250}
 -
 - [250, tuple 250]
 
-box.space.sophia:select{251}
+box.space.phia:select{251}
 -
 - [251, tuple 251]
 
-box.space.sophia:select{252}
+box.space.phia:select{252}
 -
 - [252, tuple 252]
 
-box.space.sophia:select{253}
+box.space.phia:select{253}
 -
 - [253, tuple 253]
 
-box.space.sophia:select{254}
+box.space.phia:select{254}
 -
 - [254, tuple 254]
 
@@ -4285,23 +4285,23 @@ box.space.memtx:insert{259, "tuple 259"}
 -
 - [259, tuple 259]
 
-box.space.sophia:insert{255, "tuple 255"}
+box.space.phia:insert{255, "tuple 255"}
 -
 []
 
-box.space.sophia:insert{256, "tuple 256"}
+box.space.phia:insert{256, "tuple 256"}
 -
 []
 
-box.space.sophia:insert{257, "tuple 257"}
+box.space.phia:insert{257, "tuple 257"}
 -
 []
 
-box.space.sophia:insert{258, "tuple 258"}
+box.space.phia:insert{258, "tuple 258"}
 -
 []
 
-box.space.sophia:insert{259, "tuple 259"}
+box.space.phia:insert{259, "tuple 259"}
 -
 []
 
@@ -4325,23 +4325,23 @@ box.space.memtx:select{259}
 -
 - [259, tuple 259]
 
-box.space.sophia:select{255}
+box.space.phia:select{255}
 -
 - [255, tuple 255]
 
-box.space.sophia:select{256}
+box.space.phia:select{256}
 -
 - [256, tuple 256]
 
-box.space.sophia:select{257}
+box.space.phia:select{257}
 -
 - [257, tuple 257]
 
-box.space.sophia:select{258}
+box.space.phia:select{258}
 -
 - [258, tuple 258]
 
-box.space.sophia:select{259}
+box.space.phia:select{259}
 -
 - [259, tuple 259]
 
@@ -4372,23 +4372,23 @@ box.space.memtx:insert{264, "tuple 264"}
 -
 - [264, tuple 264]
 
-box.space.sophia:insert{260, "tuple 260"}
+box.space.phia:insert{260, "tuple 260"}
 -
 []
 
-box.space.sophia:insert{261, "tuple 261"}
+box.space.phia:insert{261, "tuple 261"}
 -
 []
 
-box.space.sophia:insert{262, "tuple 262"}
+box.space.phia:insert{262, "tuple 262"}
 -
 []
 
-box.space.sophia:insert{263, "tuple 263"}
+box.space.phia:insert{263, "tuple 263"}
 -
 []
 
-box.space.sophia:insert{264, "tuple 264"}
+box.space.phia:insert{264, "tuple 264"}
 -
 []
 
@@ -4412,23 +4412,23 @@ box.space.memtx:select{264}
 -
 - [264, tuple 264]
 
-box.space.sophia:select{260}
+box.space.phia:select{260}
 -
 - [260, tuple 260]
 
-box.space.sophia:select{261}
+box.space.phia:select{261}
 -
 - [261, tuple 261]
 
-box.space.sophia:select{262}
+box.space.phia:select{262}
 -
 - [262, tuple 262]
 
-box.space.sophia:select{263}
+box.space.phia:select{263}
 -
 - [263, tuple 263]
 
-box.space.sophia:select{264}
+box.space.phia:select{264}
 -
 - [264, tuple 264]
 
@@ -4452,23 +4452,23 @@ box.space.memtx:insert{269, "tuple 269"}
 -
 - [269, tuple 269]
 
-box.space.sophia:insert{265, "tuple 265"}
+box.space.phia:insert{265, "tuple 265"}
 -
 []
 
-box.space.sophia:insert{266, "tuple 266"}
+box.space.phia:insert{266, "tuple 266"}
 -
 []
 
-box.space.sophia:insert{267, "tuple 267"}
+box.space.phia:insert{267, "tuple 267"}
 -
 []
 
-box.space.sophia:insert{268, "tuple 268"}
+box.space.phia:insert{268, "tuple 268"}
 -
 []
 
-box.space.sophia:insert{269, "tuple 269"}
+box.space.phia:insert{269, "tuple 269"}
 -
 []
 
@@ -4492,23 +4492,23 @@ box.space.memtx:select{269}
 -
 - [269, tuple 269]
 
-box.space.sophia:select{265}
+box.space.phia:select{265}
 -
 - [265, tuple 265]
 
-box.space.sophia:select{266}
+box.space.phia:select{266}
 -
 - [266, tuple 266]
 
-box.space.sophia:select{267}
+box.space.phia:select{267}
 -
 - [267, tuple 267]
 
-box.space.sophia:select{268}
+box.space.phia:select{268}
 -
 - [268, tuple 268]
 
-box.space.sophia:select{269}
+box.space.phia:select{269}
 -
 - [269, tuple 269]
 
@@ -4538,23 +4538,23 @@ box.space.memtx:insert{274, "tuple 274"}
 -
 - [274, tuple 274]
 
-box.space.sophia:insert{270, "tuple 270"}
+box.space.phia:insert{270, "tuple 270"}
 -
 []
 
-box.space.sophia:insert{271, "tuple 271"}
+box.space.phia:insert{271, "tuple 271"}
 -
 []
 
-box.space.sophia:insert{272, "tuple 272"}
+box.space.phia:insert{272, "tuple 272"}
 -
 []
 
-box.space.sophia:insert{273, "tuple 273"}
+box.space.phia:insert{273, "tuple 273"}
 -
 []
 
-box.space.sophia:insert{274, "tuple 274"}
+box.space.phia:insert{274, "tuple 274"}
 -
 []
 
@@ -4578,23 +4578,23 @@ box.space.memtx:select{274}
 -
 - [274, tuple 274]
 
-box.space.sophia:select{270}
+box.space.phia:select{270}
 -
 - [270, tuple 270]
 
-box.space.sophia:select{271}
+box.space.phia:select{271}
 -
 - [271, tuple 271]
 
-box.space.sophia:select{272}
+box.space.phia:select{272}
 -
 - [272, tuple 272]
 
-box.space.sophia:select{273}
+box.space.phia:select{273}
 -
 - [273, tuple 273]
 
-box.space.sophia:select{274}
+box.space.phia:select{274}
 -
 - [274, tuple 274]
 
@@ -4618,23 +4618,23 @@ box.space.memtx:insert{279, "tuple 279"}
 -
 - [279, tuple 279]
 
-box.space.sophia:insert{275, "tuple 275"}
+box.space.phia:insert{275, "tuple 275"}
 -
 []
 
-box.space.sophia:insert{276, "tuple 276"}
+box.space.phia:insert{276, "tuple 276"}
 -
 []
 
-box.space.sophia:insert{277, "tuple 277"}
+box.space.phia:insert{277, "tuple 277"}
 -
 []
 
-box.space.sophia:insert{278, "tuple 278"}
+box.space.phia:insert{278, "tuple 278"}
 -
 []
 
-box.space.sophia:insert{279, "tuple 279"}
+box.space.phia:insert{279, "tuple 279"}
 -
 []
 
@@ -4658,23 +4658,23 @@ box.space.memtx:select{279}
 -
 - [279, tuple 279]
 
-box.space.sophia:select{275}
+box.space.phia:select{275}
 -
 - [275, tuple 275]
 
-box.space.sophia:select{276}
+box.space.phia:select{276}
 -
 - [276, tuple 276]
 
-box.space.sophia:select{277}
+box.space.phia:select{277}
 -
 - [277, tuple 277]
 
-box.space.sophia:select{278}
+box.space.phia:select{278}
 -
 - [278, tuple 278]
 
-box.space.sophia:select{279}
+box.space.phia:select{279}
 -
 - [279, tuple 279]
 
@@ -4705,23 +4705,23 @@ box.space.memtx:insert{284, "tuple 284"}
 -
 - [284, tuple 284]
 
-box.space.sophia:insert{280, "tuple 280"}
+box.space.phia:insert{280, "tuple 280"}
 -
 []
 
-box.space.sophia:insert{281, "tuple 281"}
+box.space.phia:insert{281, "tuple 281"}
 -
 []
 
-box.space.sophia:insert{282, "tuple 282"}
+box.space.phia:insert{282, "tuple 282"}
 -
 []
 
-box.space.sophia:insert{283, "tuple 283"}
+box.space.phia:insert{283, "tuple 283"}
 -
 []
 
-box.space.sophia:insert{284, "tuple 284"}
+box.space.phia:insert{284, "tuple 284"}
 -
 []
 
@@ -4745,23 +4745,23 @@ box.space.memtx:select{284}
 -
 - [284, tuple 284]
 
-box.space.sophia:select{280}
+box.space.phia:select{280}
 -
 - [280, tuple 280]
 
-box.space.sophia:select{281}
+box.space.phia:select{281}
 -
 - [281, tuple 281]
 
-box.space.sophia:select{282}
+box.space.phia:select{282}
 -
 - [282, tuple 282]
 
-box.space.sophia:select{283}
+box.space.phia:select{283}
 -
 - [283, tuple 283]
 
-box.space.sophia:select{284}
+box.space.phia:select{284}
 -
 - [284, tuple 284]
 
@@ -4785,23 +4785,23 @@ box.space.memtx:insert{289, "tuple 289"}
 -
 - [289, tuple 289]
 
-box.space.sophia:insert{285, "tuple 285"}
+box.space.phia:insert{285, "tuple 285"}
 -
 []
 
-box.space.sophia:insert{286, "tuple 286"}
+box.space.phia:insert{286, "tuple 286"}
 -
 []
 
-box.space.sophia:insert{287, "tuple 287"}
+box.space.phia:insert{287, "tuple 287"}
 -
 []
 
-box.space.sophia:insert{288, "tuple 288"}
+box.space.phia:insert{288, "tuple 288"}
 -
 []
 
-box.space.sophia:insert{289, "tuple 289"}
+box.space.phia:insert{289, "tuple 289"}
 -
 []
 
@@ -4825,23 +4825,23 @@ box.space.memtx:select{289}
 -
 - [289, tuple 289]
 
-box.space.sophia:select{285}
+box.space.phia:select{285}
 -
 - [285, tuple 285]
 
-box.space.sophia:select{286}
+box.space.phia:select{286}
 -
 - [286, tuple 286]
 
-box.space.sophia:select{287}
+box.space.phia:select{287}
 -
 - [287, tuple 287]
 
-box.space.sophia:select{288}
+box.space.phia:select{288}
 -
 - [288, tuple 288]
 
-box.space.sophia:select{289}
+box.space.phia:select{289}
 -
 - [289, tuple 289]
 
@@ -4871,23 +4871,23 @@ box.space.memtx:insert{294, "tuple 294"}
 -
 - [294, tuple 294]
 
-box.space.sophia:insert{290, "tuple 290"}
+box.space.phia:insert{290, "tuple 290"}
 -
 []
 
-box.space.sophia:insert{291, "tuple 291"}
+box.space.phia:insert{291, "tuple 291"}
 -
 []
 
-box.space.sophia:insert{292, "tuple 292"}
+box.space.phia:insert{292, "tuple 292"}
 -
 []
 
-box.space.sophia:insert{293, "tuple 293"}
+box.space.phia:insert{293, "tuple 293"}
 -
 []
 
-box.space.sophia:insert{294, "tuple 294"}
+box.space.phia:insert{294, "tuple 294"}
 -
 []
 
@@ -4911,23 +4911,23 @@ box.space.memtx:select{294}
 -
 - [294, tuple 294]
 
-box.space.sophia:select{290}
+box.space.phia:select{290}
 -
 - [290, tuple 290]
 
-box.space.sophia:select{291}
+box.space.phia:select{291}
 -
 - [291, tuple 291]
 
-box.space.sophia:select{292}
+box.space.phia:select{292}
 -
 - [292, tuple 292]
 
-box.space.sophia:select{293}
+box.space.phia:select{293}
 -
 - [293, tuple 293]
 
-box.space.sophia:select{294}
+box.space.phia:select{294}
 -
 - [294, tuple 294]
 
@@ -4951,23 +4951,23 @@ box.space.memtx:insert{299, "tuple 299"}
 -
 - [299, tuple 299]
 
-box.space.sophia:insert{295, "tuple 295"}
+box.space.phia:insert{295, "tuple 295"}
 -
 []
 
-box.space.sophia:insert{296, "tuple 296"}
+box.space.phia:insert{296, "tuple 296"}
 -
 []
 
-box.space.sophia:insert{297, "tuple 297"}
+box.space.phia:insert{297, "tuple 297"}
 -
 []
 
-box.space.sophia:insert{298, "tuple 298"}
+box.space.phia:insert{298, "tuple 298"}
 -
 []
 
-box.space.sophia:insert{299, "tuple 299"}
+box.space.phia:insert{299, "tuple 299"}
 -
 []
 
@@ -4991,23 +4991,23 @@ box.space.memtx:select{299}
 -
 - [299, tuple 299]
 
-box.space.sophia:select{295}
+box.space.phia:select{295}
 -
 - [295, tuple 295]
 
-box.space.sophia:select{296}
+box.space.phia:select{296}
 -
 - [296, tuple 296]
 
-box.space.sophia:select{297}
+box.space.phia:select{297}
 -
 - [297, tuple 297]
 
-box.space.sophia:select{298}
+box.space.phia:select{298}
 -
 - [298, tuple 298]
 
-box.space.sophia:select{299}
+box.space.phia:select{299}
 -
 - [299, tuple 299]
 
@@ -5038,23 +5038,23 @@ box.space.memtx:insert{304, "tuple 304"}
 -
 - [304, tuple 304]
 
-box.space.sophia:insert{300, "tuple 300"}
+box.space.phia:insert{300, "tuple 300"}
 -
 []
 
-box.space.sophia:insert{301, "tuple 301"}
+box.space.phia:insert{301, "tuple 301"}
 -
 []
 
-box.space.sophia:insert{302, "tuple 302"}
+box.space.phia:insert{302, "tuple 302"}
 -
 []
 
-box.space.sophia:insert{303, "tuple 303"}
+box.space.phia:insert{303, "tuple 303"}
 -
 []
 
-box.space.sophia:insert{304, "tuple 304"}
+box.space.phia:insert{304, "tuple 304"}
 -
 []
 
@@ -5078,23 +5078,23 @@ box.space.memtx:select{304}
 -
 - [304, tuple 304]
 
-box.space.sophia:select{300}
+box.space.phia:select{300}
 -
 - [300, tuple 300]
 
-box.space.sophia:select{301}
+box.space.phia:select{301}
 -
 - [301, tuple 301]
 
-box.space.sophia:select{302}
+box.space.phia:select{302}
 -
 - [302, tuple 302]
 
-box.space.sophia:select{303}
+box.space.phia:select{303}
 -
 - [303, tuple 303]
 
-box.space.sophia:select{304}
+box.space.phia:select{304}
 -
 - [304, tuple 304]
 
@@ -5118,23 +5118,23 @@ box.space.memtx:insert{309, "tuple 309"}
 -
 - [309, tuple 309]
 
-box.space.sophia:insert{305, "tuple 305"}
+box.space.phia:insert{305, "tuple 305"}
 -
 []
 
-box.space.sophia:insert{306, "tuple 306"}
+box.space.phia:insert{306, "tuple 306"}
 -
 []
 
-box.space.sophia:insert{307, "tuple 307"}
+box.space.phia:insert{307, "tuple 307"}
 -
 []
 
-box.space.sophia:insert{308, "tuple 308"}
+box.space.phia:insert{308, "tuple 308"}
 -
 []
 
-box.space.sophia:insert{309, "tuple 309"}
+box.space.phia:insert{309, "tuple 309"}
 -
 []
 
@@ -5158,23 +5158,23 @@ box.space.memtx:select{309}
 -
 - [309, tuple 309]
 
-box.space.sophia:select{305}
+box.space.phia:select{305}
 -
 - [305, tuple 305]
 
-box.space.sophia:select{306}
+box.space.phia:select{306}
 -
 - [306, tuple 306]
 
-box.space.sophia:select{307}
+box.space.phia:select{307}
 -
 - [307, tuple 307]
 
-box.space.sophia:select{308}
+box.space.phia:select{308}
 -
 - [308, tuple 308]
 
-box.space.sophia:select{309}
+box.space.phia:select{309}
 -
 - [309, tuple 309]
 
@@ -5204,23 +5204,23 @@ box.space.memtx:insert{314, "tuple 314"}
 -
 - [314, tuple 314]
 
-box.space.sophia:insert{310, "tuple 310"}
+box.space.phia:insert{310, "tuple 310"}
 -
 []
 
-box.space.sophia:insert{311, "tuple 311"}
+box.space.phia:insert{311, "tuple 311"}
 -
 []
 
-box.space.sophia:insert{312, "tuple 312"}
+box.space.phia:insert{312, "tuple 312"}
 -
 []
 
-box.space.sophia:insert{313, "tuple 313"}
+box.space.phia:insert{313, "tuple 313"}
 -
 []
 
-box.space.sophia:insert{314, "tuple 314"}
+box.space.phia:insert{314, "tuple 314"}
 -
 []
 
@@ -5244,23 +5244,23 @@ box.space.memtx:select{314}
 -
 - [314, tuple 314]
 
-box.space.sophia:select{310}
+box.space.phia:select{310}
 -
 - [310, tuple 310]
 
-box.space.sophia:select{311}
+box.space.phia:select{311}
 -
 - [311, tuple 311]
 
-box.space.sophia:select{312}
+box.space.phia:select{312}
 -
 - [312, tuple 312]
 
-box.space.sophia:select{313}
+box.space.phia:select{313}
 -
 - [313, tuple 313]
 
-box.space.sophia:select{314}
+box.space.phia:select{314}
 -
 - [314, tuple 314]
 
@@ -5284,23 +5284,23 @@ box.space.memtx:insert{319, "tuple 319"}
 -
 - [319, tuple 319]
 
-box.space.sophia:insert{315, "tuple 315"}
+box.space.phia:insert{315, "tuple 315"}
 -
 []
 
-box.space.sophia:insert{316, "tuple 316"}
+box.space.phia:insert{316, "tuple 316"}
 -
 []
 
-box.space.sophia:insert{317, "tuple 317"}
+box.space.phia:insert{317, "tuple 317"}
 -
 []
 
-box.space.sophia:insert{318, "tuple 318"}
+box.space.phia:insert{318, "tuple 318"}
 -
 []
 
-box.space.sophia:insert{319, "tuple 319"}
+box.space.phia:insert{319, "tuple 319"}
 -
 []
 
@@ -5324,23 +5324,23 @@ box.space.memtx:select{319}
 -
 - [319, tuple 319]
 
-box.space.sophia:select{315}
+box.space.phia:select{315}
 -
 - [315, tuple 315]
 
-box.space.sophia:select{316}
+box.space.phia:select{316}
 -
 - [316, tuple 316]
 
-box.space.sophia:select{317}
+box.space.phia:select{317}
 -
 - [317, tuple 317]
 
-box.space.sophia:select{318}
+box.space.phia:select{318}
 -
 - [318, tuple 318]
 
-box.space.sophia:select{319}
+box.space.phia:select{319}
 -
 - [319, tuple 319]
 
@@ -5371,23 +5371,23 @@ box.space.memtx:insert{324, "tuple 324"}
 -
 - [324, tuple 324]
 
-box.space.sophia:insert{320, "tuple 320"}
+box.space.phia:insert{320, "tuple 320"}
 -
 []
 
-box.space.sophia:insert{321, "tuple 321"}
+box.space.phia:insert{321, "tuple 321"}
 -
 []
 
-box.space.sophia:insert{322, "tuple 322"}
+box.space.phia:insert{322, "tuple 322"}
 -
 []
 
-box.space.sophia:insert{323, "tuple 323"}
+box.space.phia:insert{323, "tuple 323"}
 -
 []
 
-box.space.sophia:insert{324, "tuple 324"}
+box.space.phia:insert{324, "tuple 324"}
 -
 []
 
@@ -5411,23 +5411,23 @@ box.space.memtx:select{324}
 -
 - [324, tuple 324]
 
-box.space.sophia:select{320}
+box.space.phia:select{320}
 -
 - [320, tuple 320]
 
-box.space.sophia:select{321}
+box.space.phia:select{321}
 -
 - [321, tuple 321]
 
-box.space.sophia:select{322}
+box.space.phia:select{322}
 -
 - [322, tuple 322]
 
-box.space.sophia:select{323}
+box.space.phia:select{323}
 -
 - [323, tuple 323]
 
-box.space.sophia:select{324}
+box.space.phia:select{324}
 -
 - [324, tuple 324]
 
@@ -5451,23 +5451,23 @@ box.space.memtx:insert{329, "tuple 329"}
 -
 - [329, tuple 329]
 
-box.space.sophia:insert{325, "tuple 325"}
+box.space.phia:insert{325, "tuple 325"}
 -
 []
 
-box.space.sophia:insert{326, "tuple 326"}
+box.space.phia:insert{326, "tuple 326"}
 -
 []
 
-box.space.sophia:insert{327, "tuple 327"}
+box.space.phia:insert{327, "tuple 327"}
 -
 []
 
-box.space.sophia:insert{328, "tuple 328"}
+box.space.phia:insert{328, "tuple 328"}
 -
 []
 
-box.space.sophia:insert{329, "tuple 329"}
+box.space.phia:insert{329, "tuple 329"}
 -
 []
 
@@ -5491,23 +5491,23 @@ box.space.memtx:select{329}
 -
 - [329, tuple 329]
 
-box.space.sophia:select{325}
+box.space.phia:select{325}
 -
 - [325, tuple 325]
 
-box.space.sophia:select{326}
+box.space.phia:select{326}
 -
 - [326, tuple 326]
 
-box.space.sophia:select{327}
+box.space.phia:select{327}
 -
 - [327, tuple 327]
 
-box.space.sophia:select{328}
+box.space.phia:select{328}
 -
 - [328, tuple 328]
 
-box.space.sophia:select{329}
+box.space.phia:select{329}
 -
 - [329, tuple 329]
 
@@ -5537,23 +5537,23 @@ box.space.memtx:insert{334, "tuple 334"}
 -
 - [334, tuple 334]
 
-box.space.sophia:insert{330, "tuple 330"}
+box.space.phia:insert{330, "tuple 330"}
 -
 []
 
-box.space.sophia:insert{331, "tuple 331"}
+box.space.phia:insert{331, "tuple 331"}
 -
 []
 
-box.space.sophia:insert{332, "tuple 332"}
+box.space.phia:insert{332, "tuple 332"}
 -
 []
 
-box.space.sophia:insert{333, "tuple 333"}
+box.space.phia:insert{333, "tuple 333"}
 -
 []
 
-box.space.sophia:insert{334, "tuple 334"}
+box.space.phia:insert{334, "tuple 334"}
 -
 []
 
@@ -5577,23 +5577,23 @@ box.space.memtx:select{334}
 -
 - [334, tuple 334]
 
-box.space.sophia:select{330}
+box.space.phia:select{330}
 -
 - [330, tuple 330]
 
-box.space.sophia:select{331}
+box.space.phia:select{331}
 -
 - [331, tuple 331]
 
-box.space.sophia:select{332}
+box.space.phia:select{332}
 -
 - [332, tuple 332]
 
-box.space.sophia:select{333}
+box.space.phia:select{333}
 -
 - [333, tuple 333]
 
-box.space.sophia:select{334}
+box.space.phia:select{334}
 -
 - [334, tuple 334]
 
@@ -5617,23 +5617,23 @@ box.space.memtx:insert{339, "tuple 339"}
 -
 - [339, tuple 339]
 
-box.space.sophia:insert{335, "tuple 335"}
+box.space.phia:insert{335, "tuple 335"}
 -
 []
 
-box.space.sophia:insert{336, "tuple 336"}
+box.space.phia:insert{336, "tuple 336"}
 -
 []
 
-box.space.sophia:insert{337, "tuple 337"}
+box.space.phia:insert{337, "tuple 337"}
 -
 []
 
-box.space.sophia:insert{338, "tuple 338"}
+box.space.phia:insert{338, "tuple 338"}
 -
 []
 
-box.space.sophia:insert{339, "tuple 339"}
+box.space.phia:insert{339, "tuple 339"}
 -
 []
 
@@ -5657,23 +5657,23 @@ box.space.memtx:select{339}
 -
 - [339, tuple 339]
 
-box.space.sophia:select{335}
+box.space.phia:select{335}
 -
 - [335, tuple 335]
 
-box.space.sophia:select{336}
+box.space.phia:select{336}
 -
 - [336, tuple 336]
 
-box.space.sophia:select{337}
+box.space.phia:select{337}
 -
 - [337, tuple 337]
 
-box.space.sophia:select{338}
+box.space.phia:select{338}
 -
 - [338, tuple 338]
 
-box.space.sophia:select{339}
+box.space.phia:select{339}
 -
 - [339, tuple 339]
 
@@ -5704,23 +5704,23 @@ box.space.memtx:insert{344, "tuple 344"}
 -
 - [344, tuple 344]
 
-box.space.sophia:insert{340, "tuple 340"}
+box.space.phia:insert{340, "tuple 340"}
 -
 []
 
-box.space.sophia:insert{341, "tuple 341"}
+box.space.phia:insert{341, "tuple 341"}
 -
 []
 
-box.space.sophia:insert{342, "tuple 342"}
+box.space.phia:insert{342, "tuple 342"}
 -
 []
 
-box.space.sophia:insert{343, "tuple 343"}
+box.space.phia:insert{343, "tuple 343"}
 -
 []
 
-box.space.sophia:insert{344, "tuple 344"}
+box.space.phia:insert{344, "tuple 344"}
 -
 []
 
@@ -5744,23 +5744,23 @@ box.space.memtx:select{344}
 -
 - [344, tuple 344]
 
-box.space.sophia:select{340}
+box.space.phia:select{340}
 -
 - [340, tuple 340]
 
-box.space.sophia:select{341}
+box.space.phia:select{341}
 -
 - [341, tuple 341]
 
-box.space.sophia:select{342}
+box.space.phia:select{342}
 -
 - [342, tuple 342]
 
-box.space.sophia:select{343}
+box.space.phia:select{343}
 -
 - [343, tuple 343]
 
-box.space.sophia:select{344}
+box.space.phia:select{344}
 -
 - [344, tuple 344]
 
@@ -5784,23 +5784,23 @@ box.space.memtx:insert{349, "tuple 349"}
 -
 - [349, tuple 349]
 
-box.space.sophia:insert{345, "tuple 345"}
+box.space.phia:insert{345, "tuple 345"}
 -
 []
 
-box.space.sophia:insert{346, "tuple 346"}
+box.space.phia:insert{346, "tuple 346"}
 -
 []
 
-box.space.sophia:insert{347, "tuple 347"}
+box.space.phia:insert{347, "tuple 347"}
 -
 []
 
-box.space.sophia:insert{348, "tuple 348"}
+box.space.phia:insert{348, "tuple 348"}
 -
 []
 
-box.space.sophia:insert{349, "tuple 349"}
+box.space.phia:insert{349, "tuple 349"}
 -
 []
 
@@ -5824,23 +5824,23 @@ box.space.memtx:select{349}
 -
 - [349, tuple 349]
 
-box.space.sophia:select{345}
+box.space.phia:select{345}
 -
 - [345, tuple 345]
 
-box.space.sophia:select{346}
+box.space.phia:select{346}
 -
 - [346, tuple 346]
 
-box.space.sophia:select{347}
+box.space.phia:select{347}
 -
 - [347, tuple 347]
 
-box.space.sophia:select{348}
+box.space.phia:select{348}
 -
 - [348, tuple 348]
 
-box.space.sophia:select{349}
+box.space.phia:select{349}
 -
 - [349, tuple 349]
 
@@ -5870,23 +5870,23 @@ box.space.memtx:insert{354, "tuple 354"}
 -
 - [354, tuple 354]
 
-box.space.sophia:insert{350, "tuple 350"}
+box.space.phia:insert{350, "tuple 350"}
 -
 []
 
-box.space.sophia:insert{351, "tuple 351"}
+box.space.phia:insert{351, "tuple 351"}
 -
 []
 
-box.space.sophia:insert{352, "tuple 352"}
+box.space.phia:insert{352, "tuple 352"}
 -
 []
 
-box.space.sophia:insert{353, "tuple 353"}
+box.space.phia:insert{353, "tuple 353"}
 -
 []
 
-box.space.sophia:insert{354, "tuple 354"}
+box.space.phia:insert{354, "tuple 354"}
 -
 []
 
@@ -5910,23 +5910,23 @@ box.space.memtx:select{354}
 -
 - [354, tuple 354]
 
-box.space.sophia:select{350}
+box.space.phia:select{350}
 -
 - [350, tuple 350]
 
-box.space.sophia:select{351}
+box.space.phia:select{351}
 -
 - [351, tuple 351]
 
-box.space.sophia:select{352}
+box.space.phia:select{352}
 -
 - [352, tuple 352]
 
-box.space.sophia:select{353}
+box.space.phia:select{353}
 -
 - [353, tuple 353]
 
-box.space.sophia:select{354}
+box.space.phia:select{354}
 -
 - [354, tuple 354]
 
@@ -5950,23 +5950,23 @@ box.space.memtx:insert{359, "tuple 359"}
 -
 - [359, tuple 359]
 
-box.space.sophia:insert{355, "tuple 355"}
+box.space.phia:insert{355, "tuple 355"}
 -
 []
 
-box.space.sophia:insert{356, "tuple 356"}
+box.space.phia:insert{356, "tuple 356"}
 -
 []
 
-box.space.sophia:insert{357, "tuple 357"}
+box.space.phia:insert{357, "tuple 357"}
 -
 []
 
-box.space.sophia:insert{358, "tuple 358"}
+box.space.phia:insert{358, "tuple 358"}
 -
 []
 
-box.space.sophia:insert{359, "tuple 359"}
+box.space.phia:insert{359, "tuple 359"}
 -
 []
 
@@ -5990,23 +5990,23 @@ box.space.memtx:select{359}
 -
 - [359, tuple 359]
 
-box.space.sophia:select{355}
+box.space.phia:select{355}
 -
 - [355, tuple 355]
 
-box.space.sophia:select{356}
+box.space.phia:select{356}
 -
 - [356, tuple 356]
 
-box.space.sophia:select{357}
+box.space.phia:select{357}
 -
 - [357, tuple 357]
 
-box.space.sophia:select{358}
+box.space.phia:select{358}
 -
 - [358, tuple 358]
 
-box.space.sophia:select{359}
+box.space.phia:select{359}
 -
 - [359, tuple 359]
 
@@ -6037,23 +6037,23 @@ box.space.memtx:insert{364, "tuple 364"}
 -
 - [364, tuple 364]
 
-box.space.sophia:insert{360, "tuple 360"}
+box.space.phia:insert{360, "tuple 360"}
 -
 []
 
-box.space.sophia:insert{361, "tuple 361"}
+box.space.phia:insert{361, "tuple 361"}
 -
 []
 
-box.space.sophia:insert{362, "tuple 362"}
+box.space.phia:insert{362, "tuple 362"}
 -
 []
 
-box.space.sophia:insert{363, "tuple 363"}
+box.space.phia:insert{363, "tuple 363"}
 -
 []
 
-box.space.sophia:insert{364, "tuple 364"}
+box.space.phia:insert{364, "tuple 364"}
 -
 []
 
@@ -6077,23 +6077,23 @@ box.space.memtx:select{364}
 -
 - [364, tuple 364]
 
-box.space.sophia:select{360}
+box.space.phia:select{360}
 -
 - [360, tuple 360]
 
-box.space.sophia:select{361}
+box.space.phia:select{361}
 -
 - [361, tuple 361]
 
-box.space.sophia:select{362}
+box.space.phia:select{362}
 -
 - [362, tuple 362]
 
-box.space.sophia:select{363}
+box.space.phia:select{363}
 -
 - [363, tuple 363]
 
-box.space.sophia:select{364}
+box.space.phia:select{364}
 -
 - [364, tuple 364]
 
@@ -6117,23 +6117,23 @@ box.space.memtx:insert{369, "tuple 369"}
 -
 - [369, tuple 369]
 
-box.space.sophia:insert{365, "tuple 365"}
+box.space.phia:insert{365, "tuple 365"}
 -
 []
 
-box.space.sophia:insert{366, "tuple 366"}
+box.space.phia:insert{366, "tuple 366"}
 -
 []
 
-box.space.sophia:insert{367, "tuple 367"}
+box.space.phia:insert{367, "tuple 367"}
 -
 []
 
-box.space.sophia:insert{368, "tuple 368"}
+box.space.phia:insert{368, "tuple 368"}
 -
 []
 
-box.space.sophia:insert{369, "tuple 369"}
+box.space.phia:insert{369, "tuple 369"}
 -
 []
 
@@ -6157,23 +6157,23 @@ box.space.memtx:select{369}
 -
 - [369, tuple 369]
 
-box.space.sophia:select{365}
+box.space.phia:select{365}
 -
 - [365, tuple 365]
 
-box.space.sophia:select{366}
+box.space.phia:select{366}
 -
 - [366, tuple 366]
 
-box.space.sophia:select{367}
+box.space.phia:select{367}
 -
 - [367, tuple 367]
 
-box.space.sophia:select{368}
+box.space.phia:select{368}
 -
 - [368, tuple 368]
 
-box.space.sophia:select{369}
+box.space.phia:select{369}
 -
 - [369, tuple 369]
 
@@ -6203,23 +6203,23 @@ box.space.memtx:insert{374, "tuple 374"}
 -
 - [374, tuple 374]
 
-box.space.sophia:insert{370, "tuple 370"}
+box.space.phia:insert{370, "tuple 370"}
 -
 []
 
-box.space.sophia:insert{371, "tuple 371"}
+box.space.phia:insert{371, "tuple 371"}
 -
 []
 
-box.space.sophia:insert{372, "tuple 372"}
+box.space.phia:insert{372, "tuple 372"}
 -
 []
 
-box.space.sophia:insert{373, "tuple 373"}
+box.space.phia:insert{373, "tuple 373"}
 -
 []
 
-box.space.sophia:insert{374, "tuple 374"}
+box.space.phia:insert{374, "tuple 374"}
 -
 []
 
@@ -6243,23 +6243,23 @@ box.space.memtx:select{374}
 -
 - [374, tuple 374]
 
-box.space.sophia:select{370}
+box.space.phia:select{370}
 -
 - [370, tuple 370]
 
-box.space.sophia:select{371}
+box.space.phia:select{371}
 -
 - [371, tuple 371]
 
-box.space.sophia:select{372}
+box.space.phia:select{372}
 -
 - [372, tuple 372]
 
-box.space.sophia:select{373}
+box.space.phia:select{373}
 -
 - [373, tuple 373]
 
-box.space.sophia:select{374}
+box.space.phia:select{374}
 -
 - [374, tuple 374]
 
@@ -6283,23 +6283,23 @@ box.space.memtx:insert{379, "tuple 379"}
 -
 - [379, tuple 379]
 
-box.space.sophia:insert{375, "tuple 375"}
+box.space.phia:insert{375, "tuple 375"}
 -
 []
 
-box.space.sophia:insert{376, "tuple 376"}
+box.space.phia:insert{376, "tuple 376"}
 -
 []
 
-box.space.sophia:insert{377, "tuple 377"}
+box.space.phia:insert{377, "tuple 377"}
 -
 []
 
-box.space.sophia:insert{378, "tuple 378"}
+box.space.phia:insert{378, "tuple 378"}
 -
 []
 
-box.space.sophia:insert{379, "tuple 379"}
+box.space.phia:insert{379, "tuple 379"}
 -
 []
 
@@ -6323,23 +6323,23 @@ box.space.memtx:select{379}
 -
 - [379, tuple 379]
 
-box.space.sophia:select{375}
+box.space.phia:select{375}
 -
 - [375, tuple 375]
 
-box.space.sophia:select{376}
+box.space.phia:select{376}
 -
 - [376, tuple 376]
 
-box.space.sophia:select{377}
+box.space.phia:select{377}
 -
 - [377, tuple 377]
 
-box.space.sophia:select{378}
+box.space.phia:select{378}
 -
 - [378, tuple 378]
 
-box.space.sophia:select{379}
+box.space.phia:select{379}
 -
 - [379, tuple 379]
 
@@ -6370,23 +6370,23 @@ box.space.memtx:insert{384, "tuple 384"}
 -
 - [384, tuple 384]
 
-box.space.sophia:insert{380, "tuple 380"}
+box.space.phia:insert{380, "tuple 380"}
 -
 []
 
-box.space.sophia:insert{381, "tuple 381"}
+box.space.phia:insert{381, "tuple 381"}
 -
 []
 
-box.space.sophia:insert{382, "tuple 382"}
+box.space.phia:insert{382, "tuple 382"}
 -
 []
 
-box.space.sophia:insert{383, "tuple 383"}
+box.space.phia:insert{383, "tuple 383"}
 -
 []
 
-box.space.sophia:insert{384, "tuple 384"}
+box.space.phia:insert{384, "tuple 384"}
 -
 []
 
@@ -6410,23 +6410,23 @@ box.space.memtx:select{384}
 -
 - [384, tuple 384]
 
-box.space.sophia:select{380}
+box.space.phia:select{380}
 -
 - [380, tuple 380]
 
-box.space.sophia:select{381}
+box.space.phia:select{381}
 -
 - [381, tuple 381]
 
-box.space.sophia:select{382}
+box.space.phia:select{382}
 -
 - [382, tuple 382]
 
-box.space.sophia:select{383}
+box.space.phia:select{383}
 -
 - [383, tuple 383]
 
-box.space.sophia:select{384}
+box.space.phia:select{384}
 -
 - [384, tuple 384]
 
@@ -6450,23 +6450,23 @@ box.space.memtx:insert{389, "tuple 389"}
 -
 - [389, tuple 389]
 
-box.space.sophia:insert{385, "tuple 385"}
+box.space.phia:insert{385, "tuple 385"}
 -
 []
 
-box.space.sophia:insert{386, "tuple 386"}
+box.space.phia:insert{386, "tuple 386"}
 -
 []
 
-box.space.sophia:insert{387, "tuple 387"}
+box.space.phia:insert{387, "tuple 387"}
 -
 []
 
-box.space.sophia:insert{388, "tuple 388"}
+box.space.phia:insert{388, "tuple 388"}
 -
 []
 
-box.space.sophia:insert{389, "tuple 389"}
+box.space.phia:insert{389, "tuple 389"}
 -
 []
 
@@ -6490,23 +6490,23 @@ box.space.memtx:select{389}
 -
 - [389, tuple 389]
 
-box.space.sophia:select{385}
+box.space.phia:select{385}
 -
 - [385, tuple 385]
 
-box.space.sophia:select{386}
+box.space.phia:select{386}
 -
 - [386, tuple 386]
 
-box.space.sophia:select{387}
+box.space.phia:select{387}
 -
 - [387, tuple 387]
 
-box.space.sophia:select{388}
+box.space.phia:select{388}
 -
 - [388, tuple 388]
 
-box.space.sophia:select{389}
+box.space.phia:select{389}
 -
 - [389, tuple 389]
 
@@ -6536,23 +6536,23 @@ box.space.memtx:insert{394, "tuple 394"}
 -
 - [394, tuple 394]
 
-box.space.sophia:insert{390, "tuple 390"}
+box.space.phia:insert{390, "tuple 390"}
 -
 []
 
-box.space.sophia:insert{391, "tuple 391"}
+box.space.phia:insert{391, "tuple 391"}
 -
 []
 
-box.space.sophia:insert{392, "tuple 392"}
+box.space.phia:insert{392, "tuple 392"}
 -
 []
 
-box.space.sophia:insert{393, "tuple 393"}
+box.space.phia:insert{393, "tuple 393"}
 -
 []
 
-box.space.sophia:insert{394, "tuple 394"}
+box.space.phia:insert{394, "tuple 394"}
 -
 []
 
@@ -6576,23 +6576,23 @@ box.space.memtx:select{394}
 -
 - [394, tuple 394]
 
-box.space.sophia:select{390}
+box.space.phia:select{390}
 -
 - [390, tuple 390]
 
-box.space.sophia:select{391}
+box.space.phia:select{391}
 -
 - [391, tuple 391]
 
-box.space.sophia:select{392}
+box.space.phia:select{392}
 -
 - [392, tuple 392]
 
-box.space.sophia:select{393}
+box.space.phia:select{393}
 -
 - [393, tuple 393]
 
-box.space.sophia:select{394}
+box.space.phia:select{394}
 -
 - [394, tuple 394]
 
@@ -6616,23 +6616,23 @@ box.space.memtx:insert{399, "tuple 399"}
 -
 - [399, tuple 399]
 
-box.space.sophia:insert{395, "tuple 395"}
+box.space.phia:insert{395, "tuple 395"}
 -
 []
 
-box.space.sophia:insert{396, "tuple 396"}
+box.space.phia:insert{396, "tuple 396"}
 -
 []
 
-box.space.sophia:insert{397, "tuple 397"}
+box.space.phia:insert{397, "tuple 397"}
 -
 []
 
-box.space.sophia:insert{398, "tuple 398"}
+box.space.phia:insert{398, "tuple 398"}
 -
 []
 
-box.space.sophia:insert{399, "tuple 399"}
+box.space.phia:insert{399, "tuple 399"}
 -
 []
 
@@ -6656,23 +6656,23 @@ box.space.memtx:select{399}
 -
 - [399, tuple 399]
 
-box.space.sophia:select{395}
+box.space.phia:select{395}
 -
 - [395, tuple 395]
 
-box.space.sophia:select{396}
+box.space.phia:select{396}
 -
 - [396, tuple 396]
 
-box.space.sophia:select{397}
+box.space.phia:select{397}
 -
 - [397, tuple 397]
 
-box.space.sophia:select{398}
+box.space.phia:select{398}
 -
 - [398, tuple 398]
 
-box.space.sophia:select{399}
+box.space.phia:select{399}
 -
 - [399, tuple 399]
 
diff --git a/test/replication-py/swap.test.py b/test/replication-py/swap.test.py
index cac15e7474..ad4ef412f8 100644
--- a/test/replication-py/swap.test.py
+++ b/test/replication-py/swap.test.py
@@ -10,7 +10,7 @@ ID_STEP = 5
 LOGIN = 'test'
 PASSWORD = 'pass123456'
 
-engines = ['memtx', 'sophia']
+engines = ['memtx', 'phia']
 
 def insert_tuples(_server, begin, end, msg = "tuple"):
     for engine in engines:
@@ -30,7 +30,7 @@ def select_tuples(_server, begin, end):
 
 # master server
 master = server
-# Re-deploy server to cleanup Sophia data
+# Re-deploy server to cleanup Phia data
 master.stop()
 master.cleanup()
 master.deploy()
diff --git a/test/sophia/monitoring.test.lua b/test/sophia/monitoring.test.lua
deleted file mode 100644
index e7e2647bfe..0000000000
--- a/test/sophia/monitoring.test.lua
+++ /dev/null
@@ -1,5 +0,0 @@
-
-space = box.schema.space.create('test', { engine = 'sophia' })
-index = space:create_index('primary', { type = 'tree', parts = {1, 'str'} })
-box.sophia['sophia.version']
-space:drop()
diff --git a/test/sophia/options.test.lua b/test/sophia/options.test.lua
deleted file mode 100644
index 215d043928..0000000000
--- a/test/sophia/options.test.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-
-box.cfg.sophia
-box.cfg.sophia.threads = 5
-
-space = box.schema.space.create('test', { engine = 'sophia' })
-index = space:create_index('primary', {type = 'tree', amqf=1, read_oldest=0, parts = {1, 'NUM'}})
-box.sophia["db.".. tostring(space.id)..":0.amqf"]
-box.sophia["db.".. tostring(space.id)..":0.mmap"]
-space:drop()
-- 
GitLab