Firebird/Developer Guidelines: Difference between revisions
From stonehomewiki
Jump to navigationJump to search
Stonezhong (talk | contribs) |
Stonezhong (talk | contribs) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
= Kubernete Dashboard = | |||
<div class="toccolours mw-collapsible mw-collapsed expandable"> | |||
<div class="mw-collapsible-preview"></div> | |||
<div class="mw-collapsible-content"> | |||
You can create a SSH tunnel and use port forward | |||
<pre><nowiki> | |||
ssh -L 8443:localhost:8443 beta-k8s-admin | |||
k port-forward service/kubernetes-dashboard -n kube-system 8443:443 | |||
</nowiki></pre> | |||
</div> | |||
</div> | |||
<p></p> | |||
= Test Environment = | = Test Environment = | ||
<div class="toccolours mw-collapsible mw-collapsed expandable"> | <div class="toccolours mw-collapsible mw-collapsed expandable"> | ||
| Line 5: | Line 18: | ||
During development, it is very time consuming to rebuild docker image for streaming application and firebird web console. Here is what I did | During development, it is very time consuming to rebuild docker image for streaming application and firebird web console. Here is what I did | ||
Here is what you can do | |||
(1) Update firebird console code | |||
(2) run bin/dev-upload.sh | |||
(3) On firebird console, run ./dev_install.sh to pick up the change | |||
./dev_install.sh | |||
To reload firebird web console | To reload firebird web console | ||
| Line 40: | Line 35: | ||
<div class="mw-collapsible-preview"></div> | <div class="mw-collapsible-preview"></div> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
There might be time data in zookeeper might be corrupted, and sometimes it need manual recover. | |||
Find ZooKeeper pod | |||
<pre><nowiki> | |||
k get pods | |||
NAME READY STATUS RESTARTS AGE | |||
demo-pod 1/1 Running 0 10h | |||
firebird-console-deployment-54476fb5dc-k4l4t 1/1 Running 0 5h26m | |||
rabbitmq-7675755457-c6fpc 1/1 Running 0 10h | |||
zookeeper-7967d6f86-gjsrc 1/1 Running 0 6h16m | |||
k exec -it zookeeper-7967d6f86-gjsrc -- bash | |||
bin/zkCli.sh | |||
# list everything under root | |||
ls -R / | |||
# delete everything under pipeline | |||
deleteall /pipelines | |||
delete /firebird-global-lock | |||
</nowiki></pre> | |||
</div> | |||
</div> | |||
<p></p> | |||
= Scale = | |||
<div class="toccolours mw-collapsible mw-collapsed expandable"> | |||
<div class="mw-collapsible-preview"></div> | |||
<div class="mw-collapsible-content"> | |||
<pre><nowiki> | <pre><nowiki> | ||
kubectl scale --replicas=2 deployment/firebird-pipeline--test | |||
</nowiki></pre> | </nowiki></pre> | ||
</div> | </div> | ||
</div> | </div> | ||
<p></p> | <p></p> | ||