![]() |
|
|
#23 |
|
Apr 2003
22×193 Posts |
After testing the virtual server, which should take place in the next two weeks i will transfer the llrnet server over to that location. There should be only an outage of maximum an hour or so and there will be no need to modify anything at the client as i will reroute the "no-ip" domains over to the new server. But i will have to test the procedure first with dummy data i have to create to make sure that everything works without any problems.
Next step will need some knowledge with PHP/html/apache and i think also linux. I want to set up the database also on the new server. Which will allow us to implement the following features available in the future. As i am a beginner in PHP i have no clue so far how to implement my ideas and have the setup also secure. At the moment all things run on one PC where nobody from the outside world has access so i did not do anything to make access sevcure. The structure i want to implement first needs the following things. 1. MySQL as RDBMS 2. Public HTML pages (NO DB access) 3. PHP scripts which should be run every hour/day These scripts generate the pages under 2 and some other internal things 4. no public HTML pages to have the posibility to run special PHP scripts to make special checks or generate special reservation files,...... These pages should never be visible to the public 5. directory structure that stores public files like workunit files to be reserved. (must be accessed by PHP to write the data) 6. directory structure for no public files. ( like returned residues) These files must be also visible to PHP but never to the public 7. The PHP scripts need to access some files from the llrnet server. So again access to a no public diretory but this time it is not within the apache scope. Now to the plans for the future: 1. Some pages that allow partly access to the DB to make it possible to create new teams or to join an existing team. This means that we will have to implement some authentication methods. 2. Pages to allow returning of sieved results via a web interface and not by mail/forum anymore. 3. Pages that allow returning PRP results via web interface and not by mail/forum anymore. I will need every help that i can get to set up the apache server in the right way so that there are no security problems and no way to damage the DB from the outside world. First thing i will have to find out is: How to implement the job automation (automated PHP script running) Is there a way to do it with the apache server or will i have to set up some cron jobs? I am open for every suggestion and also for additional ideas what the server should do, Lars Last fiddled with by ltd on 2005-12-14 at 21:38 |
|
|
|
|
|
#24 | |||||||||
|
Oct 2005
2010 Posts |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Last fiddled with by magnav0x on 2005-12-14 at 22:19 |
|||||||||
|
|
|
|
|
#25 | |||
|
Apr 2003
22×193 Posts |
Quote:
Quote:
Quote:
The post was only thought to give a short overview on my plans and not to describe all the things in detail. If you are interested i can write something done which should describe in detail what i have at the moment and what i think i will need. It looks like most of my problems come only from not knowing the apache config ( allow/deny access) and also not knowing linux permissions well enough. But lets see it this way. Its a good way to learn something new. For the authentication i think it should be possible to make online changes on your personal setup after login in. That should be create/join/leave a team and return some results. Lars |
|||
|
|
|
|
|
#26 | |
|
Oct 2005
22·5 Posts |
Quote:
Ok I understand those questions now. I'd love to read in detail everything you are wanting done. Post it here for others and/or e-mail me and we will discuss it further. I'd love to help you out. I'm no Linux genious but I know my away around good enough. Projects like these are always a good way to teach yourself. I learned PHP/SQL about 2 years ago when I wanted stats for Chessbrain (distributed computing project) but no one had any. So I decided to make my own. It took a while, but I found my way over hurdles and learned quite a bit about PHP and SQL. Now I'm doing it for a living. I'm still learning new things every day even at this point in time I can help you with just about any aspect of what you want above, just let me know and I'll pull up my sleeves and dive in with you.The hardest thing about helping is knowing how your database is/will structured. Typically I base code on how the database is layed out. Are you going to try to do everything from scratch (the database and all)? Or were you wanting to keep the current database structure and build around it? Sometimes it's better to start from scratch (redesign), but it depends on wether or not the current setup limit's the expansion in any way. Last fiddled with by magnav0x on 2005-12-14 at 23:25 |
|
|
|
|
|
|
#27 |
|
Apr 2003
22×193 Posts |
The description of the structures i build are a little bit long for the forum so i will mail them to you when the update is ready. (Everytime the same if you are the only programmer on a project no uptodate documentation.
)For the structure of the DB i am not sure if we should make a complete new structure. The original structure has its weak points but i am not sure if the load of addtional joins that is needed when using another structure are the better choice. For example the result table holds the status of the k/n pair and also the test information like (residue,factor and userids of the contributor who send in the result) The other way would be in my opinion to have a result table only holding a numeric key the k/n pair and some status information like (sieved, first prp test, second prp test) and then tables storing the testresults for each type using the numeric key as foreign key. Lars |
|
|
|
|
|
#28 | |
|
Oct 2005
22×5 Posts |
Quote:
|
|
|
|
|
|
|
#29 | |||
|
May 2005
Copenhagen, Denmark
172 Posts |
Quote:
Quote:
Quote:
OH |
|||
|
|
|
|
|
#30 |
|
Apr 2003
14048 Posts |
Number of entries in the master table is 3653513. That is not that much. Due to the usage of index data most of the queries are quite fast.
Problem are only some request that can not make good use of the index data. For example: Code:
select kvalue,min(nvalue) as nmin from testresult where distributionstate<30 and prptest1=0 and sievestatus=0 group by kvalue Primary key is kvalue,nvalue Secondary keys on distributionstate,sievestatus and prptest1 Explain shows usage of index sievestatus. Lars Last fiddled with by ltd on 2005-12-15 at 13:31 |
|
|
|
|
|
#31 |
|
Apr 2003
77210 Posts |
Oh by the way forgot to write:
The different column use the smallest possible datastructure like tinyint or mediumint. Only lines like the factor column use dynamic length types.(text) Lars Edit: I did some more tests with a different index structure using a combined index. Now response time is much better. I had used that index in the beginning but had to change it due to some bad timing. But in the meantime i had restructured the calculations that forced me to drop the combined index. And i forgot to give it a try once more. Now the timing and resource load of the DB is good again. I think there will be no problem anymore to run that beast on a virtual server. Last fiddled with by ltd on 2005-12-15 at 14:32 |
|
|
|
|
|
#32 |
|
Apr 2003
22·193 Posts |
@magnav0x:
Can you recomment some good literature/webpage about mysql performance tuning. I tried some tthing in the last minutes and got some unexpected results. For example i found that it is faster to use "distributionstate in (0,10,20)" instead of "distributionstate<30". This makes no difference when used in oracle. There is even a chance that the later is faster in oracle. So i need to read something about the special behaviours of mysql to come up with additional performace gains. Lars |
|
|
|
|
|
#33 | |
|
Oct 2005
22·5 Posts |
Quote:
Chris |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| new server setup discussion | mdettweiler | No Prime Left Behind | 15 | 2009-09-08 09:42 |
| NPLB LLRnet server discussion | em99010pepe | No Prime Left Behind | 229 | 2008-04-30 19:13 |
| CRUS LLRnet server discussion | em99010pepe | Conjectures 'R Us | 181 | 2008-02-04 19:51 |
| P-1 discussion | AntonVrba | Prime Cullen Prime | 5 | 2007-04-04 04:59 |
| New Server Hardware and price quotes, Funding the server | Angular | PrimeNet | 32 | 2002-12-09 01:12 |