Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
huynq0911 1898eba2df Change http to https for security links
For security, we should change http into https links.
This PR also update deprecated links

Signed-off-by: huynq0911 <huynq0911@gmail.com>
2019-02-16 12:41:48 +07:00
Alain Jobart 0ef9fdc2c6 Mass-replace youtube/vitess -> vitessio/vitess.
Signed-off-by: Alain Jobart <alainjobart@google.com>
2018-03-05 07:37:17 -08:00
Alain Jobart a5a6fc287a Creating ZK higher level directories.
It seems it's just simpler all around if the zk topology plugin creates
the higher level directories when needed. The deletion still stops at
the root though, seems safer.
2017-12-13 13:24:10 -08:00
Alain Jobart bf746ab4f7 Removing mentions of 'zk cat' command.
ALso reworking the topology service doc in view of recent changes.
2017-12-06 10:20:50 -08:00
Alain Jobart 79af4763a5 Updating topology doc to reflect Zk deprecation. 2017-12-04 09:48:15 -08:00
Alain Jobart e9f7be964b Updating doc. 2017-01-06 08:01:50 -08:00
Alain Jobart 9a1216147d Fixing explorer to handle empty files.
They can be directories in some topo server implementations.
2017-01-05 13:59:21 -08:00
Alain Jobart b76ca80c0b Adding Consul 0.7.2 to base docker image.
So docker-based tests work.
2017-01-05 08:55:03 -08:00
Alain Jobart b983684b96 Implementing the Consul topology client.
This change adds full support for a Consul-based topology service.
See https://www.consul.io/ for more information.

- Adding consul server to bootstrap.sh for download.
- Adding client library to vendor.json.
- In unit tests, we start a dev Consul instance.
- Adding consul support in end-to-end tests.
  Also running the test in travis.
- Updating topo doc.
- Adding Consul to 2.1 features.
2017-01-05 08:55:02 -08:00
Alain Jobart 372629f298 Addressing various topo review comments. 2017-01-03 07:20:01 -08:00
Alain Jobart 2eb97aaae7 New etcd 'etcd2' topology client implementation.
The new etcd2 topology service is the new more consistent version of the
etcd topology. It has the following improvements:

- Uses the same file structure as zk2topo. It then also uses the generic
  vtctld.Explorer as well.

- Uses the new etcd clientv3 library, with new key-value API and leases.
  It is not backwards compatible with the old etcd topology.

- Uses a configurable toplevel directory for topology data in global and
  local cells.

Vitess 2.1 will still include the old etcd topology client, but it will
be deprecated, and removed from Vitess 2.2. Use topo2topo binary to
upgrade, see documentation.

Implementation details:
- bootstrap.sh now downloads etcd.
- etcd is used in unit tests of the library, instead of using a mock.
- Fixing wrangler.InitTablet error return.
  And adding -allow_update to test calls, so they work anyway.
- Running tabletmanager.py for zookeeper, zk2, etcd, etcd2 flavors.
- Ignoring the 'test' tag for vendored libraries. See:
  https://github.com/kardianos/govendor#ignoring-build-tags-and-excluding-packages
- in end-to-end tests, restarting etcd to wipe it.
- publish web site.
2016-12-28 07:02:37 -08:00
Alain Jobart 9c1edb6cbd Topology refactor: adding zk2 topology.
- Introducing topodata.CellInfo. Stored in the global topology server, it
describes a connection to a topology server for a cell. It has both a
server address and a root directory to use. Also adding vtctl commands
to deal with it. Existing zk and etcd implementations ignore these flags
for now.

- Now passing toplevel server address and root as generic topology
parameters. And using a topo server factory method.

- Changing the topo server registration to use a Factory method. It
creates a topology server implementation with a server address and a
root path. Existing zk and etcd implementations ignore these flags for
now.

- adding a zk2 topology implementation. It doesn't use any of the go/zk
code, and allows the specification of a root directory for both the
global cell, and each individual cell. It also is using a different
directory structure, consistent with what we want all new topo
implementations to use. And it stores the data as protobuf, not json.

- deprecating the legacy 'zookeeper' implementation. Adding instructions
to migrate from old server style to new server style.

- removing old janitor code, been replaced by topo validator workflow.

- Using a more generic vtctld topo explorer, will use it in all servers
soon.

- Fixing the ZK command line to decode protos and use new connection
library.

- topo2topo now also copies VSchema.
2016-12-15 16:40:53 -08:00
Michael Berlin fd58adbd2b vitess.io: Stop publishing /doc/*.md files on vitess.io which are NOT already listed in the menu.
For example, http://vitess.io/doc/TopologyService/ was published but
never reachable from any navigation entry.

Stopping to publish /doc/ pages will also avoid duplication e.g.
- http://vitess.io/doc/Reparenting/ vs.
- http://vitess.io/user-guide/reparenting.html

Instead, to publish a page, an explicit *.md file must be created in /vitess.io and it must be linked in the navigation file vitess.io/_includes/left-nav-menu.html.

I did this for TopologyService.md and created vitess.io/user-guide/topology-service.md because it is a relevant page which is linked from several other pages.

This change also allows us to remove the script replace_doc_link.py. It
replaced github.com links (e.g.
https://github.com/youtube/vitess/blob/master/doc/TopologyService.md)
with a vitess.io link. Since we're always using absolute links anyway
(e.g. /user-guide/topology-service.html), this is no longer necessary.

By getting rid of the tool and the extra doc files (published under
_post), we can also avoid creating a copy when
running preview-site.sh. This way, Jekyll can watch the original folder
and automatically generate pages when something changes.

To make this work, I had to add the following symlinks:
vitess.io/_includes/doc
vitess.io/_includes/index.md
vitess.io/_includes/README.md

After this change, the following files in doc/ are not published on vitess.io:

- LifeOfAQuery.md
- Monitoring.md
- Production.md
- ReplicationStreamTiming.md
- TestingOnARamDisk.md
- TwoPhaseCommit.md
- V3HighLevelDesign.md
- V3VindexDesign.md
- Vision.md
- VTGateV3Features.md

Except for TestingOnARamDisk.md they also haven't been visible on vitess.io before. That's because no other page did link to them.
2016-11-05 21:55:06 -07:00
Alain Jobart 3f21ee8e33 Updating docs. 2016-06-02 14:07:43 -07:00
Alain Jobart c61f459815 Fixing a few doc issues. 2016-05-19 07:36:45 -07:00
Alain Jobart 2f05afec43 Removing SrvShard. 2016-05-18 07:47:20 -07:00
Anthony Yeh 8d5144ce33 Fix links to renamed VTGateV3.md 2015-12-03 13:54:41 -08:00
Alain Jobart d2809c3280 Updating doc to remove mentions of idle and scrap. 2015-10-23 07:12:49 -07:00
Alain Jobart 982063f08a Properly escaping some characters. 2015-06-04 11:02:01 -07:00
Alain Jobart 232205dae5 Revert "Adding couple docs, fixing formatting issues."
This reverts commit 86e8380721.
2015-06-04 11:01:12 -07:00
Alain Jobart 86e8380721 Adding couple docs, fixing formatting issues. 2015-06-04 06:58:16 -07:00
Anthony Yeh cbc39cd7b5 Add empty lines before bulleted lists in Markdown.
The 'recarpet' Markdown converter we use doesn't convert bulleted lists
if they aren't preceeded by empty lines.
2015-05-11 13:55:17 -07:00
Alain Jobart fea04f1503 Adding Sharding.md reference, fixing list markup syntax. 2015-05-11 10:46:44 -07:00
Alain Jobart 1119c56b81 Update TopologyService.md 2015-03-24 11:52:22 -07:00
Alain Jobart 5a2f8d2dbf Create TopologyService.md 2015-03-24 08:20:31 -07:00