Scrpit to stop dgraph, archive logs, start dgraph
DgraphCluster has an object’s applyIndex() method from the default “DistributeIndexAndApply” scrpit to create a new script within your Deployment Template. You can see this script in AppConfig.xml for your application. The applyIndex() method will stop the dgraph, archived the log files, then restarted the dgraph.
<script id="RestartDgraphAndArchiveLogs">
<bean-shell-script>
[![CDATA[DgraphCluster.applyIndex();]]>
</bean-shell-script>
</script>
For running this script, we can execute below command from location where your application is installed. For example if application installed at “C:\Endeca\Apps\DemoApp\” then go to location “C:\Endeca\Apps\DemoApp\control\” then run below command
"runcommand.bat/sh RestartDgraphAndArchiveLogs"
Decision Models for Search Engineers: What Clef Changes About a Solr Index
Cloudflare's Clef answers a typed form with calibrated probabilities instead of generating…LLM Inference, Explained to a Search Engineer
Prefill, decode, the KV cache, paged attention, continuous batching, speculative decoding and…What Actually Happens When You Search a SolrCloud Collection
The two-phase fan-out, the response flags that quietly lie to you, and…Menu to Food Tour: 5 AI Agents That Turn Any Restaurant Menu Into a Culinary Adventure
What if you could point your phone at a restaurant menu in…