Open tehseensagar opened 7 years ago
You should be able to service seesaw_watchdog start
to run the binaries. Their logs should point you towards any simple fixups.
To see it do anything useful, you'll need to add a vserver with some backends to your cluster.pb (see https://github.com/google/seesaw/blob/master/etc/seesaw/cluster.pb.example).
Let me know if you have other specific questions.
Also trying to set this up but need some clarification on the cluster.pb.example entries.
Is there any place where all the options are documented? Gained some insight from the Find file Copy pathseesaw/pb/config/config.proto file but not a lot.
Thanks.
Oga
A vserver_entry maps most directly to an ipvs virtual service. A vserver provides the IP. vserver_entries add protocol and port (and other load balancing configuration)
vserver and ventry healthchecks are additive. vserver healthchecks apply to each ventry.
The proto is the right place for the documentation, but you're right that it's a bit lacking in that high level detail.
I ran into issues after installing, the service seems not to start, and trying to run seesaw
results into an error: Failed to connect to engine: Dial failed: dial unix /var/run/seesaw/engine/engine.sock: connect: no such file or directory
checking the logs shows multiple files that seem to be associated with the compiled files (seesaw_ha, seesaw_engine, seesaw_ha, seesaw_healthcheck), which one of these can I look into for guidance? thanks.
Is there any way to validate cluster.pb, running into this error: F0706 20:15:35.836574 1850 core.go:127] config.NewNotifier() failed: Notifier.bootstrap: Failed to load any cluster config
, despite having a cluster.pb file in /usr/local/seesaw
. My cluster.pb content is below:
seesaw_vip: <
fqdn: "apiserver.homelab.local"
ipv4: "10.0.0.50/24"
status: PRODUCTION
>
node: <
fqdn: "seesaw-1.homelab.local."
ipv4: "10.0.0.11/24"
status: PRODUCTION
>
node: <
fqdn: "seesaw-2.homelab.local."
ipv4: "10.0.0.12/24"
status: PRODUCTION
>
vserver: <
name: "vserver-admin@homelab.local"
entry_address: <
fqdn: "apiserver.homelab.local."
ipv4: "10.0.0.50/24"
status: PRODUCTION
>
rp: "vserver-admin@homelab.local"
vserver_entry: <
protocol: TCP
port: 443
scheduler: WRR
persistence: 120
>
>
backend: <
host: <
fqdn: "controller0.homelab.local."
ipv4: "10.0.0.20/24"
status: PRODUCTION
>
weight: 1
>
backend: <
host: <
fqdn: "controller1.homelab.local."
ipv4: "10.0.0.21/24"
status: PRODUCTION
>
weight: 1
>
backend: <
host: <
fqdn: "controller2.homelab.local."
ipv4: "10.0.0.22/24"
status: PRODUCTION
>
weight: 1
>
>
metadata: <
last_updated: 1447906527
>
dedicated_vip_subnet: "10.0.0.0/24"
Even i am facing the above issue, I have placed my cluster.pb in /etc/seesaw directory
Is there any way i can vaidate my cluster.pb is good, what else can cause this?
-srini
Ok i was able to fix, there was a typo in the file. But now seesaw is up But unable to list any virtual servers, Here is my config
ubuntu@ip-172-31-8-43:/var/log/seesaw$ cat /etc/seesaw/seesaw.cfg [cluster] anycast_enabled = false name = rtmp-pool node_ipv4 = 172.31.8.43 vip_ipv4 = 172.31.6.176
[interface] node = eth0 lb = eth1
ubuntu@ip-172-31-8-43:/var/log/seesaw$ cat /etc/seesaw/cluster.pb seesaw_vip: < fqdn: "ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com" status: TESTING
node: < fqdn: "ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com" status: TESTING
vserver: < name: "RTMP" entry_address: < fqdn : "ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com" status: TESTING
rp: "test@test.com" vserver_entry: < protocol : TCP port: 1935 scheduler : RR healthcheck: < type: TCP port: 1935 mode: DSR
backend: < host: < fqdn: "ec2-xx-xx-xx-xx.us-west-1.compute.amazonaws.com" status: TESTING
ubuntu@ip-172-31-8-43:/var/log/seesaw$ sudo seesaw -c "show vservers" No vservers found
There should be some information in /var/log/seesaw/seesaw_engine.INFO to help.
I am seeing the following in the log
E1004 22:00:06.548921 11873 core.go:367] Manager failed to determine haConfig: node <
I'm planning to test performance of the seesaw but it's difficult for me to figure out the topology. Could you show me the topology to setup a test environment? For example: https://github.com/iqiyi/dpvs/blob/master/doc/pics/fnat-two-arm.png
Thanks, TiepNV
I have successfully installed seesaw with out any error and Im sharing it here hope it will help other beginners like me.
Installing Go
After Installing golan run following command
go env
Follwong output:
Fixing Path issue:
This path GOPATH="" should not be empty to fix this use following
For permanant path fix:
vi /root/.bashrc
Paste the following line at the end of file:
Now, It has to install Go packages in your GOPATH and in my case path is: /root/go
Settingup-Go
Compiling Seesaw Code:
Copy Installation-Script
copy seesaw_install.sh script and paste it into following path
Modified the Install Script:
Now I'm stuck where to get start with , Ive made following changes in seesaw.cfg and cluster.pb file.
Seesaw_cfg_file:
Cluster_pb_file:
Can any one guide me hwo to set itup furhter and run this? I'm lost
Regards Tehseen