To make sure I am understanding this part correctly: the phone has to send another DNS query for the A record in order to register on the second server? What if there is DNS caching somewhere along the route from the phone?So when i test I take Server A down and withing 3-5 minutes I will see all the phones registered to Server B and can make and receive test calls and everything
I keep my Ttl at 30 seconds and during my testing I did notice for some reason some odd ball customer like only a couple they never updated, which was resolved. So I didn’t troubleshoot why I just assumed something was not updating so I just provisioned the phones to use 1.1.1.1 and 8.8.8.8 as the dns and the issue never happened again.To make sure I am understanding this part correctly: the phone has to send another DNS query for the A record in order to register on the second server? What if there is DNS caching somewhere along the route from the phone?
orry for grammar spelling mistakes, typing on phone while 1 year old smacking my faceI keep my Ttl at 30 seconds and during my testing I did notice for some reason some odd ball customer like only a couple they never updated, which was resolved. So I didn’t troubleshoot why I just assumed something was not updating so I just provisioned the phones to use 1.1.1.1 and 8.8.8.8 as the dns and the issue never happened again.
i also want to say the logic of using cx1.phones.contoso.com pointing to phones.contort.com was that both those records are in aws and when phone. Redirects to the secondary server in event of a failure is that the CX1.phones.* never changes so less dependent on other variables to propagate the DNS change.
I’m not a network engineer but it sounded logical in my head and has worked out great. I have done multiple tests and have yet to recognize any serious issues
It makes sense. Can you used a wildcard for CNAMEs? That'd make it super easy to do...i also want to say the logic of using cx1.phones.contoso.com pointing to phones.contort.com was that both those records are in aws and when phone. Redirects to the secondary server in event of a failure is that the CX1.phones.* never changes so less dependent on other variables to propagate the DNS change.
I’m not a network engineer but it sounded logical in my head and has worked out great. I have done multiple tests and have yet to recognize any serious issues
I guess I can test tonight and report back I just can’t imagine why you would use a wild card. Every tenant gets a domain so I can’t justify a reason for using wildcard. But In order to answer your question. I put kids down in about 3 hours and then I can lab out and report backIt makes sense. Can you used a wildcard for CNAMEs? That'd
I can test using CloudFlare. The reason I want to use a wildcard is to cut down on the number of records and to cut down on my work for creating and removing a clientI guess I can test tonight and report back I just can’t imagine why you would use a wild card. Every tenant gets a domain so I can’t justify a reason for using wildcard. But In order to answer your question. I put kids down in about 3 hours and then I can lab out and report back
I modified the password in the file and the two DBs to use a shorter password of [a-z], [A-Z], and [0-9] and it still failed. I modified the resources/require.php file to tell me which config file was being used, and /etc/fusionpbx/config.php is indeed being used. I am lost on why it won't take it.I modified the config at /etc/fusionpbx/config.php to include the proper password, yet it still fails. I am entering the password in plain text, just as I am setting it inside Postgres...is that an issue?
OHHH i appologize I don't know how i missed it but didn't realize you were trying to seperate the DB from fusion, i know I have seen people discuss that they have done this before on the forum, however, I don't believe I have ever see a thorough step by step on how to do that anywhere. I used to wonder why people do this and I believe it is required if you want True HA (unlike my setup which is poor mans HA, LoL). I wish I wasn't in the middle of another project otherwise I would do this with you. in my labs now, but Im roped into a cloud storage project for Security Cams.
i mean how big of an environment do you think you would scale to 1 year from launch, i mean right now people are pushing these things with 500+ concurrent on small servers so i mean what kinda numbers you predicting you will encounter.. also i could very well be wrong about this but isn't there some sort of 1000 concurrent php limitation or something... i dunno right now im at around 500 end users on my main server (i build dedicated for my big customers) and it never has more than 20 concurrent so if I get to a point where I even start to see 150-200 concurrent i will have an insane budget to to hire developers to make me a customized solution lol with a big smile on my face and down time would be min to migrate everyone to new server. I have just completed a migration couple months ago. I just migrate everything, test and then 2am point their dedicated domain to new server and as long as you ensure short TTLs on all your domains it is minimal downtime.The reason I want to separate it is two: Mark suggests it and it allows the switch and database to be scaled independently. Like I said, if I don't set it up like this today, I would do it down the road with active clients which may not end well and would cause downtime. To avoid the future maintenance window and because I own the servers, I am not worried about having another VM for the databases. The cost is there no matter how I do it.
I think I bricked the servers trying to figure things out, so I'm likely going to start over again and try things a bit differently.
Small. I don't see myself being big anytime soon, but migrations are always a pain.i mean how big of an environment do you think you would scale to 1 year from launch
You win. I have two servers in Dallas setup and I am at the 2 hour mark of video 2 trying to see what other goodies I should do to the servers. I had a bit of hiccups, caused by running commands incorrectly or in the wrong order/wrong server but I've decided to take snapshots along the way to give me easy restore points...I've had enough of reinstalling Debian for 2021.well if thats your plan, I would only suggest you don't let this desire get in your way of starting sooner than later.
# netstat -ant | grep 5433
tcp 0 0 127.0.0.1:5433 0.0.0.0:* LISTEN
So sorry for the late reply, no I never encountered this issue before i literally followed the membership videos step by step and didn't run into any issues except for when i fat fingered a command, sorry man.@Scubadave112 Sorry, I am working on this when I have the time and not in a straight shot...
Did you ever encounter the error "error: SQLSTATE[08006] [7] server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request." I am getting it when accessing FusionPBX through a browser after configuring haproxy and switching /etc/fusionpbx/config.php from port 5432 to 5433. If I switch it back to 5432, everything works. I am looking through the forums and am only seeing one person from 2017 or so that had the error, but in a different place. I am trying to sort through things and find the solution to try out.
I can confirm BDR is working because any modification on one server is replicated to the second. I also got syncthing working after some trouble and referencing the documentation for additional assistance.
--TL;DR--
I looked over every part of the haproxy.cfg except for the ports I was using....I mistyped them. Issue resolved.