Skip to content

Commit

Permalink
Clean up memcached dependencies.
Browse files Browse the repository at this point in the history
These are no longer needed after vitessio#1742.
  • Loading branch information
enisoc committed May 31, 2016
1 parent 25542cd commit 60c3a1a
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 25 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ addons:
# NOTE: When you add a dependency, don't forget to add comment why it's necessary.
- automake
- libtool
- memcached
- php5-cli
- php5-dev
- python-dev
Expand Down
5 changes: 2 additions & 3 deletions doc/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ In addition, Vitess requires the software and libraries listed below.
- make
- automake
- libtool
- memcached
- python-dev
- python-virtualenv
- python-mysqldb
Expand All @@ -116,7 +115,7 @@ In addition, Vitess requires the software and libraries listed below.
These can be installed with the following apt-get command:

``` sh
$ sudo apt-get install make automake libtool memcached python-dev python-virtualenv python-mysqldb libssl-dev g++ mercurial git pkg-config bison curl unzip
$ sudo apt-get install make automake libtool python-dev python-virtualenv python-mysqldb libssl-dev g++ mercurial git pkg-config bison curl unzip
```

5. If you decided to use ZooKeeper in step 3, you also need to install a
Expand Down Expand Up @@ -152,7 +151,7 @@ In addition, Vitess requires the software and libraries listed below.
5. Run the following commands:

``` sh
brew install go automake libtool memcached python mercurial git bison curl wget homebrew/versions/mysql56
brew install go automake libtool python mercurial git bison curl wget homebrew/versions/mysql56
pip install --upgrade pip setuptools
pip install virtualenv
pip install MySQL-python
Expand Down
1 change: 0 additions & 1 deletion doc/Reparenting.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ This command performs the following actions:
1. Promotes the master-elect tablet to be the new master. In addition to
changing its tablet type to <code>master</code>, the master-elect
performs any other changes that might be required for its new state.
For example, it might need to modify the way its rowcache works.
1. Ensures replication is functioning properly via the following steps:
1. On the master-elect tablet, Vitess inserts an entry in a test table
and then updates the <code>MasterAlias</code> record of the global
Expand Down
2 changes: 1 addition & 1 deletion doc/V3HighLevelDesign.md
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ Join
select :_a_col+b.col from b where b.foo=:_a_bar
```

*However, such queries are not very efficient for VTTablet. It can’t cache field info, or use rowcache. Such push-downs don’t benefit MySQL either. So, it’s better to wait till VTGate implements the ability to evaluate expressions.*
*However, such queries are not very efficient for VTTablet. It can’t cache field info. Such push-downs don’t benefit MySQL either. So, it’s better to wait till VTGate implements the ability to evaluate expressions.*

SELECT can also contain subqueries. The same restriction as WHERE clauses can be applied here: If the keyspace id of the subquery is not the same as the outer query’s, we fail the query. Otherwise, we push it down.

Expand Down
7 changes: 3 additions & 4 deletions doc/Vision.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ kind of scalability that NoSQL databases provide.
### Priorities

* *Scalability*: This is achieved by replication and sharding.
* *Efficiency*: This is achieved by a proxy server (vttablet) that mediates
all queries and connections.
It also utilizes a more efficient rowcache to short-cut some of the queries.
This effectively increases a typical MySQL's serving capacity.
* *Efficiency*: This is achieved by a proxy server (vttablet) that
multiplexes queries into a fixed-size connection pool, and rewrites
updates by primary key to speed up slave applier threads.
* *Manageability*: As soon as you add replication and sharding that span
across multiple data centers, the number of servers spirals out of control.
Vitess provides a set of tools backed by a lockserver (zookeeper) to
Expand Down
3 changes: 1 addition & 2 deletions doc/VitessOverview.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ If you're considering a NoSQL solution primarily because of concerns about the s
* Connection pooling - Scale front-end connections while optimizing MySQL performance.
* Query de-duping – Reuse results of an in-flight query for any identical requests received while the in-flight query was still executing.
* Transaction manager – Limit number of concurrent transactions and manage deadlines to optimize overall throughput.
* Rowcache – Maintain a row-based cache (using memcached) to more efficiently field queries that require random access by primary key, very useful for OLTP workloads. (The MySQL buffer cache is optimized for range scans over indices and tables.). This can replace a custom caching layer implementation at the application layer.<br><br>

* **Protection**

Expand Down Expand Up @@ -117,7 +116,7 @@ The Vitess platform consists of a number of server processes, command-line utili

Depending on the current state of your application, you could arrive at a full Vitess implementation through a number of different process flows. For example, if you're building a service from scratch, your first step with Vitess would be to define your database topology. However, if you need to scale your existing database, you'd likely start by deploying a connection proxy.

Vitess tools and servers are designed to help you whether you start with a complete fleet of databases or start small and scale over time. For smaller implementations, vttablet features like connection pooling and rowcache help you get more from your existing hardware. Vitess' automation tools then provide additional benefits for larger implementations.
Vitess tools and servers are designed to help you whether you start with a complete fleet of databases or start small and scale over time. For smaller implementations, vttablet features like connection pooling and query rewriting help you get more from your existing hardware. Vitess' automation tools then provide additional benefits for larger implementations.

The diagram below illustrates Vitess' components:

Expand Down
1 change: 0 additions & 1 deletion docker/bootstrap/Dockerfile.common
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
libssl-dev \
libtool \
make \
memcached \
mercurial \
openjdk-7-jdk \
php-pear \
Expand Down
1 change: 0 additions & 1 deletion docker/lite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ RUN apt-key adv --recv-keys --keyserver pgp.mit.edu 5072E1F5 \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
bzip2 \
memcached \
libmysqlclient18 \
mysql-client \
mysql-server \
Expand Down
1 change: 0 additions & 1 deletion docker/lite/Dockerfile.mariadb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ RUN apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bzip2 \
memcached \
mariadb-server \
&& rm -rf /var/lib/apt/lists/*

Expand Down
1 change: 0 additions & 1 deletion docker/lite/Dockerfile.mysql56
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ RUN apt-key adv --recv-keys --keyserver pgp.mit.edu 5072E1F5 \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
bzip2 \
memcached \
libmysqlclient18 \
mysql-client \
mysql-server \
Expand Down
2 changes: 1 addition & 1 deletion docker/lite/Dockerfile.percona
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apt-key adv --keyserver ha.pool.sks-keyservers.net \
} | debconf-set-selections && \
apt-get update && \
apt-get install -y --no-install-recommends \
percona-server-server-5.6 bzip2 memcached && \
percona-server-server-5.6 bzip2 && \
rm -rf /var/lib/apt/lists/*

# Set up Vitess environment (just enough to run pre-built Go binaries)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ spec:
-queryserver-config-transaction-cap 300
-queryserver-config-schema-reload-time 1
-queryserver-config-pool-size 100
-enable_replication_reporter
-enable_replication_reporter" vitess
env:
- name: GOMAXPROCS
value: "16"
Expand Down
7 changes: 0 additions & 7 deletions examples/local/vttablet-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ esac

mkdir -p $VTDATAROOT/backups

# Look for memcached.
memcached_path=`which memcached`
if [ -z "$memcached_path" ]; then
echo "Can't find memcached. Please make sure it is available in PATH."
exit 1
fi

# Start 5 vttablets by default.
# Pass a list of UID indices on the command line to override.
uids=${@:-'0 1 2 3 4'}
Expand Down

0 comments on commit 60c3a1a

Please sign in to comment.