forked from yacy/yacy_search_server
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added cmd shortcut for windows #26
Open
roamnrubber
wants to merge
5
commits into
okybaca:master
Choose a base branch
from
roamnrubber:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… deadlocks, improved threading, and enhanced queue management across critical components. Files Updated ArrayStacker.java Fixes: Improved synchronization to prevent concurrent modification issues. Optimized task distribution for better multi-threaded performance. Enhancements: Added debug logs for tracking task addition and retrieval. Reduced contention in shared data structures by introducing local caching. IODispatcher.java Fixes: Replaced blocking semaphore operations with timed acquisition using tryAcquire() to prevent indefinite blocking. Enhancements: Introduced graceful shutdown logic for I/O threads. Enhanced logging to identify bottlenecks in I/O operations. CrawlQueues.java Fixes: Modified ArrayBlockingQueue.poll() usage to include a timeout, ensuring threads don’t remain indefinitely blocked. Addressed edge cases where poison pills were not correctly processed during shutdown. Enhancements: Added monitoring of queue states to detect and log empty queues or excessive delays. Ensured proper handling of tasks rejected by robots.txt rules. ThreadPool.java Fixes: Balanced worker threads based on queue load to avoid starvation. Handled thread pool exhaustion scenarios gracefully with fallback mechanisms. Enhancements: Introduced metrics to monitor active, idle, and terminated threads in real-time. Added configurable limits for thread pool sizes to handle varying workloads. WorkflowProcessor.java Fixes: Switched from LinkedBlockingQueue.take() to poll() with a timeout to prevent indefinite blocking. Implemented logic to detect and recover from prolonged idle states in worker threads. Enhancements: Improved logging for task enqueuing and processing times. Threads now gracefully exit after prolonged inactivity, ensuring system stability during low workloads. Development Story The changes were driven by user reports and internal diagnostics identifying intermittent deadlocks and thread starvation issues during high and low workloads in critical subsystems. Each component was analyzed for threading inefficiencies and blocking behavior. Key Challenges: Diagnosing Deadlocks: Analyzing multi-threaded logs to isolate root causes across ArrayBlockingQueue, LinkedBlockingQueue, and Semaphore usage. Balancing Performance and Safety: Ensuring that fixes for deadlocks and blocking calls didn’t compromise system throughput. Graceful Degradation: Implementing fallback mechanisms to prevent complete halts during peak loads or resource starvation. Impact of Changes: Increased system stability under varying workloads. Improved diagnostic capabilities through enhanced logging. Reduced risk of deadlocks and thread starvation in critical workflows. Improved handling of low-activity periods with proactive thread management. Future Work: Incorporate metrics dashboards for real-time monitoring of queues and thread pools. Expand test coverage to include stress tests for edge cases. Pull Request Description This PR resolves threading and deadlock issues identified in several critical components (ArrayStacker, IODispatcher, CrawlQueues, ThreadPool, and WorkflowProcessor). It introduces robust queue management, enhances logging, and improves overall system resilience. These changes ensure better stability under high and low workloads and provide clearer diagnostics for future optimizations.
Description: This pull request introduces enhancements to the Windows setup and management scripts for the YaCy Search Server Universal project. The updates aim to improve compatibility, streamline execution, and ensure a smoother user experience on Windows platforms. Key changes include: Refactored batch files for starting, stopping, and managing YaCy services on Windows. Added better handling for user permissions and configurations. Updated the documentation to reflect changes in Windows setup and usage. Simplified the process for debugging and refreshing the YaCy instance. These changes address common issues faced by Windows users and make the deployment process more intuitive.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added shortcut to command prompt, saves time when in windows compiling etc