Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The files are preprocessed during maven build and are populated with correct value for target environment (see Maven profiles and variable section in From source guide). 

We highly recommend using Tomcat 7.0.35+ as earlier versions have know issues with loading META-INF/context.xml incorrectly. 

...

Cache eviction through WS 

Indexing through WS 

There are several strategies to SF nodes configuration

...

To overcome this deficiency the following scheduled jobs are employed

Job Purpose Default schedule Config location 
Reindex Discontinued Products Remove discontinued products from FT index every day 5am web/support/src/main/resources/websupport-cronjob.xml 
Reindex All Products Full reindex disabled web/support/src/main/resources/websupport-cronjob.xml 
Inventory Changes Product Indexing Reindex products for which inventory changed since last execution every 5 minutes web/support/src/main/resources/websupport-cronjob.xml 

Generally Inventory Changes Product Indexing job should be enough to keep data fresh. However Reindex All Products can be used as a replacement for Reindex Discontinued Products to recreate index from time to time.

...

Code Block
<Resource name="jdbc/yespayjndi"
                 auth="Container"
                 scope="Shareable"
                 type="javax.sql.DataSource"
                 maxActive="1000"
                 maxIdle="30"
                 maxWait="10000"
                 removeAbandoned="true"
                 validationQuery="SELECT 1"
                 autoReconnect="true"
                 username="app"
                 password="app"
                 driverClassName="org.apache.derby.jdbc.ClientDriver"
                 url="jdbc:derby://localhost:1527/yespay"
                 minEvictableIdleTimeMillis="864000000" />

<Resource name="jdbc/yesjndi"
                 auth="Container"
                 scope="Shareable"
                 type="javax.sql.DataSource"
                 maxActive="100"
                 maxIdle="30"
                 maxWait="10000"
                 removeAbandoned="true"
                 validationQuery="SELECT 1"
                 autoReconnect="true"
                 username="app"
                 password="app"
                 driverClassName="org.apache.derby.jdbc.ClientDriver"
                 url="jdbc:derby://localhost:1527/yes"
                 minEvictableIdleTimeMillis="864000000" />

 

Cloud computing

 

Cloud computing is very large topic for discussion. Mainly it depends on the cloud offering. Some clouds are very unpredictable in the way they behave such as cutting threads if resources are low, inability to access file system etc. Therefore there is no single solution for all clouds and the integrations are very much vendor specific. Therefore tuning YC to specific Cloud is very much manual process.

...