naidu / redmine-dmsf

Automatically exported from code.google.com/p/redmine-dmsf
0 stars 0 forks source link

Its better to make temporary files on DB #128

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Use Apache Load Balancer with BalancerMembers (ex. mongrel or thin) in 
different hosts.
2. All the BalancerMembers connect the same MySQL DB and dmsf attachment folder 
via network. This should be work file.
3. But tmpdir.rb makes temporary files in local of the host of one 
BalancerMember.

Apache may change to another BalancerMember in next action in another host 
which does not have temporary files.

So dmsf will make message of internal error.

I think its better to make temporary files on DB to be host distribution safe.

Our enviroment is following...

Redmine 1.1.2 stable
Ruby 1.8.7
DMSF 1.0.0
Windows Server 2003 + Windows Xp + Firefox or IE8
Apache 2.2.8
MySQL 5.0.51a

Original issue reported on code.google.com by mschib...@gmail.com on 28 Jul 2011 at 11:45

GoogleCodeExporter commented 9 years ago

Original comment by vit.jo...@gmail.com on 28 Jul 2011 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by vit.jo...@gmail.com on 27 Aug 2011 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by vit.jo...@gmail.com on 28 Aug 2011 at 1:20

GoogleCodeExporter commented 9 years ago
Is it possible to make temp folder under the dmsf folder?

In this case the dmsf folder should be shared with multi-processed Mongrels or 
Thins on proxy-balancer.

This shared dmsk folder is working well now.

If temp forlder could move under the dmsf forder, it should be work.

This solution is easier but effective.

Original comment by mschib...@gmail.com on 29 Aug 2011 at 1:19

GoogleCodeExporter commented 9 years ago
One workaround is to set the environment variable TMPDIR (or TMP or TEMP) when 
launching Rails. This sets Ruby's Dir.tmpdir.

Original comment by foudil.newbie on 18 Apr 2014 at 1:40