Mall-Server | 基于SSH的商城API服务器
kandi X-RAY | Mall-Server Summary
kandi X-RAY | Mall-Server Summary
基于SSH的商城API服务器
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Method to get the list of Goods
- Retrieves the list of Goods with pagination
- Create user
- Validate token
- Add second process
- Add order to cart
- Delete merchant
- Intercept user request
- Add admin group
- Add admin user
- Add Goods
- Add home extend
- Returns the count of GoodsId with comment level
- Returns the count of GoodsCat in the given category
- Add the related comment
- Returns the count of items for a given merchantId
- Returns the list of Goods comments
- Download upload file
- Intercept the action
- Update Goods
- Login
- Add merchant
Mall-Server Key Features
Mall-Server Examples and Code Snippets
Community Discussions
Trending Discussions on Mall-Server
QUESTION
EDITED - Based on comments of @opster elasticsearch ninja, I edited original question to keep it focused on low disk watermarks error for ES.
For more general server optimization on small machine, see: Debugging Elasticsearch and tuning on small server, single node
For original follow up on the original question and considerations related to debugging ES failures, also: https://chat.stackoverflow.com/rooms/213776/discussion-between-opster-elasticsearch-ninja-and-user305883
Problem : I noticed that elasticsearch is failing frequently, and need to restart the server manually.
This question may relate to: High disk watermark exceeded even when there is not much data in my index
I want to have a better understanding about what elasticsearch will do if the disk size fails, how to optimise configuration and only afterwards eventually restart automatically when system fails.
Could you help in understanding how to read the elasticsearch journal and make a choice to fix the problems accordingly, suggesting best practices to tune server ops on a small server machine ?
My priority is not to have system crash; it is ok to have a bit less performance, no budget to increase server size.
Hardware
I am running elasticsearch on a single small server (2GB), have 3 index (500mb, 20mb and 65mb of store size) and several GB free on disk (state solid) : I would like to allow use virtual memory VS consuming RAM.
Below what I did:
What does the journal say?
journalctl | grep elasticsearch
> explore failures related to ES.
ANSWER
Answered 2020-May-14 at 17:03Please read the detailed explanation of opster's guide on what is low disk watermark and how to temp and permamnent fix it.
Explanation of your question:
Shards will be relocated away from this node" if I only have one server and one instance working?
Elasticsearch considers the available disk space before deciding whether to allocate new shards, relocate shards away or put all indices on reading mode based on a different threshold of this error, Reason being Elasticsearch indices consists of different shards which are persisted on data nodes and low disk space can cause the above issues.
In your case, as you have just one data node, all the indices on the same data node will be put into reading mode and even if you free up space it wouldn't come in writing mode until you explicitly hit the API mentioned in opster's guide.
Edit: On a single node it would be better to disable replica as Elasticsearch would not allocate replica of a shard to the same data node. So it doesn't make sense to have replicas on a single node Elasticasearch cluster and doing that will unnecessary mark your index and cluster health to yellow(missing replica).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Mall-Server
You can use Mall-Server like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Mall-Server component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page