DocCyblade / tkl-odoo

Turnkey Linux - Odoo v8 (Published v14.2)
https://www.turnkeylinux.org/odoo
GNU General Public License v3.0
21 stars 24 forks source link

Final Test: v14-READY #61

Closed DocCyblade closed 8 years ago

DocCyblade commented 8 years ago

Final Test:

I changed the workers to 0 this puts it into threaded mode. We need to test the following and document real memory and swap space used just to make sure this will work in most situations.

Final Testing Checklist

Memory use should build gradually as earlier with multiple PDF Generations 2nd Order Created. and Rendered

I don't really see the point of the following unless we put some Stronger Stress Tests IN Place. Last 3 Tests are pretty Level.

HARDER TEST (But Wrong RAM PULLED).. Only Set to 1 gb RAM

(Will RESTART and Throw to 4 GB) (ConfConsole Restart - ConfConsole did not Load. UPDATE UTMP System Changes ?
Will give this a bit. The other day I needed to restart when this happened. Just RESET. Wanted a SHUTDOWN however on CONF CONSOLE ?? Shutdown second time around. Set Ram to 4gb before new start which is now.

l-arnold commented 8 years ago

OK, On it. I assume to print 4 at a time I need 4 Browser sessions. Basically will just render to PDF or whatever.

Assuming I need to go to openerp-server.conf to change Workers to 0 Should I leave the Hard and Soft Limits intact?

DocCyblade commented 8 years ago

No select four selections print at one time

DocCyblade commented 8 years ago

All settings have been changed I the new branch Only thing to change is the cpu and ram for each test

l-arnold commented 8 years ago

512mb Ram, 1 Processor First install running 490mb of 500 mb available Install Sales Management, 499-502mb 3016 k Swap. Quite Slow Install initial of Sales Management 490 mb Ram, 3020 Swap

l-arnold commented 8 years ago

Is it Correct that the openerp-server.conf has 2 workers entries ?

workers = 2 workers = 0

l-arnold commented 8 years ago

Elimintated the "workers = 2 Entry for the first of the 512 x 2 cpu tests.

l-arnold commented 8 years ago

Note that at first install (before Database) Memory use is 29% of 1 Gb HTOP then Installed Memory use is 32% of 1 Gb

l-arnold commented 8 years ago

Will Wrap in the AM.

Concerned about the 2 x Workers Entry in openerp-server.conf Should set to 0 for these tests in my understanding

Ready for 3rd Round here.

l-arnold commented 8 years ago

Setting all workers to 0

"# workers = 2" workers = 0

(no comment hash in the build somehow and 2 entries. Expect the second would take precedence but not sure)

DocCyblade commented 8 years ago

@l-arnold you are correct I did a quick check and that workers = 2 should have been removed but was not. I have fixed that, but you are right that it will take the second one

l-arnold commented 8 years ago

Seems like 2 Processors and 1GIG Ram is working on this Test with 1 Worker. Install of Sales Management Module was noticably slow, but may always be slow

Both processors show usage at times.

l-arnold commented 8 years ago

I don't really see the point of the Last TEST unless we put some stronger stress tests IN Place. Last 3 Tests are pretty Level.

It does put my VM world under a pretty good test.. I've got 2.5 Gb avail. I will shut the last and maybe get 2gb back in the deal so I can run 4 gb.

l-arnold commented 8 years ago

The last test would have had some higher numbers if I would have loaded the DEMO data, but it puts straing on the system creating Customers and Products also.

Quotations Generated and Printed Delivery Orders Processed Invoices Generated and printed

Seems we are good. Did not really see a "faster system per say with 4cpu and 4gb RAM To Be Honest. I am sure with more user load things would change.

DocCyblade commented 8 years ago

The reason for the tests were to confirm that that threaded mode would be consistent with resources. It seems that it is in deed. Some times programs act differently when run in threaded mode vs process mode. I did not want to assume that it would be the same.

This also provides a baseline for minimum memory usage and confirmed my suspicions that 512MB would not be enough

Thanks for testing

l-arnold commented 8 years ago

What is your sense about 512? I have run most of my tests with 512 x 2 processors andb workers = 0 over thr last months and it seemed, gor testing, to be sufficient.

It will render orders etc with wkhtmltox.

I don't. think it is satisfactory for true production but prob ok for a small 1 or 2 person business.

DocCyblade commented 8 years ago

Will it run? Yes but you start eating into swap file almost immediately. Ok for testing and POC but 1GB would be the best.

Also you could easily use a desktop PC with and i5 processor and 2-3GB of RAM and run Odoo with out issues. Ram is cheep these days if hosting locally.

l-arnold commented 8 years ago

Agree. The issue I see is taking advantage of the Micro server on Turnkey Hub. ..02 an Hr is 50 cents a day, $15 per month.

I did not see almost any swap usage with a minimal billing install.

Next steps are .044 per hr $33 per month. .069 per hr .089 per hr. (ca $67 per month)

I know is mostly its what Odoo needs. I do think 1.5 GB is pretty sufficient for relatively robust installs and we should recommend 1 to 2 gb.

Costs running higher ram might encourage additional avenues of inquiry like Samba or multi db hosting and serving.

No inquiries for now IMHO.

DocCyblade commented 8 years ago

What's the cost vs letting Odoo host it?

l-arnold commented 8 years ago

It gets very expensive with Odoo if you have more than a few users. Plus they normally won't allow "external modules" on their servers. I don't know the current cost structure. They just changed it I understand.

Additionally, just recently, the domains on Odoo servers would be like : myserver.odoo.com and not myserver.com. When the whole issue of hosting a Website kicks in that gets a bit awkward.

l-arnold commented 8 years ago

MAKES TKL hosting seem ...

https://www.odoo.com/pricing#num_users=1&custom_apps=0

JedMeister commented 8 years ago

Yeah right! $25/user/mth + $15-25/additional-module/mth that would add up very quickly I would imagine.