Open link in a new tab

Content

Expand project menu

Method to setup remote memcached

Hi,

I am recently start using OpenProject Community Version.
I must to said that this is something that I have looked for a long time.
It can reach all my tasks that I need.
I just have some confusion in setting memcached.

I install the package version of OpenProject on my Amazon EC2 Server.
As the configuration manual, OpenProject can easily enable the memcache by setting cache_store = :memcache.
But I question is a little more than that. I try to find many resources to find out how to set up memcache in a remote server.
I actually found out three different place that are related to memcache.

But in fact, there is only one is working, which is adding config.cache_memcache_server in configuration.yml file.
The other two are additional_environment.rb and Environment Variable ENV ("MEMCACHE_SERVER")
So, maybe you guys should considering make a clear statement in readme file in github to clearly teach how to use memcached remotely.

The reason I use is because AWS provide one-year free tier which include a service called Elasticache. it provides two main different memcache mechanism “memcached” and “redis”.

Therefore, I believe there will be more and more people have the same question like me. Hope my suggestion is useful for this community, and I really want to help for developing this product. Unfortunately, I am not known enough Ruby on Rails to help develop this stuff. But, I do have more and more suggestion since I starting using it.

Thanks everyone to take times to look my first post.

See you _

Message actions

Hey Chiang,

the configuration guide is very explicit on the options you have for overriding the configuration.

- In a manual installation, simply set the setting in config/configuration.yml.

- In a packaged installation, this file is automatically updated by packager, so you should instead set an ENV override by running openproject config:set OPENPROJECT_CACHE__MEMCACHE__SERVER='<hostname:port>' as specified in the packaged installation guide (Manually set configuration options)

For the caching options, see https://github.com/opf/openproject/blob/dev/doc/CONFIGURATION.md#cache-options

Best,
Oliver