| // Licensed to the Apache Software Foundation (ASF) under one or more |
| // contributor license agreements. See the NOTICE file distributed with |
| // this work for additional information regarding copyright ownership. |
| // The ASF licenses this file to You under the Apache License, Version 2.0 |
| // (the "License"); you may not use this file except in compliance with |
| // the License. You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // dot -Gnewrank -Tpng indexing_service.dot > indexing_service.png |
| |
| digraph g { |
| node [ fontname = "Helvetica Neue" ] |
| node [ fontname = "Helvetica Neue" ] |
| edge [ fontname = "Helvetica Neue Light Italic" fontsize = 12] |
| |
| new_task[shape="plaintext" fontname="Helvetica Neue Light Italic"] |
| overlord[shape="box" label="Overlord"] |
| |
| new_task -> overlord |
| overlord -> zk_tasks:mm1:n [label = "new_task"] |
| zk_tasks:mm1 -> mm1 [label = "new_task"] |
| |
| subgraph cluster_0 { |
| style = "dotted" |
| label = "ZooKeeper" |
| fontname = "Helvetica Neue" |
| |
| zk_status -> zk_tasks [style="invis"] |
| |
| zk_status [fontname="Source Code Pro" shape = record label = "<status> /status | { <new_task> /new_task }"] |
| zk_tasks [fontname="Source Code Pro" shape=record label="<tasks> /tasks | {<mm1> /mm1 | <mm2> /mm2 | <mm3> /mm3}"] |
| |
| { rank = same; zk_status zk_tasks } |
| } |
| |
| subgraph cluster_mm1 { |
| style="dotted" |
| mm1 [shape = "box" label = "Middle Manager 1" ] |
| peon_11[label = "peon"] |
| peon_12[label = "peon"] |
| peon_13[label = "peon"] |
| |
| mm1 -> {peon_11;peon_12} |
| mm1 -> peon_13 [label = "new_task"] |
| mm1 -> peon_13:e [label = "new_task_status" dir=back] |
| } |
| |
| zk_status:new_task:s -> mm1:e [label = "new_task_status" dir = back] |
| overlord:e -> zk_status:new_task:n [dir=back label="new_task_status"] |
| } |